@@ -377,7 +377,7 @@ discard block |
||
| 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 |
||
| 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 = []; |
@@ -121,10 +121,8 @@ |
||
| 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 | |