Skip to content

Commit e47ffb6

Browse files
committed
Coding style imporovements
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent a55d87a commit e47ffb6

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

.php_cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ return PhpCsFixer\Config::create()
1212
'@PSR2' => true,
1313
'@Symfony' => true,
1414
'array_syntax' => array('syntax' => 'long'),
15-
'phpdoc_order' => true,
15+
'concat_space' => array('spacing' => true),
16+
'ordered_imports' => true,
1617
'no_trailing_whitespace' => true,
17-
'concat_space' => array('spacing' => 'one'),
18+
'no_useless_return' => true,
19+
'no_useless_else' => true,
20+
'phpdoc_add_missing_param_annotation' => true,
21+
'phpdoc_order' => true,
1822
))
1923
->setFinder($finder)
2024
;

src/ShapeFile.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public static function supports_dbase()
5656
}
5757

5858
/**
59-
* @param int $shapeType
59+
* @param int $shapeType
60+
* @param mixed $boundingBox
61+
* @param null|mixed $FileName
6062
*/
6163
public function __construct($shapeType, $boundingBox = array('xmin' => 0.0, 'ymin' => 0.0, 'xmax' => 0.0, 'ymax' => 0.0), $FileName = null)
6264
{
@@ -98,9 +100,9 @@ public function loadFromFile($FileName)
98100
$this->_closeDBFFile();
99101

100102
return true;
101-
} else {
102-
return false;
103103
}
104+
105+
return false;
104106
}
105107

106108
/**

src/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public static function packDouble($value)
9595

9696
if (self::$little_endian) {
9797
return $bin;
98-
} else {
99-
return self::swap($bin);
10098
}
99+
100+
return self::swap($bin);
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)