Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 670-676 (lines=7) @@
667
                }
668
                break;
669
            case 23:
670
            case 25:
671
                $count = count($this->SHPData['parts']);
672
                $result = 22 + (2 * 4) + 2 * $count;
673
                for ($i = 0; $i < $count; $i++) {
674
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
675
                }
676
                break;
677
            case 13:
678
            case 15:
679
                $count = count($this->SHPData['parts']);
@@ 678-684 (lines=7) @@
675
                }
676
                break;
677
            case 13:
678
            case 15:
679
                $count = count($this->SHPData['parts']);
680
                $result = 22 + (4 * 4) + 2 * $count;
681
                for ($i = 0; $i < $count; $i++) {
682
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
683
                }
684
                break;
685
            case 8:
686
                $result = 20 + 8 * count($this->SHPData['points']);
687
                break;