@@ -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 | { |
@@ -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 | { |
@@ -222,9 +222,9 @@ |
||
222 | 222 | * @param OutputInterface $output |
223 | 223 | * @param string $name |
224 | 224 | * @param string $value |
225 | - * @param Constraints\Collection|Constraint|Constraint[] $constraints The constraint(s) to validate against. |
|
225 | + * @param Constraints\Collection $constraints The constraint(s) to validate against. |
|
226 | 226 | * |
227 | - * @return mixed |
|
227 | + * @return string |
|
228 | 228 | */ |
229 | 229 | protected function _validateArgument(OutputInterface $output, $name, $value, $constraints) |
230 | 230 | { |
@@ -26,8 +26,7 @@ |
||
26 | 26 | // Magento 2.0 compatibility |
27 | 27 | $magentoVersion = \Magento\Framework\AppInterface::VERSION; |
28 | 28 | $magentoEdition = 'Community'; // @TODO Replace this if EE is available |
29 | - } |
|
30 | - else { |
|
29 | + } else { |
|
31 | 30 | // Magento 2.1+ compatibility |
32 | 31 | /** @var \Magento\Framework\App\ProductMetadata $productMetadata */ |
33 | 32 | $productMetadata = $this->getApplication()->getObjectManager()->get('\Magento\Framework\App\ProductMetadata'); |
@@ -94,7 +94,7 @@ |
||
94 | 94 | private function resolvePaths($path, $scopeId) |
95 | 95 | { |
96 | 96 | if (false === strstr($path, '*')) { |
97 | - return (array)$path; |
|
97 | + return (array) $path; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | $paths = array(); |