Completed
Push — master ( 765f92...8230fd )
by Matt
18s queued 12s
created
src/Service/GpxService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Wander.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -458,7 +458,7 @@
 block discarded – undo
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"})
Please login to merge, or discard this patch.