Skip to content

Commit 584943e

Browse files
committed
Simplify logic
1 parent 26a8428 commit 584943e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/CrEOF/Spatial/PHP/Types/AbstractLineString.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public function getType()
4444
*/
4545
public function isClosed()
4646
{
47-
if ($this->points[0] === $this->points[count($this->points) - 1]) {
48-
return true;
49-
}
50-
51-
return false;
47+
return $this->points[0] === $this->points[count($this->points) - 1];
5248
}
5349
}

0 commit comments

Comments
 (0)