@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $wander->setMinAltitude($stats->minAltitude); |
| 72 | 72 | $wander->setCumulativeElevationGain($stats->cumulativeElevationGain); |
| 73 | 73 | } |
| 74 | - catch(Exception $e) { |
|
| 74 | + catch (Exception $e) { |
|
| 75 | 75 | //$this->logger->debug("Couldn't set extended GPX property on wander: " . $e->getMessage()); |
| 76 | 76 | throw new Exception("Couldn't set standard GPX stats properties on wander.", 0, $e); |
| 77 | 77 | } |
@@ -103,10 +103,10 @@ discard block |
||
| 103 | 103 | public function compass(float $x, float $y): float |
| 104 | 104 | { |
| 105 | 105 | // https://www.php.net/manual/en/function.atan2.php#88119 |
| 106 | - if($x==0 AND $y==0){ return 0; } // ...or return 360 |
|
| 106 | + if ($x == 0 AND $y == 0) { return 0; } // ...or return 360 |
|
| 107 | 107 | return ($x < 0) |
| 108 | - ? rad2deg(atan2($x,$y)) + 360 |
|
| 109 | - : rad2deg(atan2($x,$y)); |
|
| 108 | + ? rad2deg(atan2($x, $y)) + 360 |
|
| 109 | + : rad2deg(atan2($x, $y)); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | public function gpxToGeoJson(string $gpx): string |
@@ -451,7 +451,7 @@ |
||
| 451 | 451 | 13 => 'NW', |
| 452 | 452 | 14 => 'NW', |
| 453 | 453 | 15 => 'N' |
| 454 | - ]; |
|
| 454 | + ]; |
|
| 455 | 455 | |
| 456 | 456 | /** |
| 457 | 457 | * @ORM\Column(type="text", nullable=true) |