We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84803f6 commit c1a7af6Copy full SHA for c1a7af6
lib/geometry/Collection.class.php
@@ -231,7 +231,9 @@ public function numPoints() {
231
public function getPoints() {
232
$points = array();
233
foreach ($this->components as $component) {
234
- $points = array_merge($points, $component->getPoints());
+ foreach ($component->getPoints() as $point) {
235
+ $points[] = $point;
236
+ }
237
}
238
return $points;
239
@@ -290,7 +292,9 @@ public function isSimple() {
290
292
public function explode() {
291
293
$parts = array();
294
- $parts = array_merge($parts, $component->explode());
295
+ foreach ($component->explode() as $subComponent) {
296
+ $parts[] = $subComponent;
297
298
299
return $parts;
300
0 commit comments