@@ -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\Magento\Command\System\Check\Settings; |
| 8 | 8 | |
| 9 | 9 | use N98\Magento\Command\System\Check\Result; |
@@ -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\Magento\Command\System\Check\Settings; |
| 8 | 8 | |
| 9 | 9 | use Mage_Core_Model_Store; |
@@ -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\Magento\Command\System\Check\Settings; |
| 8 | 8 | |
| 9 | 9 | use Mage; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | protected function printStackTrace(OutputInterface $output, array $trace) |
| 83 | 83 | { |
| 84 | 84 | $rootFolder = $this->getApplication()->getMagentoRootFolder(); |
| 85 | - $trace = array_filter($trace, function (&$row) use ($rootFolder) { |
|
| 85 | + $trace = array_filter($trace, function(&$row) use ($rootFolder) { |
|
| 86 | 86 | if (!strstr($row['file'], $rootFolder)) { |
| 87 | 87 | return false; |
| 88 | 88 | } |
@@ -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 |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if ($input->getOption('errors-only')) { |
| 98 | - $table = array_filter($table, function ($row) { |
|
| 98 | + $table = array_filter($table, function($row) { |
|
| 99 | 99 | return ($row['Status'] === 'Error'); |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | //highlight the status |
| 105 | 105 | //and show error'd rows at bottom |
| 106 | 106 | if (!$input->getOption('format')) { |
| 107 | - usort($table, function ($a, $b) { |
|
| 107 | + usort($table, function($a, $b) { |
|
| 108 | 108 | if ($a['Status'] !== 'OK' && $b['Status'] === 'OK') { |
| 109 | 109 | return 1; |
| 110 | 110 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | return strcmp($a['Setup'], $b['Setup']); |
| 115 | 115 | }); |
| 116 | 116 | |
| 117 | - array_walk($table, function (&$row) { |
|
| 117 | + array_walk($table, function(&$row) { |
|
| 118 | 118 | $status = $row['Status']; |
| 119 | 119 | $availableStatus = array('OK' => 'info', 'Error' => 'error'); |
| 120 | 120 | $statusString = sprintf( |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | |
| 167 | 167 | $vendors = iterator_to_array($finder); |
| 168 | 168 | $vendors = array_map( |
| 169 | - function ($value) use ($codePoolDir) { |
|
| 169 | + function($value) use ($codePoolDir) { |
|
| 170 | 170 | return str_replace($codePoolDir, '', $value); |
| 171 | 171 | }, |
| 172 | 172 | $vendors |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | $jobCode = $dialogHelper->askAndValidate( |
| 128 | 128 | $output, |
| 129 | 129 | $question, |
| 130 | - function ($typeInput) use ($keyMap, $jobs) { |
|
| 130 | + function($typeInput) use ($keyMap, $jobs) { |
|
| 131 | 131 | $key = $keyMap[$typeInput]; |
| 132 | 132 | if (!isset($jobs[$key])) { |
| 133 | 133 | throw new InvalidArgumentException('Invalid job'); |
@@ -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\Magento\Command\Database\Compressor; |
| 8 | 8 | |
| 9 | 9 | /** |