Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 632-638 (lines=7) @@
629
                }
630
                break;
631
            case 23:
632
            case 25:
633
                $count = count($this->SHPData['parts']);
634
                $result = 22 + (2 * 4) + 2 * $count;
635
                for ($i = 0; $i < $count; $i++) {
636
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
637
                }
638
                break;
639
            case 13:
640
            case 15:
641
                $count = count($this->SHPData['parts']);
@@ 640-646 (lines=7) @@
637
                }
638
                break;
639
            case 13:
640
            case 15:
641
                $count = count($this->SHPData['parts']);
642
                $result = 22 + (4 * 4) + 2 * $count;
643
                for ($i = 0; $i < $count; $i++) {
644
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
645
                }
646
                break;
647
            case 8:
648
                $result = 20 + 8 * count($this->SHPData['points']);
649
                break;