@@ -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 |
@@ -522,7 +522,7 @@ |
||
522 | 522 | */ |
523 | 523 | public function hasMeasure() |
524 | 524 | { |
525 | - return $this->boundingBox['mmin'] != 0 || $this->boundingBox['mmax'] != 0; |
|
525 | + return $this->boundingBox['mmin'] != 0 || $this->boundingBox['mmax'] != 0; |
|
526 | 526 | } |
527 | 527 | } |
528 | 528 |
@@ -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 | } |
@@ -43,8 +43,8 @@ |
||
43 | 43 | /** |
44 | 44 | * Changes endianity |
45 | 45 | * |
46 | - * @param string $value Binary value |
|
47 | 46 | * |
47 | + * @param string $binValue |
|
48 | 48 | * @return string |
49 | 49 | */ |
50 | 50 | public static function swap($binValue) { |