Passed
Push — master ( d773ea...3444c4 )
by Swen
03:28
created
src/geoPHP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
         }
378 378
 
379 379
         // First char is a tab, space or carriage-return. trim it and try again
380
-        if (in_array($bytes[1], [9,10,32], true)) {
380
+        if (in_array($bytes[1], [9, 10, 32], true)) {
381 381
             $input = ltrim($input);
382 382
             return geoPHP::detectFormat($input);
383 383
         }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 
446 446
         // We need an 8 byte string for geohash and unpacked WKB / WKT
447 447
         fseek($mem, 0);
448
-        $string = trim((string)fread($mem, 8));
448
+        $string = trim((string) fread($mem, 8));
449 449
 
450 450
         // Detect geohash - geohash ONLY contains lowercase chars and numerics
451 451
         $matches = [];
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() ?? new Point(), $this->endPoint() ?? new Point()])
124
+            new LineString() : ($this->isClosed() ?
125
+                new MultiPoint() : new MultiPoint([$this->startPoint() ?? new Point(), $this->endPoint() ?? new Point()])
128 126
             );
129 127
     }
130 128
 
Please login to merge, or discard this patch.