@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace N98\Util\Console\Helper; |
4 | 4 | |
5 | -use Symfony\Component\Console\Tester\CommandTester; |
|
6 | 5 | use N98\Magento\Command\PHPUnit\TestCase; |
7 | 6 | |
8 | 7 |
@@ -155,8 +155,8 @@ |
||
155 | 155 | $this->getApplication()->run($input, new NullOutput()); |
156 | 156 | |
157 | 157 | $comment = '<comment>' . $this->toggleComment . '</comment> ' |
158 | - . '<info>' . (!$isFalse ? $this->falseName : $this->trueName) . '</info>' |
|
159 | - . ($runOnStoreView ? ' <comment>for store</comment> <info>' . $store->getCode() . '</info>' : ''); |
|
158 | + . '<info>' . (!$isFalse ? $this->falseName : $this->trueName) . '</info>' |
|
159 | + . ($runOnStoreView ? ' <comment>for store</comment> <info>' . $store->getCode() . '</info>' : ''); |
|
160 | 160 | $output->writeln($comment); |
161 | 161 | |
162 | 162 | $this->_afterSave($store, $isFalse); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | $this->getHelper('table') |
85 | - ->setHeaders(array('Name', 'Type', 'Enabled')) |
|
86 | - ->renderByFormat($output, $tableData, $input->getOption('format')); |
|
85 | + ->setHeaders(array('Name', 'Type', 'Enabled')) |
|
86 | + ->renderByFormat($output, $tableData, $input->getOption('format')); |
|
87 | 87 | } |
88 | 88 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | foreach ($cacheTypes as $cacheType) { |
74 | 74 | |
75 | 75 | // If 'enabled' option is set, filter those who match |
76 | - if (! is_null($input->getOption('enabled')) && $input->getOption('enabled') != $cacheType->getStatus()) { |
|
76 | + if (!is_null($input->getOption('enabled')) && $input->getOption('enabled') != $cacheType->getStatus()) { |
|
77 | 77 | unset($cacheTypes[$cacheType->getId()]); |
78 | 78 | continue; |
79 | 79 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $collection->addFieldToFilter( |
64 | 64 | 'scope', |
65 | 65 | array( |
66 | - 'eq' => $scopeId |
|
66 | + 'eq' => $scopeId |
|
67 | 67 | ) |
68 | 68 | ); |
69 | 69 | } |
@@ -187,7 +187,7 @@ |
||
187 | 187 | */ |
188 | 188 | protected function formatVariables(array $vars) |
189 | 189 | { |
190 | - $rounding = (int)$this->_input->getOption('rounding'); |
|
190 | + $rounding = (int) $this->_input->getOption('rounding'); |
|
191 | 191 | if ($rounding > -1) { |
192 | 192 | foreach ($vars as $k => &$v) { |
193 | 193 | if (true === $this->allowRounding($k)) { |
@@ -26,9 +26,9 @@ |
||
26 | 26 | $this->detectDbSettings($output); |
27 | 27 | |
28 | 28 | $descriptorSpec = array( |
29 | - 0 => STDIN, |
|
30 | - 1 => STDOUT, |
|
31 | - 2 => STDERR |
|
29 | + 0 => STDIN, |
|
30 | + 1 => STDOUT, |
|
31 | + 2 => STDERR |
|
32 | 32 | ); |
33 | 33 | |
34 | 34 | $exec = 'mysql ' . $this->getHelper('database')->getMysqlClientToolConnectionString(); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | 'max_write_lock_count' => 1, |
73 | 73 | 'slave_max_allowed_packet' => 1, |
74 | 74 | ); |
75 | - $isSize = false !== strpos($name, '_size'); |
|
75 | + $isSize = false !== strpos($name, '_size'); |
|
76 | 76 | |
77 | 77 | return $isSize || isset($toHuman[$name]); |
78 | 78 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $this->getCommand()->getHelper('twig')->render($template, $this->config->getArray('twigVars')) |
32 | 32 | ); |
33 | 33 | |
34 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
34 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ) |
29 | 29 | ); |
30 | 30 | |
31 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
31 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
32 | 32 | |
33 | 33 | return true; |
34 | 34 | } |