Completed
Pull Request — develop (#797)
by Tom
04:45
created
src/N98/Magento/Application/ConfigurationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
     {
298 298
         if ($this->_userConfig == null) {
299 299
             $this->_userConfig = array();
300
-            $homeDirectory =  OperatingSystem::getHomeDir();
300
+            $homeDirectory = OperatingSystem::getHomeDir();
301 301
             if (OperatingSystem::isWindows()) {
302 302
                 $personalConfigFile = $homeDirectory . DIRECTORY_SEPARATOR . $this->_customConfigFilename;
303 303
             } else {
Please login to merge, or discard this patch.
src/N98/Magento/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -806,7 +806,7 @@
 block discarded – undo
806 806
      */
807 807
     private function requireOnce($path)
808 808
     {
809
-        $requireOnce = function () {
809
+        $requireOnce = function() {
810 810
             require_once  func_get_arg(0);
811 811
         };
812 812
         if (50400 <= PHP_VERSION_ID) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Log/AbstractLogCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
         /** @var $dialog DialogHelper */
82 82
         $dialog  = $this->getHelperSet()->get('dialog');
83
-        $logFile = $dialog->askAndValidate($output, $question, function ($typeInput) use ($files) {
83
+        $logFile = $dialog->askAndValidate($output, $question, function($typeInput) use ($files) {
84 84
             if (!isset($files[$typeInput - 1])) {
85 85
                 throw new InvalidArgumentException('Invalid file');
86 86
             }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Script/Repository/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $selectedFile = $this->getHelper('dialog')->askAndValidate(
64 64
                 $output,
65 65
                 $question,
66
-                function ($typeInput) use ($files) {
66
+                function($typeInput) use ($files) {
67 67
                     if (!isset($files[$typeInput - 1])) {
68 68
                         throw new InvalidArgumentException('Invalid file');
69 69
                     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/AbstractMagentoCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
          *
448 448
          * @return string
449 449
          */
450
-        $validateInstallationFolder = function ($folderName) use ($input) {
450
+        $validateInstallationFolder = function($folderName) use ($input) {
451 451
 
452 452
             $folderName = rtrim(trim($folderName, ' '), '/');
453 453
             // resolve folder-name to current working directory if relative
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
         }
561 561
         $dialog .= "<question>{$question}</question> ";
562 562
 
563
-        $selected = $this->getHelper('dialog')->askAndValidate($output, $dialog, function ($typeInput) use ($entries) {
563
+        $selected = $this->getHelper('dialog')->askAndValidate($output, $dialog, function($typeInput) use ($entries) {
564 564
             if (!in_array($typeInput, range(1, count($entries)))) {
565 565
                 throw new InvalidArgumentException('Invalid type');
566 566
             }
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.