Code Duplication    Length = 1-1 lines in 6 locations

src/ShapeRecord.php 6 locations

@@ 468-468 (lines=1) @@
465
        case 1:
466
        case 11:
467
        case 21:
468
          if (in_array($this->shapeType,array(11,21)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
469
          if (in_array($this->shapeType,array(11)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
470
          //Substitutes the value of the current point
471
          $this->SHPData = $point;
@@ 469-469 (lines=1) @@
466
        case 11:
467
        case 21:
468
          if (in_array($this->shapeType,array(11,21)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
469
          if (in_array($this->shapeType,array(11)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
470
          //Substitutes the value of the current point
471
          $this->SHPData = $point;
472
        break;
@@ 479-479 (lines=1) @@
476
        case 15:
477
        case 23:
478
        case 25:
479
          if (in_array($this->shapeType,array(13,15,23,25)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
480
          if (in_array($this->shapeType,array(13,15)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
481
482
          //Adds a new point to the selected part
@@ 480-480 (lines=1) @@
477
        case 23:
478
        case 25:
479
          if (in_array($this->shapeType,array(13,15,23,25)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
480
          if (in_array($this->shapeType,array(13,15)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
481
482
          //Adds a new point to the selected part
483
          if (!isset($this->SHPData["xmin"]) || ($this->SHPData["xmin"] > $point["x"])) $this->SHPData["xmin"] = $point["x"];
@@ 500-500 (lines=1) @@
497
        case 8:
498
        case 18:
499
        case 28:
500
          if (in_array($this->shapeType,array(18,28)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
501
          if (in_array($this->shapeType,array(18)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
502
503
          //Adds a new point
@@ 501-501 (lines=1) @@
498
        case 18:
499
        case 28:
500
          if (in_array($this->shapeType,array(18,28)) && !isset($point["m"])) $point["m"] = 0.0; // no_value
501
          if (in_array($this->shapeType,array(18)) && !isset($point["z"])) $point["z"] = 0.0; // no_value
502
503
          //Adds a new point
504
          if (!isset($this->SHPData["xmin"]) || ($this->SHPData["xmin"] > $point["x"])) $this->SHPData["xmin"] = $point["x"];