Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 611-617 (lines=7) @@
608
                }
609
                break;
610
            case 23:
611
            case 25:
612
                $count = count($this->SHPData['parts']);
613
                $result = 22 + (2 * 4) + 2 * $count;
614
                for ($i = 0; $i < $count; $i++) {
615
                    $result += (8 + 4) * count($this->SHPData['parts'][$i]['points']);
616
                }
617
                break;
618
            case 13:
619
            case 15:
620
                $count = count($this->SHPData['parts']);
@@ 619-625 (lines=7) @@
616
                }
617
                break;
618
            case 13:
619
            case 15:
620
                $count = count($this->SHPData['parts']);
621
                $result = 22 + (4 * 4) + 2 * $count;
622
                for ($i = 0; $i < $count; $i++) {
623
                    $result += (8 + 8) * count($this->SHPData['parts'][$i]['points']);
624
                }
625
                break;
626
            case 8:
627
                $result = 20 + 8 * count($this->SHPData['points']);
628
                break;