Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 657-663 (lines=7) @@
654
                }
655
                break;
656
            case 23:
657
            case 25:
658
                $count = count($this->SHPData['parts']);
659
                $result = 22 + (2 * 4) + 2 * $count;
660
                for ($i = 0; $i < $count; $i++) {
661
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
662
                }
663
                break;
664
            case 13:
665
            case 15:
666
                $count = count($this->SHPData['parts']);
@@ 665-671 (lines=7) @@
662
                }
663
                break;
664
            case 13:
665
            case 15:
666
                $count = count($this->SHPData['parts']);
667
                $result = 22 + (4 * 4) + 2 * $count;
668
                for ($i = 0; $i < $count; $i++) {
669
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
670
                }
671
                break;
672
            case 8:
673
                $result = 20 + 8 * count($this->SHPData['points']);
674
                break;