@@ -297,7 +297,7 @@ |
||
| 297 | 297 | { |
| 298 | 298 | if ($this->_userConfig == null) { |
| 299 | 299 | $this->_userConfig = array(); |
| 300 | - $homeDirectory = OperatingSystem::getHomeDir(); |
|
| 300 | + $homeDirectory = OperatingSystem::getHomeDir(); |
|
| 301 | 301 | if (OperatingSystem::isWindows()) { |
| 302 | 302 | $personalConfigFile = $homeDirectory . DIRECTORY_SEPARATOR . $this->_customConfigFilename; |
| 303 | 303 | } else { |
@@ -806,7 +806,7 @@ |
||
| 806 | 806 | */ |
| 807 | 807 | private function requireOnce($path) |
| 808 | 808 | { |
| 809 | - $requireOnce = function () { |
|
| 809 | + $requireOnce = function() { |
|
| 810 | 810 | require_once func_get_arg(0); |
| 811 | 811 | }; |
| 812 | 812 | if (50400 <= PHP_VERSION_ID) { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | /** @var $dialog DialogHelper */ |
| 82 | 82 | $dialog = $this->getHelperSet()->get('dialog'); |
| 83 | - $logFile = $dialog->askAndValidate($output, $question, function ($typeInput) use ($files) { |
|
| 83 | + $logFile = $dialog->askAndValidate($output, $question, function($typeInput) use ($files) { |
|
| 84 | 84 | if (!isset($files[$typeInput - 1])) { |
| 85 | 85 | throw new InvalidArgumentException('Invalid file'); |
| 86 | 86 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $selectedFile = $this->getHelper('dialog')->askAndValidate( |
| 64 | 64 | $output, |
| 65 | 65 | $question, |
| 66 | - function ($typeInput) use ($files) { |
|
| 66 | + function($typeInput) use ($files) { |
|
| 67 | 67 | if (!isset($files[$typeInput - 1])) { |
| 68 | 68 | throw new InvalidArgumentException('Invalid file'); |
| 69 | 69 | } |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | * |
| 448 | 448 | * @return string |
| 449 | 449 | */ |
| 450 | - $validateInstallationFolder = function ($folderName) use ($input) { |
|
| 450 | + $validateInstallationFolder = function($folderName) use ($input) { |
|
| 451 | 451 | |
| 452 | 452 | $folderName = rtrim(trim($folderName, ' '), '/'); |
| 453 | 453 | // resolve folder-name to current working directory if relative |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | } |
| 561 | 561 | $dialog .= "<question>{$question}</question> "; |
| 562 | 562 | |
| 563 | - $selected = $this->getHelper('dialog')->askAndValidate($output, $dialog, function ($typeInput) use ($entries) { |
|
| 563 | + $selected = $this->getHelper('dialog')->askAndValidate($output, $dialog, function($typeInput) use ($entries) { |
|
| 564 | 564 | if (!in_array($typeInput, range(1, count($entries)))) { |
| 565 | 565 | throw new InvalidArgumentException('Invalid type'); |
| 566 | 566 | } |
@@ -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 |