Test Failed
Branch main (397aaa)
by Frank
10:06
created
Category
src/Geometry/GeometryObject/GeometryObjectFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function createForGeoJsonFeatureGeometry(array $featureGeometry): ?GeometryObject
17 17
     {
18
-        return match ($featureGeometry['type']) {
18
+        return match($featureGeometry['type']) {
19 19
             'LineString' => self::createForLineStringCoordinates($featureGeometry['coordinates']),
20 20
             'MultiLineString' => self::createForMultiLineStringCoordinates($featureGeometry['coordinates']),
21 21
             'MultiPoint' => self::createForMultiPointCoordinates($featureGeometry['coordinates']),
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public static function createForLineStringCoordinates(array $coordinates): LineString
33 33
     {
34 34
         $lineString = new LineString();
35
-        foreach($coordinates as $coordinate) {
35
+        foreach ($coordinates as $coordinate) {
36 36
             $lineString->addPosition(new Position($coordinate[0], $coordinate[1], $coordinate[2] ?? null));
37 37
         }
38 38
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public static function createForMultiPolygonCoordinates(array $coordinates): MultiPolygon
64 64
     {
65 65
         $multiPolygon = new MultiPolygon();
66
-        foreach($coordinates as $polygonCoordinates) {
66
+        foreach ($coordinates as $polygonCoordinates) {
67 67
             $polygon = self::createForPolygonCoordinates($polygonCoordinates);
68 68
             if ($polygon === null) {
69 69
                 continue;
Please login to merge, or discard this patch.
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/HTML/Rendering/AttributeRenderer.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
     public static function renderAttributes(array $attributes): ?string
15 15
     {
16 16
         $attributesString = null;
17
-        foreach($attributes as $attributeName => $attributeValue) {
17
+        foreach ($attributes as $attributeName => $attributeValue) {
18 18
             if (is_string($attributeName) === false) {
19 19
                 throw new InvalidArgumentException('Attribute names have to be of type string, "' . gettype($attributeName) . '"(' . $attributeName . ') given.');
20 20
             }
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
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public static function buildForGeometryObject(GeometryObject $geometryObject, Coordinator $coordinator): Element
49 49
     {
50
-        $element = match (get_class($geometryObject)) {
50
+        $element = match(get_class($geometryObject)) {
51 51
             LineString::class => self::buildForLineString($geometryObject, $coordinator),
52 52
             MultiPoint::class => self::buildForMultiPoint($geometryObject, $coordinator),
53 53
             MultiPolygon::class => self::buildForMultiPolygon($geometryObject, $coordinator),
Please login to merge, or discard this patch.