Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 682-688 (lines=7) @@
679
                }
680
                break;
681
            case 23:
682
            case 25:
683
                $count = count($this->SHPData['parts']);
684
                $result = 22 + (2 * 4) + 2 * $count;
685
                for ($i = 0; $i < $count; $i++) {
686
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
687
                }
688
                break;
689
            case 13:
690
            case 15:
691
                $count = count($this->SHPData['parts']);
@@ 690-696 (lines=7) @@
687
                }
688
                break;
689
            case 13:
690
            case 15:
691
                $count = count($this->SHPData['parts']);
692
                $result = 22 + (4 * 4) + 2 * $count;
693
                for ($i = 0; $i < $count; $i++) {
694
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
695
                }
696
                break;
697
            case 8:
698
                $result = 20 + 8 * count($this->SHPData['points']);
699
                break;