Code Duplication    Length = 6-6 lines in 2 locations

src/ShapeFile.lib.php 2 locations

@@ 938-943 (lines=6) @@
935
          }
936
        break;
937
        case 23:
938
        case 25:
939
          $result = 22 + (2*4) + 2*count($this->SHPData["parts"]);
940
          for ($i = 0; $i < count($this->SHPData["parts"]); $i++) {
941
            $result += (8+4)*count($this->SHPData["parts"][$i]["points"]);
942
          }
943
        break;
944
        case 13:
945
        case 15:
946
          $result = 22 + (4*4) + 2*count($this->SHPData["parts"]);
@@ 945-950 (lines=6) @@
942
          }
943
        break;
944
        case 13:
945
        case 15:
946
          $result = 22 + (4*4) + 2*count($this->SHPData["parts"]);
947
          for ($i = 0; $i < count($this->SHPData["parts"]); $i++) {
948
            $result += (8+8)*count($this->SHPData["parts"][$i]["points"]);
949
          }
950
        break;
951
        case 8:
952
          $result = 20 + 8*count($this->SHPData["points"]);
953
        break;