@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $subCommand = new $className(); |
| 77 | - if (! $subCommand instanceof SubCommandInterface) { |
|
| 77 | + if (!$subCommand instanceof SubCommandInterface) { |
|
| 78 | 78 | throw new \InvalidArgumentException('Subcommand must implement SubCommandInterface.'); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | $timezone = $input->getOption('timezone') |
| 50 | - ? $input->getOption('timezone') : |
|
| 51 | - $this->_scopeConfig->getValue('general/locale/timezone'); |
|
| 50 | + ? $input->getOption('timezone') : $this->_scopeConfig->getValue('general/locale/timezone'); |
|
| 52 | 51 | |
| 53 | 52 | if (!$input->getOption('format')) { |
| 54 | 53 | $output->writeln('<info>Times shown in <comment>' . $timezone . '</comment></info>'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $jobConfig = $this->getJobConfig($jobCode); |
| 50 | 50 | |
| 51 | - if (empty($jobCode)|| !isset($jobConfig['instance'])) { |
|
| 51 | + if (empty($jobCode) || !isset($jobConfig['instance'])) { |
|
| 52 | 52 | throw new \InvalidArgumentException('No job config found!'); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -104,14 +104,14 @@ discard block |
||
| 104 | 104 | protected function askJobCode(InputInterface $input, OutputInterface $output, $jobs) |
| 105 | 105 | { |
| 106 | 106 | foreach ($jobs as $key => $job) { |
| 107 | - $question[] = '<comment>[' . ($key+1) . ']</comment> ' . $job['Job'] . PHP_EOL; |
|
| 107 | + $question[] = '<comment>[' . ($key + 1) . ']</comment> ' . $job['Job'] . PHP_EOL; |
|
| 108 | 108 | } |
| 109 | 109 | $question[] = '<question>Please select job: </question>' . PHP_EOL; |
| 110 | 110 | |
| 111 | 111 | $jobCode = $this->getHelperSet()->get('dialog')->askAndValidate( |
| 112 | 112 | $output, |
| 113 | 113 | $question, |
| 114 | - function ($typeInput) use ($jobs) { |
|
| 114 | + function($typeInput) use ($jobs) { |
|
| 115 | 115 | if (!isset($jobs[$typeInput - 1])) { |
| 116 | 116 | throw new \InvalidArgumentException('Invalid job'); |
| 117 | 117 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | |
| 104 | 104 | public function hasInfo() |
| 105 | 105 | { |
| 106 | - return ! empty($this->infos); |
|
| 106 | + return !empty($this->infos); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | public function getInfo($key = null) |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $process = ProcessBuilder::create($commandArgs)->getProcess(); |
| 30 | 30 | $process->setInput($this->input); |
| 31 | 31 | $process->setTimeout(3600); |
| 32 | - $process->run(function ($type, $buffer) use ($silent) { |
|
| 32 | + $process->run(function($type, $buffer) use ($silent) { |
|
| 33 | 33 | if ($silent) { |
| 34 | 34 | return; |
| 35 | 35 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $argumentsToInject[] = $objectManager->get($parameter[1]); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - call_user_func_array([ $object, $methodName ], $argumentsToInject); |
|
| 35 | + call_user_func_array([$object, $methodName], $argumentsToInject); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -16,11 +16,11 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public static function getLoader() |
| 18 | 18 | { |
| 19 | - if ((!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__.'/../vendor/autoload.php')) |
|
| 20 | - && (!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__.'/../../../autoload.php'))) { |
|
| 21 | - throw new \ErrorException('You must set up the project dependencies, run the following commands:'.PHP_EOL. |
|
| 22 | - 'curl -s http://getcomposer.org/installer | php'.PHP_EOL. |
|
| 23 | - 'php composer.phar install'.PHP_EOL); |
|
| 19 | + if ((!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__ . '/../vendor/autoload.php')) |
|
| 20 | + && (!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__ . '/../../../autoload.php'))) { |
|
| 21 | + throw new \ErrorException('You must set up the project dependencies, run the following commands:' . PHP_EOL . |
|
| 22 | + 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . |
|
| 23 | + 'php composer.phar install' . PHP_EOL); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | return $loader; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $disabledCacheTypes = 0; |
| 43 | 43 | |
| 44 | 44 | foreach ($cacheTypes as $cacheType) { |
| 45 | - if (! $cacheType->getStatus()) { |
|
| 45 | + if (!$cacheType->getStatus()) { |
|
| 46 | 46 | $disabledCacheTypes++; |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -219,11 +219,11 @@ |
||
| 219 | 219 | public static function convertedBytesProvider() |
| 220 | 220 | { |
| 221 | 221 | return array( |
| 222 | - array(20000000, 2, '19.07M'), |
|
| 223 | - array(20000000, 3, '19.073M'), |
|
| 224 | - array(2000000000, 2, '1.86G'), |
|
| 225 | - array(2, 2, '2.00B'), |
|
| 226 | - array(2048, 2, '2.00K'), |
|
| 222 | + array(20000000, 2, '19.07M'), |
|
| 223 | + array(20000000, 3, '19.073M'), |
|
| 224 | + array(2000000000, 2, '1.86G'), |
|
| 225 | + array(2, 2, '2.00B'), |
|
| 226 | + array(2048, 2, '2.00K'), |
|
| 227 | 227 | ); |
| 228 | 228 | } |
| 229 | 229 | } |