@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use PDOException; |
| 7 | 7 | use RuntimeException; |
| 8 | 8 | use Symfony\Component\Console\Helper\Helper as AbstractHelper; |
| 9 | -use N98\Magento\Application; |
|
| 10 | 9 | use Symfony\Component\Console\Output\NullOutput; |
| 11 | 10 | use Symfony\Component\Console\Output\OutputInterface; |
| 12 | 11 | |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | throw new RuntimeException('Cannot find default connection config in app/etc/config.php'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - $this->dbSettings = (array) $config['db']['connection']['default']; |
|
| 59 | + $this->dbSettings = (array)$config['db']['connection']['default']; |
|
| 60 | 60 | |
| 61 | 61 | $this->dbSettings['prefix'] = ''; |
| 62 | 62 | if (isset($config['db']['table_prefix'])) { |
| 63 | - $this->dbSettings['prefix'] = (string) $config['db']['table_prefix']; |
|
| 63 | + $this->dbSettings['prefix'] = (string)$config['db']['table_prefix']; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if (strpos($this->dbSettings['host'], ':') !== false) { |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | $definitions, |
| 299 | 299 | $resolved |
| 300 | 300 | ); |
| 301 | - $resolvedList = array_merge($resolvedList, $tables); |
|
| 301 | + $resolvedList = array_merge($resolvedList, $tables); |
|
| 302 | 302 | } |
| 303 | 303 | continue; |
| 304 | 304 | } |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace N98\Util\Console\Helper; |
| 4 | 4 | |
| 5 | 5 | use N98\Magento\Application; |
| 6 | -use N98\Util\BinaryString; |
|
| 7 | 6 | use RuntimeException; |
| 8 | 7 | use Symfony\Component\Console\Helper\Helper as AbstractHelper; |
| 9 | 8 | use Symfony\Component\Console\Input\ArgvInput; |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Symfony\Component\Console\Helper\Helper as AbstractHelper; |
| 10 | 10 | use Symfony\Component\Console\Output\OutputInterface; |
| 11 | 11 | use Symfony\Component\Console\Input\InputInterface; |
| 12 | -use Symfony\Component\Console\Output\Output; |
|
| 13 | 12 | use Symfony\Component\Translation\Translator; |
| 14 | 13 | use Symfony\Component\Validator\Constraint; |
| 15 | 14 | use Symfony\Component\Validator\Validator; |
@@ -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 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace N98\Util\Console\Helper; |
| 4 | 4 | |
| 5 | -use Symfony\Component\Console\Tester\CommandTester; |
|
| 6 | 5 | use N98\Magento\Command\PHPUnit\TestCase; |
| 7 | 6 | |
| 8 | 7 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | foreach ($cacheTypes as $cacheType) { |
| 74 | 74 | |
| 75 | 75 | // If 'enabled' option is set, filter those who match |
| 76 | - if (! is_null($input->getOption('enabled')) && $input->getOption('enabled') != $cacheType->getStatus()) { |
|
| 76 | + if (!is_null($input->getOption('enabled')) && $input->getOption('enabled') != $cacheType->getStatus()) { |
|
| 77 | 77 | unset($cacheTypes[$cacheType->getId()]); |
| 78 | 78 | continue; |
| 79 | 79 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'max_write_lock_count' => 1, |
| 73 | 73 | 'slave_max_allowed_packet' => 1, |
| 74 | 74 | ); |
| 75 | - $isSize = false !== strpos($name, '_size'); |
|
| 75 | + $isSize = false !== strpos($name, '_size'); |
|
| 76 | 76 | |
| 77 | 77 | return $isSize || isset($toHuman[$name]); |
| 78 | 78 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $this->getCommand()->getHelper('twig')->render($template, $this->config->getArray('twigVars')) |
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
| 34 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | } |
@@ -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 | } |