Completed
Pull Request — master (#67)
by Matt
08:42
created
src/Service/GpxService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
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
@@ -451,7 +451,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.