Code Duplication    Length = 3-3 lines in 3 locations

src/ShapeRecord.php 3 locations

@@ 283-285 (lines=3) @@
280
      $this->SHPData[$type."min"] = Util::loadData("d", fread($this->SHPFile, 8));
281
      $this->SHPData[$type."max"] = Util::loadData("d", fread($this->SHPFile, 8));
282
283
      for ($i = 0; $i <= $this->SHPData["numpoints"]; $i++) {
284
        $this->SHPData["points"][$i][$type] = Util::loadData("d", fread($this->SHPFile, 8));
285
      }
286
    }
287
288
    function _loadMultiPointMRecord() {
@@ 315-317 (lines=3) @@
312
313
      fwrite($this->SHPFile, pack("dd", $this->SHPData[$type."min"], $this->SHPData[$type."max"]));
314
315
      for ($i = 0; $i <= $this->SHPData["numpoints"]; $i++) {
316
        fwrite($this->SHPFile, Util::packDouble($this->SHPData["points"][$type]));
317
      }
318
    }
319
320
    function _saveMultiPointMRecord() {
@@ 343-345 (lines=3) @@
340
      $this->SHPData["numparts"]  = Util::loadData("V", fread($this->SHPFile, 4));
341
      $this->SHPData["numpoints"] = Util::loadData("V", fread($this->SHPFile, 4));
342
343
      for ($i = 0; $i < $this->SHPData["numparts"]; $i++) {
344
        $this->SHPData["parts"][$i] = Util::loadData("V", fread($this->SHPFile, 4));
345
      }
346
347
      $firstIndex = ftell($this->SHPFile);
348
      $readPoints = 0;