@@ -147,6 +147,9 @@ |
||
| 147 | 147 | return (count($this->records) - 1); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param integer $index |
|
| 152 | + */ |
|
| 150 | 153 | public function deleteRecord($index) { |
| 151 | 154 | if (isset($this->records[$index])) { |
| 152 | 155 | $this->fileLength -= ($this->records[$index]->getContentLength() + 4); |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | * @param string|null $FileName Name of file to open |
| 74 | 74 | */ |
| 75 | 75 | public function saveToFile($FileName = null) { |
| 76 | - if (! is_null($FileName)) { |
|
| 76 | + if (!is_null($FileName)) { |
|
| 77 | 77 | $this->FileName = $FileName; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | private function _saveMultiPointMZRecord($type) { |
| 300 | 300 | |
| 301 | - fwrite($this->SHPFile, pack('dd', $this->SHPData[$type . 'min'], $this->SHPData[$type . 'max'])); |
|
| 301 | + fwrite($this->SHPFile, pack('dd', $this->SHPData[$type.'min'], $this->SHPData[$type.'max'])); |
|
| 302 | 302 | |
| 303 | 303 | for ($i = 0; $i <= $this->SHPData['numpoints']; $i++) { |
| 304 | 304 | fwrite($this->SHPFile, Util::packDouble($this->SHPData['points'][$type])); |
@@ -454,8 +454,8 @@ discard block |
||
| 454 | 454 | if (!isset($point[$direction])) { |
| 455 | 455 | continue; |
| 456 | 456 | } |
| 457 | - $min = $direction . 'min'; |
|
| 458 | - $max = $direction . 'max'; |
|
| 457 | + $min = $direction.'min'; |
|
| 458 | + $max = $direction.'max'; |
|
| 459 | 459 | if (!isset($this->SHPData[$min]) || ($this->SHPData[$min] > $point[$direction])) { |
| 460 | 460 | $this->SHPData[$min] = $point[$direction]; |
| 461 | 461 | } |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $this->SHPData['numpoints'] = 1 + (isset($this->SHPData['numpoints']) ? $this->SHPData['numpoints'] : 0); |
| 523 | 523 | break; |
| 524 | 524 | default: |
| 525 | - $this->setError(sprintf('The Shape Type '%s' is not supported.', $this->shapeType)); |
|
| 525 | + $this->setError(sprintf('The Shape Type ' % s' is not supported.', $this->shapeType)); |
|
| 526 | 526 | break; |
| 527 | 527 | } |
| 528 | 528 | } |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | } |
| 579 | 579 | break; |
| 580 | 580 | default: |
| 581 | - $this->setError(sprintf('The Shape Type '%s' is not supported.', $this->shapeType)); |
|
| 581 | + $this->setError(sprintf('The Shape Type ' % s' is not supported.', $this->shapeType)); |
|
| 582 | 582 | break; |
| 583 | 583 | } |
| 584 | 584 | } |
@@ -634,7 +634,7 @@ discard block |
||
| 634 | 634 | break; |
| 635 | 635 | default: |
| 636 | 636 | $result = false; |
| 637 | - $this->setError(sprintf('The Shape Type '%s' is not supported.', $this->shapeType)); |
|
| 637 | + $this->setError(sprintf('The Shape Type ' % s' is not supported.', $this->shapeType)); |
|
| 638 | 638 | break; |
| 639 | 639 | } |
| 640 | 640 | return $result; |