Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 741-747 (lines=7) @@
738
                }
739
                break;
740
            case 23:
741
            case 25:
742
                $count = count($this->SHPData['parts']);
743
                $result = 22 + (2 * 4) + 2 * $count;
744
                for ($i = 0; $i < $count; $i++) {
745
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
746
                }
747
                break;
748
            case 13:
749
            case 15:
750
                $count = count($this->SHPData['parts']);
@@ 749-755 (lines=7) @@
746
                }
747
                break;
748
            case 13:
749
            case 15:
750
                $count = count($this->SHPData['parts']);
751
                $result = 22 + (4 * 4) + 2 * $count;
752
                for ($i = 0; $i < $count; $i++) {
753
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
754
                }
755
                break;
756
            case 8:
757
                $result = 20 + 8 * count($this->SHPData['points']);
758
                break;