Test Failed
Push — master ( 201e94...68876a )
by
unknown
07:48
created
src/GIS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 if (preg_match(self::EWKT_PATTERN, $this->value, $matches)) {
135 135
                     $geometries = preg_split('/,(?=[a-zA-Z])/', substr($matches[4], 1, -1));
136 136
                     $srid = $this->srid;
137
-                    return array_map(function ($geometry) use ($srid) {
137
+                    return array_map(function($geometry) use ($srid) {
138 138
                         return GIS::create('SRID=' . $srid . ';' . $geometry);
139 139
                     }, $geometries);
140 140
                 }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
     protected static function reproject_array($coordinates, $fromProj, $toProj)
241 241
     {
242
-        return self::each($coordinates, function ($coordinate) use ($fromProj, $toProj) {
242
+        return self::each($coordinates, function($coordinate) use ($fromProj, $toProj) {
243 243
             return array_slice(self::$proj4->transform($toProj, new Point($coordinate[0], $coordinate[1], $fromProj))->toArray(), 0, 2);
244 244
         });
245 245
     }
Please login to merge, or discard this patch.
src/Control/GeoJsonService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
                         'coordinates' => $geometry->coordinates,
71 71
                     ];
72 72
                 }
73
-                $feature['geometry']['geometries'] =  $geometries;
73
+                $feature['geometry']['geometries'] = $geometries;
74 74
             } else {
75
-                $feature['geometry']['coordinates'] =  $geo->coordinates;
75
+                $feature['geometry']['coordinates'] = $geo->coordinates;
76 76
             }
77 77
             echo json_encode($feature);
78 78
         }
Please login to merge, or discard this patch.