Passed
Push — master ( 0dee84...d773ea )
by Swen
03:19
created
src/Geometry/Polygon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
                 return false;
300 300
             }
301 301
             /** @var string $wkt */
302
-            $wkt = str_ireplace(['LINESTRING(',')'], '', $ring->asText());
302
+            $wkt = str_ireplace(['LINESTRING(', ')'], '', $ring->asText());
303 303
             $pts = array_unique(array_map('trim', explode(',', $wkt)));
304 304
             if (count($pts) < 3) {
305 305
                 return false;
Please login to merge, or discard this patch.
src/Geometry/Curve.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,10 +121,8 @@
 block discarded – undo
121 121
     public function boundary(): Geometry
122 122
     {
123 123
         return $this->isEmpty() ?
124
-            new LineString() :
125
-            ($this->isClosed() ?
126
-                new MultiPoint() :
127
-                new MultiPoint([$this->startPoint(), $this->endPoint()])
124
+            new LineString() : ($this->isClosed() ?
125
+                new MultiPoint() : new MultiPoint([$this->startPoint(), $this->endPoint()])
128 126
             );
129 127
     }
130 128
 
Please login to merge, or discard this patch.
src/Adapter/TWKB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@
 block discarded – undo
368 368
         
369 369
         $twkb = $this->writeGeometry($geometry);
370 370
         
371
-        return $writeAsHex ? current( (array) unpack('H*', $twkb)) : $twkb;
371
+        return $writeAsHex ? current((array) unpack('H*', $twkb)) : $twkb;
372 372
     }
373 373
 
374 374
     /**
Please login to merge, or discard this patch.