Completed
Pull Request — develop (#167)
by Robbie
04:52
created
tests/N98/Util/Console/Helper/DatabaseHelperTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/AbstractMagentoStoreConfigCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/AbstractModifierCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         // Find out which types simply do not exist or are not affected by modifier
56 56
         $invalidTypes = array_diff($types, array_keys($this->getCacheTypes(!static::TARGET_IS_ENABLED)));
57 57
 
58
-        if (! empty($invalidTypes)) {
58
+        if (!empty($invalidTypes)) {
59 59
             $output->writeln(sprintf(static::INVALID_TYPES_MESSAGE, implode(', ', $invalidTypes)));
60 60
         }
61 61
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
71
-        $cacheState =  $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface');
71
+        $cacheState = $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface');
72 72
         $touchedTypes = [];
73 73
 
74 74
         try {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             }
83 83
 
84 84
             $cacheState->persist();
85
-        } catch(\Exception $e) {
85
+        } catch (\Exception $e) {
86 86
             $output->writeln(sprintf(static::EXCEPTION_MESSAGE, $e->getMessage()));
87 87
         }
88 88
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/ListCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Config/DeleteCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                     $collection->addFieldToFilter(
64 64
                         'scope',
65 65
                         array(
66
-                             'eq' => $scopeId
66
+                                'eq' => $scopeId
67 67
                         )
68 68
                     );
69 69
                 }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Config/GetCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/ConfigurationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
     {
296 296
         if ($this->_userConfig == null) {
297 297
             $this->_userConfig = array();
298
-            $homeDirectory =  OperatingSystem::getHomeDir();
298
+            $homeDirectory = OperatingSystem::getHomeDir();
299 299
             if (OperatingSystem::isWindows()) {
300 300
                 $personalConfigFile = $homeDirectory . DIRECTORY_SEPARATOR . $this->_customConfigFilename;
301 301
             } else {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/AbstractShowCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
      */
188 188
     protected function formatVariables(array $vars)
189 189
     {
190
-        $rounding = (int)$this->_input->getOption('rounding');
190
+        $rounding = (int) $this->_input->getOption('rounding');
191 191
         if ($rounding > -1) {
192 192
             foreach ($vars as $k => &$v) {
193 193
                 if (true === $this->allowRounding($k)) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/ConsoleCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
         $this->detectDbSettings($output);
27 27
 
28 28
         $descriptorSpec = array(
29
-           0 => STDIN,
30
-           1 => STDOUT,
31
-           2 => STDERR
29
+            0 => STDIN,
30
+            1 => STDOUT,
31
+            2 => STDERR
32 32
         );
33 33
 
34 34
         $exec = 'mysql ' . $this->getHelper('database')->getMysqlClientToolConnectionString();
Please login to merge, or discard this patch.