if ($this->points !== null) {
foreach ($this->points as $point) {
$bounds = $point->getBounds();
- $result = ($result === null ? $bounds : $result->extend($bounds));
+ if ($result === null) {
+ $result = $bounds;
+ } else {
+ $result->extend($bounds);
+ }
}
}
return $result;