Passed
Pull Request — main (#10)
by
unknown
02:31
created
src/Geometry/BoundingBox/BoundingBox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
 
42 42
     public function getWidth(): float
43 43
     {
44
-        return - $this->southWestern->longitude + $this->northEastern->longitude;
44
+        return -$this->southWestern->longitude + $this->northEastern->longitude;
45 45
     }
46 46
 
47 47
     public function getHeight(): float
48 48
     {
49
-        return - $this->southWestern->latitude + $this->northEastern->latitude;
49
+        return -$this->southWestern->latitude + $this->northEastern->latitude;
50 50
     }
51 51
 
52 52
     public function boundX(Position $position, Projection $projection): float
Please login to merge, or discard this patch.
src/Projection/MercatorProjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             $latitude = (-$this->getMaxLatitude()) + 0.001;
24 24
         }
25 25
 
26
-        return (Position::TOTAL_LATITUDE / 2) - (Position::TOTAL_LONGITUDE * .5 * log(tan((M_PI / 4) + (($latitude*M_PI / 180) / 2))) / (2 * M_PI));
26
+        return (Position::TOTAL_LATITUDE / 2) - (Position::TOTAL_LONGITUDE * .5 * log(tan((M_PI / 4) + (($latitude * M_PI / 180) / 2))) / (2 * M_PI));
27 27
     }
28 28
 
29 29
     public function getMaxX(): float
Please login to merge, or discard this patch.
src/Projection/EquiRectangularProjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     public function getY(Position $position): float
16 16
     {
17
-        return - $position->latitude - Position::MIN_LATITUDE;
17
+        return -$position->latitude - Position::MIN_LATITUDE;
18 18
     }
19 19
 
20 20
     public function getMaxX(): float
Please login to merge, or discard this patch.
src/Geometry/GeometryCollectionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $geometryCollection = new GeometryCollection();
20 20
 
21
-        if(!is_null($geometryObjectCallback)) {
21
+        if (!is_null($geometryObjectCallback)) {
22 22
             $geometryCollection->setGeometryObjectCallback($geometryObjectCallback);
23 23
         }
24 24
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 $geometryObject->setFeatureClass($feature['properties']['featurecla']);
41 41
             }
42 42
 
43
-            if(array_key_exists('properties', $feature) && !empty($feature['properties'])) {
43
+            if (array_key_exists('properties', $feature) && !empty($feature['properties'])) {
44 44
                 $geometryObject->setProperties($feature['properties']);
45 45
             }
46 46
 
Please login to merge, or discard this patch.
src/Html/Factory/ElementFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             $element->setAttribute('data-feature-class', $geometryObject->getFeatureClass());
68 68
         }
69 69
 
70
-        if(!is_null($geometryObjectCallback)) {
70
+        if (!is_null($geometryObjectCallback)) {
71 71
             $geometryObjectCallback->__invoke($geometryObject, $element);
72 72
         }
73 73
 
Please login to merge, or discard this patch.