Code Duplication    Length = 7-7 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 619-625 (lines=7) @@
616
                }
617
                break;
618
            case 23:
619
            case 25:
620
                $count = count($this->SHPData["parts"]);
621
                $result = 22 + (2 * 4) + 2 * $count;
622
                for ($i = 0; $i < $count; $i++) {
623
                    $result += (8 + 4) * count($this->SHPData["parts"][$i]["points"]);
624
                }
625
                break;
626
            case 13:
627
            case 15:
628
                $count = count($this->SHPData["parts"]);
@@ 627-633 (lines=7) @@
624
                }
625
                break;
626
            case 13:
627
            case 15:
628
                $count = count($this->SHPData["parts"]);
629
                $result = 22 + (4 * 4) + 2 * $count;
630
                for ($i = 0; $i < $count; $i++) {
631
                    $result += (8 + 8) * count($this->SHPData["parts"][$i]["points"]);
632
                }
633
                break;
634
            case 8:
635
                $result = 20 + 8 * count($this->SHPData["points"]);
636
                break;