@@ -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 | /** |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | 'password' => null, |
98 | 98 | ); |
99 | 99 | |
100 | - $config = ((array) $resources->default_setup->connection) + $config; |
|
101 | - $config['prefix'] = (string) $resources->db->table_prefix; |
|
100 | + $config = ((array)$resources->default_setup->connection) + $config; |
|
101 | + $config['prefix'] = (string)$resources->db->table_prefix; |
|
102 | 102 | |
103 | 103 | // known parameters: host, port, unix_socket, dbname, username, password, options, charset, persistent, |
104 | 104 | // driver_options |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | /* @see Varien_Db_Adapter_Pdo_Mysql::_connect */ |
110 | 110 | if (strpos($config['host'], '/') !== false) { |
111 | - $config['unix_socket'] = (string) $config['host']; |
|
111 | + $config['unix_socket'] = (string)$config['host']; |
|
112 | 112 | $config['host'] = null; |
113 | 113 | $config['port'] = null; |
114 | 114 | } elseif (strpos($config['host'], ':') !== false) { |
@@ -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 .= '/'; |