@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $wander->setMinAltitude($stats->minAltitude); |
| 87 | 87 | $wander->setCumulativeElevationGain($stats->cumulativeElevationGain); |
| 88 | 88 | } |
| 89 | - catch(Exception $e) { |
|
| 89 | + catch (Exception $e) { |
|
| 90 | 90 | //$this->logger->debug("Couldn't set extended GPX property on wander: " . $e->getMessage()); |
| 91 | 91 | throw new Exception("Couldn't set standard GPX stats properties on wander.", 0, $e); |
| 92 | 92 | } |
@@ -117,10 +117,10 @@ discard block |
||
| 117 | 117 | public function compass(float $x, float $y): float |
| 118 | 118 | { |
| 119 | 119 | // https://www.php.net/manual/en/function.atan2.php#88119 |
| 120 | - if($x==0 AND $y==0){ return 0; } // ...or return 360 |
|
| 120 | + if ($x == 0 AND $y == 0) { return 0; } // ...or return 360 |
|
| 121 | 121 | return ($x < 0) |
| 122 | - ? rad2deg(atan2($x,$y)) + 360 |
|
| 123 | - : rad2deg(atan2($x,$y)); |
|
| 122 | + ? rad2deg(atan2($x, $y)) + 360 |
|
| 123 | + : rad2deg(atan2($x, $y)); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | public function gpxToGooglePolyline(string $gpx, float $epsilon = 3): string |
@@ -458,7 +458,7 @@ |
||
| 458 | 458 | 13 => 'NW', |
| 459 | 459 | 14 => 'NW', |
| 460 | 460 | 15 => 'N' |
| 461 | - ]; |
|
| 461 | + ]; |
|
| 462 | 462 | |
| 463 | 463 | /** |
| 464 | 464 | * @ORM\OneToOne(targetEntity=Image::class, mappedBy="featuringWander", cascade={"persist"}) |