@@ -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; |
| 8 | 8 | |
| 9 | 9 | use ArrayAccess; |
@@ -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) { |
@@ -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; |
@@ -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 | } |
@@ -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\Cache\Dir; |
| 8 | 8 | |
| 9 | 9 | use FilesystemIterator; |
@@ -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 | } |
@@ -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; |