@@ -4,11 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | use N98\Magento\Command\AbstractMagentoCommand; |
| 7 | -use Symfony\Component\Console\Input\InputArgument; |
|
| 8 | 7 | use Symfony\Component\Console\Input\InputInterface; |
| 9 | -use Symfony\Component\Console\Input\InputOption; |
|
| 10 | -use Symfony\Component\Console\Output\OutputInterface; |
|
| 11 | -use N98\Util\Console\Helper\Table\Renderer\RendererFactory; |
|
| 12 | 8 | |
| 13 | 9 | /** |
| 14 | 10 | * Class AbstractSetupCommand |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $resources = \Mage::getConfig()->getNode('global/resources')->children(); |
| 27 | 27 | |
| 28 | 28 | foreach ($resources as $resName => $resource) { |
| 29 | - $modName = (string) $resource->setup->module; |
|
| 29 | + $modName = (string)$resource->setup->module; |
|
| 30 | 30 | |
| 31 | 31 | if ($modName == $moduleName) { |
| 32 | 32 | $moduleSetups[$resName] = $resource; |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param OutputInterface $output |
| 11 | 11 | * @param array $rows headers are expected to be the keys of the first row. |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function render(OutputInterface $output, array $rows); |
| 14 | 15 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @param string $template |
| 19 | - * @return Php |
|
| 19 | + * @return PhpView |
|
| 20 | 20 | */ |
| 21 | 21 | public function setTemplate($template) |
| 22 | 22 | { |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @param string $key |
| 30 | 30 | * @param mixed $value |
| 31 | 31 | * |
| 32 | - * @return Php |
|
| 32 | + * @return PhpView |
|
| 33 | 33 | */ |
| 34 | 34 | public function assign($key, $value) |
| 35 | 35 | { |
@@ -4,6 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface View |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @return PhpView |
|
| 9 | + */ |
|
| 7 | 10 | public function assign($key, $value); |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @return string |
|
| 14 | + */ |
|
| 8 | 15 | public function render(); |
| 9 | 16 | } |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param OutputInterface $output |
| 11 | 11 | * @param array $rows headers are expected to be the keys of the first row. |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function render(OutputInterface $output, array $rows); |
| 14 | 15 | } |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param OutputInterface $output |
| 11 | 11 | * @param array $rows headers are expected to be the keys of the first row. |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function render(OutputInterface $output, array $rows); |
| 14 | 15 | } |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param OutputInterface $output |
| 11 | 11 | * @param array $rows headers are expected to be the keys of the first row. |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function render(OutputInterface $output, array $rows); |
| 14 | 15 | } |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * this file is part of magerun |
|
| 4 | - * |
|
| 5 | - * @author Tom Klingenberg <https://github.com/ktomk> |
|
| 6 | - */ |
|
| 3 | + * this file is part of magerun |
|
| 4 | + * |
|
| 5 | + * @author Tom Klingenberg <https://github.com/ktomk> |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace N98\Util; |
| 9 | 9 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param $file |
|
| 51 | + * @param string $file |
|
| 52 | 52 | * @return mixed |
| 53 | 53 | */ |
| 54 | 54 | public static function includeIfExists($file) |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | if (null === $type) { |
| 171 | 171 | $type = "@@"; |
| 172 | 172 | } else { |
| 173 | - $type = (string) $type; |
|
| 173 | + $type = (string)$type; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | if (!in_array($type, array("@@", "@"), true)) { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | $definitions, |
| 259 | 259 | $resolved |
| 260 | 260 | ); |
| 261 | - $resolvedList = array_merge($resolvedList, $tables); |
|
| 261 | + $resolvedList = array_merge($resolvedList, $tables); |
|
| 262 | 262 | } |
| 263 | 263 | continue; |
| 264 | 264 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | */ |
| 303 | 303 | public function getTables($withoutPrefix = null) |
| 304 | 304 | { |
| 305 | - $withoutPrefix = (bool) $withoutPrefix; |
|
| 305 | + $withoutPrefix = (bool)$withoutPrefix; |
|
| 306 | 306 | |
| 307 | 307 | $db = $this->getConnection(); |
| 308 | 308 | $prefix = $this->dbSettings['prefix']; |