Code Duplication    Length = 6-6 lines in 2 locations

src/ShapeRecord.php 2 locations

@@ 596-601 (lines=6) @@
593
          }
594
        break;
595
        case 23:
596
        case 25:
597
          $result = 22 + (2*4) + 2*count($this->SHPData["parts"]);
598
          for ($i = 0; $i < count($this->SHPData["parts"]); $i++) {
599
            $result += (8+4)*count($this->SHPData["parts"][$i]["points"]);
600
          }
601
        break;
602
        case 13:
603
        case 15:
604
          $result = 22 + (4*4) + 2*count($this->SHPData["parts"]);
@@ 603-608 (lines=6) @@
600
          }
601
        break;
602
        case 13:
603
        case 15:
604
          $result = 22 + (4*4) + 2*count($this->SHPData["parts"]);
605
          for ($i = 0; $i < count($this->SHPData["parts"]); $i++) {
606
            $result += (8+8)*count($this->SHPData["parts"][$i]["points"]);
607
          }
608
        break;
609
        case 8:
610
          $result = 20 + 8*count($this->SHPData["points"]);
611
        break;