@@ -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 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ) |
22 | 22 | ); |
23 | 23 | $this->output->writeln( |
24 | - '<info>Created file: <comment>' . $setupFolder . '/InstallSchema.php' .'<comment></info>' |
|
24 | + '<info>Created file: <comment>' . $setupFolder . '/InstallSchema.php' . '<comment></info>' |
|
25 | 25 | ); |
26 | 26 | |
27 | 27 | \file_put_contents( |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | ) |
33 | 33 | ); |
34 | 34 | $this->output->writeln( |
35 | - '<info>Created file: <comment>' . $setupFolder . '/InstallData.php' .'<comment></info>' |
|
35 | + '<info>Created file: <comment>' . $setupFolder . '/InstallData.php' . '<comment></info>' |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | \file_put_contents( |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ) |
44 | 44 | ); |
45 | 45 | $this->output->writeln( |
46 | - '<info>Created file: <comment>' . $setupFolder . '/UpgradeSchema.php' .'<comment></info>' |
|
46 | + '<info>Created file: <comment>' . $setupFolder . '/UpgradeSchema.php' . '<comment></info>' |
|
47 | 47 | ); |
48 | 48 | |
49 | 49 | \file_put_contents( |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ) |
55 | 55 | ); |
56 | 56 | $this->output->writeln( |
57 | - '<info>Created file: <comment>' . $setupFolder . '/UpgradeData.php' .'<comment></info>' |
|
57 | + '<info>Created file: <comment>' . $setupFolder . '/UpgradeData.php' . '<comment></info>' |
|
58 | 58 | ); |
59 | 59 | } |
60 | 60 | } |
@@ -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 | { |
@@ -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 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | 'status' => 1, |
50 | 50 | 'is_redeemable' => 1, |
51 | 51 | 'website_id' => $input->getOption('website') |
52 | - ? : $this->getObjectManager()->get('Magento\Store\Model\StoreManager')->getWebsite(true)->getId(), |
|
52 | + ?: $this->getObjectManager()->get('Magento\Store\Model\StoreManager')->getWebsite(true)->getId(), |
|
53 | 53 | 'balance' => $input->getArgument('amount'), |
54 | 54 | 'date_expires' => $input->getOption('expires') |
55 | 55 | ) |
@@ -319,7 +319,7 @@ |
||
319 | 319 | * @TODO Move logic into "EventSubscriber" |
320 | 320 | * |
321 | 321 | * @param OutputInterface $output |
322 | - * @return bool |
|
322 | + * @return null|false |
|
323 | 323 | */ |
324 | 324 | public function checkVarDir(OutputInterface $output) |
325 | 325 | { |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use Symfony\Component\Console\Input\InputInterface; |
21 | 21 | use Symfony\Component\Console\Input\InputOption; |
22 | 22 | use Symfony\Component\Console\Output\ConsoleOutput; |
23 | -use Symfony\Component\Console\Output\NullOutput; |
|
24 | 23 | use Symfony\Component\Console\Output\OutputInterface; |
25 | 24 | use Symfony\Component\EventDispatcher\EventDispatcher; |
26 | 25 | use UnexpectedValueException; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @param StoreManager $storeManager |
72 | 72 | * @param Category $sitemapCategoryCollection |
73 | - * @param Product $sitmapProductCollection |
|
73 | + * @param Product $sitemapProductCollection |
|
74 | 74 | * @param Page $sitemapPageCollection |
75 | 75 | */ |
76 | 76 | public function inject( |
@@ -146,7 +146,6 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @param string $resourceModel |
|
150 | 149 | * @param string $linkBaseUrl |
151 | 150 | * @param string $storeId |
152 | 151 | * @param array $urls |
@@ -34,28 +34,28 @@ |
||
34 | 34 | $config->setString('moduleDirectory', $moduleDir); |
35 | 35 | |
36 | 36 | mkdir($moduleDir, 0777, true); |
37 | - $this->output->writeln('<info>Created directory: <comment>' . $moduleDir .'<comment></info>'); |
|
37 | + $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '<comment></info>'); |
|
38 | 38 | |
39 | 39 | // Add etc folder |
40 | 40 | mkdir($moduleDir . '/etc'); |
41 | - $this->output->writeln('<info>Created directory: <comment>' . $moduleDir .'/etc<comment></info>'); |
|
41 | + $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/etc<comment></info>'); |
|
42 | 42 | |
43 | 43 | // Add blocks folder |
44 | 44 | if ($config->getBool('shouldAddBlocks')) { |
45 | 45 | mkdir($moduleDir . '/Block'); |
46 | - $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Block' .'<comment></info>'); |
|
46 | + $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Block' . '<comment></info>'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | // Add helpers folder |
50 | 50 | if ($config->getBool('shouldAddHelpers')) { |
51 | 51 | mkdir($moduleDir . '/Helper'); |
52 | - $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Helper' .'<comment></info>'); |
|
52 | + $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Helper' . '<comment></info>'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | // Add models folder |
56 | 56 | if ($config->getBool('shouldAddModels')) { |
57 | 57 | mkdir($moduleDir . '/Model'); |
58 | - $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Model' .'<comment></info>'); |
|
58 | + $this->output->writeln('<info>Created directory: <comment>' . $moduleDir . '/Model' . '<comment></info>'); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | // Create SQL and Data folder |