@@ -9,7 +9,7 @@ |
||
9 | 9 | class InstallSampleData extends AbstractSubCommand |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return false|null |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace N98\Magento\Command\Database\Maintain; |
4 | 4 | |
5 | -use Symfony\Component\Console\Output\NullOutput; |
|
6 | -use Symfony\Component\Console\Tester\ApplicationTester; |
|
7 | 5 | use Symfony\Component\Console\Tester\CommandTester; |
8 | 6 | use N98\Magento\Command\PHPUnit\TestCase; |
9 | 7 |
@@ -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 | } |
@@ -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 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @todo writing unit tests for toggling caches is complicated because environments differ |
|
4 | - * touching caches changes state and will result in different test result second time |
|
5 | - * solutions: disabling/enabling, faking&mocking or having one defined test environment |
|
6 | - */ |
|
3 | + * @todo writing unit tests for toggling caches is complicated because environments differ |
|
4 | + * touching caches changes state and will result in different test result second time |
|
5 | + * solutions: disabling/enabling, faking&mocking or having one defined test environment |
|
6 | + */ |
|
7 | 7 | namespace N98\Magento\Command\Cache; |
8 | 8 | |
9 | 9 | use Symfony\Component\Console\Tester\CommandTester; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $process->setTimeout(86400); |
56 | 56 | $process->start(); |
57 | - $process->wait(function ($type, $buffer) { |
|
57 | + $process->wait(function($type, $buffer) { |
|
58 | 58 | $this->output->write($buffer, false, OutputInterface::OUTPUT_RAW); |
59 | 59 | }); |
60 | 60 |