@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * this file is part of magerun |
|
4 | - * |
|
5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | - */ |
|
3 | + * this file is part of magerun |
|
4 | + * |
|
5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
6 | + */ |
|
7 | 7 | namespace N98\Util; |
8 | 8 | |
9 | 9 | /** |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public static function isLinux() |
28 | 28 | { |
29 | - return (bool) stristr(PHP_OS, 'linux'); |
|
29 | + return (bool)stristr(PHP_OS, 'linux'); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function isNetware() |
50 | 50 | { |
51 | - return (bool) stristr(PHP_OS, 'netware'); |
|
51 | + return (bool)stristr(PHP_OS, 'netware'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $finder->exclude($commandConfig['strip']['folders']); |
44 | 44 | } |
45 | 45 | |
46 | - $filename = (string) $input->getArgument('filename'); |
|
46 | + $filename = (string)$input->getArgument('filename'); |
|
47 | 47 | if (is_dir($filename)) { // support for dot dir |
48 | 48 | $filename = realpath($filename); |
49 | 49 | $filename .= '/'; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | str_ireplace( |
51 | 51 | $searchString, |
52 | 52 | '<info>' . $searchString . '</info>', |
53 | - (string) $match->node->comment |
|
53 | + (string)$match->node->comment |
|
54 | 54 | ) |
55 | 55 | ); |
56 | 56 | } |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | { |
118 | 118 | $match = new \stdClass; |
119 | 119 | $match->type = $this->_getNodeType($node); |
120 | - if (stristr((string) $node->label, $searchString)) { |
|
120 | + if (stristr((string)$node->label, $searchString)) { |
|
121 | 121 | $match->match_type = 'label'; |
122 | 122 | $match->node = $node; |
123 | 123 | |
124 | 124 | return $match; |
125 | 125 | } |
126 | 126 | |
127 | - if (stristr((string) $node->comment, $searchString)) { |
|
127 | + if (stristr((string)$node->comment, $searchString)) { |
|
128 | 128 | $match->match_type = 'comment'; |
129 | 129 | $match->node = $node; |
130 | 130 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | { |
207 | 207 | switch ($match->type) { |
208 | 208 | case 'section': |
209 | - return (string) $match->node->label . ' -> ... -> ...'; |
|
209 | + return (string)$match->node->label . ' -> ... -> ...'; |
|
210 | 210 | |
211 | 211 | case 'field': |
212 | 212 | $parent = current($match->node->xpath('parent::*')); |