Completed
Push — master ( 1ab771...ef861a )
by Matt
32s queued 12s
created
src/Service/GpxService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 $wander->setMinAltitude($stats->minAltitude);
82 82
                 $wander->setCumulativeElevationGain($stats->cumulativeElevationGain);
83 83
             }
84
-            catch(Exception $e) {
84
+            catch (Exception $e) {
85 85
                 //$this->logger->debug("Couldn't set extended GPX property on wander: " . $e->getMessage());
86 86
                 throw new Exception("Couldn't set standard GPX stats properties on wander.", 0, $e);
87 87
             }
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
     public function compass(float $x, float $y): float
113 113
     {
114 114
         // https://www.php.net/manual/en/function.atan2.php#88119
115
-        if($x==0 AND $y==0){ return 0; } // ...or return 360
115
+        if ($x == 0 AND $y == 0) { return 0; } // ...or return 360
116 116
         return ($x < 0)
117
-            ? rad2deg(atan2($x,$y)) + 360
118
-            : rad2deg(atan2($x,$y));
117
+            ? rad2deg(atan2($x, $y)) + 360
118
+            : rad2deg(atan2($x, $y));
119 119
     }
120 120
 
121 121
     public function gpxToGeoJson(string $gpx, float $epsilon = 3, int $precision = 7): string
Please login to merge, or discard this patch.