@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Ported attribute migration script from: |
|
4 | - * |
|
5 | - * https://github.com/astorm/Pulsestorm/blob/master/magento-create-setup.php |
|
6 | - * https://github.com/astorm/Pulsestorm/blob/2863201b19367d02483e01b1c03b54b979d87278/_trash/magento-create-setup.php |
|
7 | - * |
|
8 | - * It creates attribute script for existing attribute |
|
9 | - * |
|
10 | - * Originally created by Alan Storm |
|
11 | - * |
|
12 | - * @author Dusan Lukic <[email protected]> |
|
13 | - */ |
|
3 | + * Ported attribute migration script from: |
|
4 | + * |
|
5 | + * https://github.com/astorm/Pulsestorm/blob/master/magento-create-setup.php |
|
6 | + * https://github.com/astorm/Pulsestorm/blob/2863201b19367d02483e01b1c03b54b979d87278/_trash/magento-create-setup.php |
|
7 | + * |
|
8 | + * It creates attribute script for existing attribute |
|
9 | + * |
|
10 | + * Originally created by Alan Storm |
|
11 | + * |
|
12 | + * @author Dusan Lukic <[email protected]> |
|
13 | + */ |
|
14 | 14 | namespace N98\Magento\Command\Developer\Setup\Script; |
15 | 15 | |
16 | 16 | use Exception; |
@@ -260,8 +260,8 @@ discard block |
||
260 | 260 | $config_ver = $this->_getConfiguredVersionFromResourceObject($setupResource); |
261 | 261 | |
262 | 262 | if ( |
263 | - (string)$config_ver == (string)$db_ver && //structure |
|
264 | - (string)$config_ver == (string)$db_data_ver //data |
|
263 | + (string) $config_ver == (string) $db_ver && //structure |
|
264 | + (string) $config_ver == (string) $db_data_ver //data |
|
265 | 265 | ) { |
266 | 266 | continue; |
267 | 267 | } |
@@ -321,8 +321,8 @@ discard block |
||
321 | 321 | |
322 | 322 | $args = array( |
323 | 323 | '', |
324 | - (string)$dbVersion, |
|
325 | - (string)$configVersion, |
|
324 | + (string) $dbVersion, |
|
325 | + (string) $configVersion, |
|
326 | 326 | ); |
327 | 327 | |
328 | 328 | $args[0] = $dbVersion |
@@ -209,7 +209,7 @@ |
||
209 | 209 | array( |
210 | 210 | 'table' => $tableName, |
211 | 211 | 'operation' => 'ENGINE ' . $engine, |
212 | - 'type' => sprintf('%15s rows', (string)$affectedRows), |
|
212 | + 'type' => sprintf('%15s rows', (string) $affectedRows), |
|
213 | 213 | 'status' => sprintf('%.3f secs', microtime(true) - $start), |
214 | 214 | ) |
215 | 215 | ); |
@@ -258,7 +258,7 @@ |
||
258 | 258 | $definitions, |
259 | 259 | $resolved |
260 | 260 | ); |
261 | - $resolvedList = array_merge($resolvedList, $tables); |
|
261 | + $resolvedList = array_merge($resolvedList, $tables); |
|
262 | 262 | } |
263 | 263 | continue; |
264 | 264 | } |
@@ -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 | /** |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | |
241 | 241 | if ($input->getOption('magentoVersion')) { |
242 | 242 | $type = $input->getOption('magentoVersion'); |
243 | - if ($type !== (string)(int)$type) { |
|
243 | + if ($type !== (string) (int) $type) { |
|
244 | 244 | $type = $this->getPackageNumberByName($type); |
245 | 245 | } |
246 | 246 | } elseif ($input->getOption('magentoVersionByName')) { |
@@ -277,8 +277,8 @@ discard block |
||
277 | 277 | private function getPackageNumberByName($name) |
278 | 278 | { |
279 | 279 | // directly filter integer strings |
280 | - if ($name === (string)(int)$name) { |
|
281 | - return (int)$name; |
|
280 | + if ($name === (string) (int) $name) { |
|
281 | + return (int) $name; |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | $magentoPackages = $this->commandConfig['magento-packages']; |
@@ -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 | /** |