Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 774-780 (lines=7) @@
771
                }
772
                break;
773
            case 23:
774
            case 25:
775
                $count = count($this->SHPData['parts']);
776
                $result = 22 + (2 * 4) + 2 * $count;
777
                for ($i = 0; $i < $count; ++$i) {
778
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
779
                }
780
                break;
781
            case 13:
782
            case 15:
783
                $count = count($this->SHPData['parts']);
@@ 782-788 (lines=7) @@
779
                }
780
                break;
781
            case 13:
782
            case 15:
783
                $count = count($this->SHPData['parts']);
784
                $result = 22 + (4 * 4) + 2 * $count;
785
                for ($i = 0; $i < $count; ++$i) {
786
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
787
                }
788
                break;
789
            case 8:
790
                $result = 20 + 8 * count($this->SHPData['points']);
791
                break;