File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ private function _createDBFFile()
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
}
@@ -538,7 +538,7 @@ public static function nameShape($type)
538
538
*/
539
539
public function hasMeasure ()
540
540
{
541
- return $ this ->boundingBox ['mmin ' ] != 0 || $ this ->boundingBox ['mmax ' ] != 0 ;
541
+ return $ this ->boundingBox ['mmin ' ] != 0 || $ this ->boundingBox ['mmax ' ] != 0 ;
542
542
}
543
543
}
544
544
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public function __construct($shapeType) {
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 +307,7 @@ private function _loadMultiPointRecord() {
304
307
private function _loadMultiPointMZRecord ($ type )
305
308
{
306
309
/* The m dimension is optional, depends on bounding box data */
307
- if ($ type == 'm ' && ! $ this ->ShapeFile ->hasMeasure ()) {
310
+ if ($ type == 'm ' && !$ this ->ShapeFile ->hasMeasure ()) {
308
311
return ;
309
312
}
310
313
@@ -395,7 +398,7 @@ private function _loadPolyLineRecord() {
395
398
*/
396
399
private function _loadPolyLineMZRecord ($ type ) {
397
400
/* The m dimension is optional, depends on bounding box data */
398
- if ($ type == 'm ' && ! $ this ->ShapeFile ->hasMeasure ()) {
401
+ if ($ type == 'm ' && !$ this ->ShapeFile ->hasMeasure ()) {
399
402
return ;
400
403
}
401
404
You can’t perform that action at this time.
0 commit comments