Completed
Pull Request — develop (#797)
by Tom
04:45
created
src/N98/Magento/Command/System/Check/Settings/CheckAbstract.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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
 namespace N98\Magento\Command\System\Check\Settings;
8 8
 
9 9
 use Mage;
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Setup/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     protected function printStackTrace(OutputInterface $output, array $trace)
83 83
     {
84 84
         $rootFolder = $this->getApplication()->getMagentoRootFolder();
85
-        $trace = array_filter($trace, function (&$row) use ($rootFolder) {
85
+        $trace = array_filter($trace, function(&$row) use ($rootFolder) {
86 86
             if (!strstr($row['file'], $rootFolder)) {
87 87
                 return false;
88 88
             }
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Setup/IncrementalCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
             $config_ver = $this->_getConfiguredVersionFromResourceObject($setupResource);
261 261
 
262 262
             if (
263
-                (string)$config_ver == (string)$db_ver && //structure
264
-                (string)$config_ver == (string)$db_data_ver //data
263
+                (string) $config_ver == (string) $db_ver && //structure
264
+                (string) $config_ver == (string) $db_data_ver //data
265 265
             ) {
266 266
                 continue;
267 267
             }
@@ -321,8 +321,8 @@  discard block
 block discarded – undo
321 321
 
322 322
             $args = array(
323 323
                 '',
324
-                (string)$dbVersion,
325
-                (string)$configVersion,
324
+                (string) $dbVersion,
325
+                (string) $configVersion,
326 326
             );
327 327
 
328 328
             $args[0] = $dbVersion
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Setup/CompareVersionsCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             }
96 96
 
97 97
             if ($input->getOption('errors-only')) {
98
-                $table = array_filter($table, function ($row) {
98
+                $table = array_filter($table, function($row) {
99 99
                     return ($row['Status'] === 'Error');
100 100
                 });
101 101
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             //highlight the status
105 105
             //and show error'd rows at bottom
106 106
             if (!$input->getOption('format')) {
107
-                usort($table, function ($a, $b) {
107
+                usort($table, function($a, $b) {
108 108
                     if ($a['Status'] !== 'OK' && $b['Status'] === 'OK') {
109 109
                         return 1;
110 110
                     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                     return strcmp($a['Setup'], $b['Setup']);
115 115
                 });
116 116
 
117
-                array_walk($table, function (&$row) {
117
+                array_walk($table, function(&$row) {
118 118
                     $status             = $row['Status'];
119 119
                     $availableStatus    = array('OK' => 'info', 'Error' => 'error');
120 120
                     $statusString       = sprintf(
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/InfoCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
             $vendors = iterator_to_array($finder);
168 168
             $vendors = array_map(
169
-                function ($value) use ($codePoolDir) {
169
+                function($value) use ($codePoolDir) {
170 170
                     return str_replace($codePoolDir, '', $value);
171 171
                 },
172 172
                 $vendors
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Cron/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         $jobCode = $dialogHelper->askAndValidate(
128 128
             $output,
129 129
             $question,
130
-            function ($typeInput) use ($keyMap, $jobs) {
130
+            function($typeInput) use ($keyMap, $jobs) {
131 131
                 $key = $keyMap[$typeInput];
132 132
                 if (!isset($jobs[$key])) {
133 133
                     throw new InvalidArgumentException('Invalid job');
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/Compressor/Compressor.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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
 namespace N98\Magento\Command\Database\Compressor;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/Maintain/CheckTablesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
             array(
210 210
                 'table'     => $tableName,
211 211
                 'operation' => 'ENGINE ' . $engine,
212
-                'type'      => sprintf('%15s rows', (string)$affectedRows),
212
+                'type'      => sprintf('%15s rows', (string) $affectedRows),
213 213
                 'status'    => sprintf('%.3f secs', microtime(true) - $start),
214 214
             )
215 215
         );
Please login to merge, or discard this patch.
src/N98/Magento/Command/ScriptCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
                     $this->scriptVars[$matches[1]] = $dialog->askAndValidate(
240 240
                         $output,
241 241
                         '<info>Please enter a value for <comment>' . $matches[1] . '</comment>:</info> ',
242
-                        function ($value) {
242
+                        function($value) {
243 243
                             if ($value == '') {
244 244
                                 throw new RuntimeException('Please enter a value');
245 245
                             }
Please login to merge, or discard this patch.