Code Duplication    Length = 3-3 lines in 2 locations

src/ShapeFile.lib.php 2 locations

@@ 954-956 (lines=3) @@
951
        case 8:
952
          $result = 20 + 8*count($this->SHPData["points"]);
953
        break;
954
        case 28:
955
          $result = 20 + (2*4) + (8+4)*count($this->SHPData["points"]);
956
        break;
957
        case 18:
958
          $result = 20 + (4*4) + (8+8)*count($this->SHPData["points"]);
959
        break;
@@ 957-959 (lines=3) @@
954
        case 28:
955
          $result = 20 + (2*4) + (8+4)*count($this->SHPData["points"]);
956
        break;
957
        case 18:
958
          $result = 20 + (4*4) + (8+8)*count($this->SHPData["points"]);
959
        break;
960
        default:
961
          $result = false;
962
          $this->setError(sprintf("The Shape Type '%s' is not supported.", $this->shapeType));