@@ -8,5 +8,10 @@ |
||
8 | 8 | */ |
9 | 9 | interface ApplicationAwareInterface |
10 | 10 | { |
11 | + /** |
|
12 | + * @param $application |
|
13 | + * |
|
14 | + * @return void |
|
15 | + */ |
|
11 | 16 | public function setApplication($application); |
12 | 17 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use N98\Magento\Application; |
6 | 6 | use N98\Magento\Application\ApplicationAwareInterface; |
7 | -use N98\Magento\Application\Console\Event; |
|
8 | 7 | use N98\Magento\Application\Console\Events; |
9 | 8 | use Symfony\Component\Console\Event\ConsoleEvent; |
10 | 9 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
@@ -206,7 +206,7 @@ |
||
206 | 206 | /** |
207 | 207 | * @param InputInterface $input |
208 | 208 | * @param OutputInterface $output |
209 | - * @param $commandString |
|
209 | + * @param string $commandString |
|
210 | 210 | * @return mixed |
211 | 211 | */ |
212 | 212 | protected function registerVariable(InputInterface $input, OutputInterface $output, $commandString) |
@@ -222,9 +222,9 @@ |
||
222 | 222 | /** |
223 | 223 | * @param InputInterface $input |
224 | 224 | * @param OutputInterface $output |
225 | - * @param $name |
|
225 | + * @param string $name |
|
226 | 226 | * @param $value |
227 | - * @param $constraints |
|
227 | + * @param Constraints\Collection $constraints |
|
228 | 228 | * @return mixed |
229 | 229 | */ |
230 | 230 | protected function _validateArgument(InputInterface $input, OutputInterface $output, $name, $value, $constraints) |
@@ -62,8 +62,8 @@ |
||
62 | 62 | // We mock the DialogHelper |
63 | 63 | $dialog = $this->createMock('N98\Util\Console\Helper\ParameterHelper', ['askPassword']); |
64 | 64 | $dialog->expects($this->at(0)) |
65 | - ->method('askPassword') |
|
66 | - ->willReturn(true); // The user confirms |
|
65 | + ->method('askPassword') |
|
66 | + ->willReturn(true); // The user confirms |
|
67 | 67 | |
68 | 68 | // We override the standard helper with our mock |
69 | 69 | $command->getHelperSet()->set($dialog, 'parameter'); |
@@ -118,22 +118,22 @@ |
||
118 | 118 | $areaCode, |
119 | 119 | function () use ($check, $results, $checkGroupClass) { |
120 | 120 | switch (true) { |
121 | - case $check instanceof Check\SimpleCheck: |
|
122 | - $check->check($results); |
|
123 | - break; |
|
124 | - |
|
125 | - case $check instanceof Check\StoreCheck: |
|
126 | - $this->checkStores($results, $checkGroupClass, $check); |
|
127 | - break; |
|
128 | - |
|
129 | - case $check instanceof Check\WebsiteCheck: |
|
130 | - $this->checkWebsites($results, $checkGroupClass, $check); |
|
131 | - break; |
|
132 | - |
|
133 | - default: |
|
134 | - throw new LogicException( |
|
135 | - sprintf('Unhandled check-class "%s"', $checkGroupClass) |
|
136 | - ); |
|
121 | + case $check instanceof Check\SimpleCheck: |
|
122 | + $check->check($results); |
|
123 | + break; |
|
124 | + |
|
125 | + case $check instanceof Check\StoreCheck: |
|
126 | + $this->checkStores($results, $checkGroupClass, $check); |
|
127 | + break; |
|
128 | + |
|
129 | + case $check instanceof Check\WebsiteCheck: |
|
130 | + $this->checkWebsites($results, $checkGroupClass, $check); |
|
131 | + break; |
|
132 | + |
|
133 | + default: |
|
134 | + throw new LogicException( |
|
135 | + sprintf('Unhandled check-class "%s"', $checkGroupClass) |
|
136 | + ); |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | ); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * @param array $matrix |
44 | 44 | * @param string $key key to filter |
45 | - * @param mixed $value to compare against (strict comparison) |
|
45 | + * @param string $value to compare against (strict comparison) |
|
46 | 46 | * @return array |
47 | 47 | */ |
48 | 48 | public static function matrixFilterByValue(array $matrix, $key, $value) |
@@ -297,7 +297,7 @@ |
||
297 | 297 | $dbHost = $this->config->getString('db_host'); |
298 | 298 | |
299 | 299 | if ($this->config->getInt('db_port') !== 3306) { |
300 | - $dbHost .= ':' . (string)$this->config->getInt('db_port'); |
|
300 | + $dbHost .= ':' . (string) $this->config->getInt('db_port'); |
|
301 | 301 | |
302 | 302 | return $dbHost; |
303 | 303 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ->addOption('consumer-secret', '', InputOption::VALUE_REQUIRED, 'Consumer Secret (length 32 chars)') |
70 | 70 | ->addOption('access-token', '', InputOption::VALUE_REQUIRED, 'Access-Token (length 32 chars)') |
71 | 71 | ->addOption('access-token-secret', '', InputOption::VALUE_REQUIRED, 'Access-Token Secret (length 32 chars)') |
72 | - ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY|InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
72 | + ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', []) |
|
73 | 73 | ->setDescription('Create a new integration'); |
74 | 74 | |
75 | 75 | $help = <<<HELP |