Code Duplication    Length = 3-3 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 397-399 (lines=3) @@
394
395
        $part = 0;
396
        for ($i = 0; $i < $numpoints; $i++) {
397
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
398
                $part++;
399
            }
400
            if (!isset($this->SHPData['parts'][$part]['points']) || !is_array($this->SHPData['parts'][$part]['points'])) {
401
                $this->SHPData['parts'][$part] = array('points' => array());
402
            }
@@ 424-426 (lines=3) @@
421
422
        $part = 0;
423
        for ($i = 0; $i < $numpoints; $i++) {
424
            if ($part + 1 < $numparts && $this->SHPData['parts'][$part + 1] == $i) {
425
                $part++;
426
            }
427
            $this->SHPData['parts'][$part]['points'][$i][$type] = $this->_loadData('d', 8);
428
        }
429
    }