File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ private function _createDBFFile()
426426 {
427427 $ dbf_name = $ this ->_getFilename ('.dbf ' );
428428 $ result = @dbase_create ($ dbf_name , $ this ->DBFHeader );
429- if ($ result === false ) {
429+ if ($ result === false ) {
430430 $ this ->setError (sprintf ('It wasn \'t possible to create the DBase file "%s" ' , $ dbf_name ));
431431 return false ;
432432 }
@@ -538,7 +538,7 @@ public static function nameShape($type)
538538 */
539539 public function hasMeasure ()
540540 {
541- return $ this ->boundingBox ['mmin ' ] != 0 || $ this ->boundingBox ['mmax ' ] != 0 ;
541+ return $ this ->boundingBox ['mmin ' ] != 0 || $ this ->boundingBox ['mmax ' ] != 0 ;
542542 }
543543}
544544
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ public function __construct($shapeType) {
4444 $ this ->shapeType = $ shapeType ;
4545 }
4646
47+ /**
48+ * @param ShapeFile $ShapeFile
49+ */
4750 public function loadFromFile (&$ ShapeFile , &$ SHPFile , &$ DBFFile ) {
4851 $ this ->ShapeFile = $ ShapeFile ;
4952 $ this ->SHPFile = $ SHPFile ;
@@ -304,7 +307,7 @@ private function _loadMultiPointRecord() {
304307 private function _loadMultiPointMZRecord ($ type )
305308 {
306309 /* The m dimension is optional, depends on bounding box data */
307- if ($ type == 'm ' && ! $ this ->ShapeFile ->hasMeasure ()) {
310+ if ($ type == 'm ' && !$ this ->ShapeFile ->hasMeasure ()) {
308311 return ;
309312 }
310313
@@ -395,7 +398,7 @@ private function _loadPolyLineRecord() {
395398 */
396399 private function _loadPolyLineMZRecord ($ type ) {
397400 /* The m dimension is optional, depends on bounding box data */
398- if ($ type == 'm ' && ! $ this ->ShapeFile ->hasMeasure ()) {
401+ if ($ type == 'm ' && !$ this ->ShapeFile ->hasMeasure ()) {
399402 return ;
400403 }
401404
You can’t perform that action at this time.
0 commit comments