Skip to content

Commit

Permalink
Merge pull request #22 from WimDeMeester/analysis-nNWB4v
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
WimDeMeester authored Jul 31, 2020
2 parents 29cc4d3 + 5cb5a7e commit 53c4393
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/deepskylog/AstronomyLibrary/Targets/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function getEquatorialCoordinatesTomorrow(): EquatorialCoordinates
**/
public function getTransit(): Carbon
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand All @@ -233,7 +233,7 @@ public function getTransit(): Carbon
**/
public function getRising(): ?Carbon
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand All @@ -251,7 +251,7 @@ public function getRising(): ?Carbon
**/
public function getSetting(): ?Carbon
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand All @@ -268,7 +268,7 @@ public function getSetting(): ?Carbon
**/
public function getMaxHeight(): ?Coordinate
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand All @@ -288,7 +288,7 @@ public function getMaxHeight(): ?Coordinate
**/
public function getMaxHeightAtNight(): ?Coordinate
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand All @@ -305,7 +305,7 @@ public function getMaxHeightAtNight(): ?Coordinate
**/
public function getBestTimeToObserve(): ?Carbon
{
if (!$this->_transit) {
if (! $this->_transit) {
throw new RuntimeException(
'First execute the calculateEphemerides method'
);
Expand Down Expand Up @@ -559,7 +559,7 @@ public function calculateEphemerides(
}
}

if (!$during_night) {
if (! $during_night) {
$th = new Coordinate($transitHeight, -90.0, 90.0);

// Calculate the height at the end of the night
Expand Down Expand Up @@ -697,7 +697,7 @@ private function _calculateHeight(
$theta = $this->_calculateTheta($theta0, $time);
$n = $this->_calculateN($time, $deltaT);

if (!$targetDoesNotMove) {
if (! $targetDoesNotMove) {
$alphaInterpol = $this->_interpolate(
$this->getEquatorialCoordinatesToday()->getRA()->getCoordinate(),
$n,
Expand Down Expand Up @@ -885,7 +885,7 @@ public function altitudeGraph(
GeographicalCoordinates $geo_coords,
Carbon $date
): string {
if (!$this->_altitudeChart) {
if (! $this->_altitudeChart) {
$image = imagecreatetruecolor(1000, 400);

// Show the night
Expand Down Expand Up @@ -1054,7 +1054,7 @@ public function altitudeGraph(
$rawImageBytes = ob_get_clean();

$this->_altitudeChart = "<img src='data:image/jpeg;base64,"
. base64_encode($rawImageBytes) . "' />";
.base64_encode($rawImageBytes)."' />";
}

return $this->_altitudeChart;
Expand Down
2 changes: 1 addition & 1 deletion src/deepskylog/AstronomyLibrary/Time.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public static function apparentSiderialTime(
): Carbon {
$date = $date->copy()->timezone('UTC');
$siderialTime = self::meanSiderialTime($date, $coords);
if (!$nutation) {
if (! $nutation) {
$jd = self::getJd($date);

$nutation = self::nutation($jd);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EquatorialCoordinatesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class EquatorialCoordinatesTest extends BaseTestCase
*
* @var string
*/
protected $appPath = __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php';
protected $appPath = __DIR__.'/../../vendor/laravel/laravel/bootstrap/app.php';

/**
* Setup the test environment.
Expand Down

0 comments on commit 53c4393

Please sign in to comment.