Code Duplication    Length = 3-3 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 451-453 (lines=3) @@
448
449
        $part = 0;
450
        for ($i = 0; $i < $numpoints; ++$i) {
451
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
452
                ++$part;
453
            }
454
            if (!isset($this->SHPData['parts'][$part]['points']) || !is_array($this->SHPData['parts'][$part]['points'])) {
455
                $this->SHPData['parts'][$part] = array('points' => array());
456
            }
@@ 479-481 (lines=3) @@
476
477
        $part = 0;
478
        for ($i = 0; $i < $numpoints; ++$i) {
479
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
480
                ++$part;
481
            }
482
            $this->SHPData['parts'][$part]['points'][$i][$type] = $this->_loadData('d', 8);
483
        }
484
    }