Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

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