@@ -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 | |
@@ -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 | |
@@ -155,8 +155,8 @@ |
||
| 155 | 155 | $this->getApplication()->run($input, new NullOutput()); |
| 156 | 156 | |
| 157 | 157 | $comment = '<comment>' . $this->toggleComment . '</comment> ' |
| 158 | - . '<info>' . (!$isFalse ? $this->falseName : $this->trueName) . '</info>' |
|
| 159 | - . ($runOnStoreView ? ' <comment>for store</comment> <info>' . $store->getCode() . '</info>' : ''); |
|
| 158 | + . '<info>' . (!$isFalse ? $this->falseName : $this->trueName) . '</info>' |
|
| 159 | + . ($runOnStoreView ? ' <comment>for store</comment> <info>' . $store->getCode() . '</info>' : ''); |
|
| 160 | 160 | $output->writeln($comment); |
| 161 | 161 | |
| 162 | 162 | $this->_afterSave($store, $isFalse); |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $this->getHelper('table') |
| 85 | - ->setHeaders(array('Name', 'Type', 'Enabled')) |
|
| 86 | - ->renderByFormat($output, $tableData, $input->getOption('format')); |
|
| 85 | + ->setHeaders(array('Name', 'Type', 'Enabled')) |
|
| 86 | + ->renderByFormat($output, $tableData, $input->getOption('format')); |
|
| 87 | 87 | } |
| 88 | 88 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $collection->addFieldToFilter( |
| 64 | 64 | 'scope', |
| 65 | 65 | array( |
| 66 | - 'eq' => $scopeId |
|
| 66 | + 'eq' => $scopeId |
|
| 67 | 67 | ) |
| 68 | 68 | ); |
| 69 | 69 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $this->_collection->addFieldToFilter( |
| 81 | 81 | 'scope', |
| 82 | 82 | array( |
| 83 | - 'eq' => $scopeId |
|
| 83 | + 'eq' => $scopeId |
|
| 84 | 84 | ) |
| 85 | 85 | ); |
| 86 | 86 | } |
@@ -190,9 +190,9 @@ discard block |
||
| 190 | 190 | foreach ($table as $row) { |
| 191 | 191 | $value = str_replace(array("\n", "\r"), array('\n', '\r'), $row['value']); |
| 192 | 192 | $line = 'config:set ' . $row['path'] |
| 193 | - . ' --scope-id=' . $row['scope_id'] |
|
| 194 | - . ' --scope=' . $row['scope'] |
|
| 195 | - . ' ' . escapeshellarg($value); |
|
| 193 | + . ' --scope-id=' . $row['scope_id'] |
|
| 194 | + . ' --scope=' . $row['scope'] |
|
| 195 | + . ' ' . escapeshellarg($value); |
|
| 196 | 196 | $output->writeln($line); |
| 197 | 197 | } |
| 198 | 198 | } |