Code Duplication    Length = 3-3 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 434-436 (lines=3) @@
431
432
        $part = 0;
433
        for ($i = 0; $i < $numpoints; $i++) {
434
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
435
                $part++;
436
            }
437
            if (!isset($this->SHPData['parts'][$part]['points']) || !is_array($this->SHPData['parts'][$part]['points'])) {
438
                $this->SHPData['parts'][$part] = array('points' => array());
439
            }
@@ 461-463 (lines=3) @@
458
459
        $part = 0;
460
        for ($i = 0; $i < $numpoints; $i++) {
461
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
462
                $part++;
463
            }
464
            $this->SHPData['parts'][$part]['points'][$i][$type] = $this->_loadData('d', 8);
465
        }
466
    }