@@ -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 |