@@ -44,6 +44,9 @@ |
||
| 44 | 44 | $this->shapeType = $shapeType; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param ShapeFile $ShapeFile |
|
| 49 | + */ |
|
| 47 | 50 | public function loadFromFile(&$ShapeFile, &$SHPFile, &$DBFFile) { |
| 48 | 51 | $this->ShapeFile = $ShapeFile; |
| 49 | 52 | $this->SHPFile = $SHPFile; |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | private function _loadMultiPointMZRecord($type) |
| 305 | 305 | { |
| 306 | 306 | /* The m dimension is optional, depends on bounding box data */ |
| 307 | - if ($type == 'm' && ! $this->ShapeFile->hasMeasure()) { |
|
| 307 | + if ($type == 'm' && !$this->ShapeFile->hasMeasure()) { |
|
| 308 | 308 | return; |
| 309 | 309 | } |
| 310 | 310 | |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | */ |
| 396 | 396 | private function _loadPolyLineMZRecord($type) { |
| 397 | 397 | /* The m dimension is optional, depends on bounding box data */ |
| 398 | - if ($type == 'm' && ! $this->ShapeFile->hasMeasure()) { |
|
| 398 | + if ($type == 'm' && !$this->ShapeFile->hasMeasure()) { |
|
| 399 | 399 | return; |
| 400 | 400 | } |
| 401 | 401 | |
@@ -426,7 +426,7 @@ |
||
| 426 | 426 | { |
| 427 | 427 | $dbf_name = $this->_getFilename('.dbf'); |
| 428 | 428 | $result = @dbase_create($dbf_name, $this->DBFHeader); |
| 429 | - if ($result === false ) { |
|
| 429 | + if ($result === false) { |
|
| 430 | 430 | $this->setError(sprintf('It wasn\'t possible to create the DBase file "%s"', $dbf_name)); |
| 431 | 431 | return false; |
| 432 | 432 | } |