Completed
Pull Request — develop (#182)
by Tom
04:45
created
src/N98/Magento/Command/Cache/ListCommand.php 1 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/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/VariablesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Command/Developer/Module/Create/SubCommand/CreateAdditionalFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
N98/Magento/Command/Developer/Module/Create/SubCommand/CreateReadmeFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/ListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             // First index is (probably always) vendor
80 80
             $moduleNameData = explode('_', $moduleName);
81 81
 
82
-            if (! is_null($vendor) && strtolower($moduleNameData[0]) !== strtolower($vendor)) {
82
+            if (!is_null($vendor) && strtolower($moduleNameData[0]) !== strtolower($vendor)) {
83 83
                 continue;
84 84
             }
85 85
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Observer/ListCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
         $area = $input->getArgument('area');
63 63
         $eventFilter = $input->getArgument('event');
64 64
 
65
-        if (is_null($area) || ! in_array($area, $this->areas)) {
65
+        if (is_null($area) || !in_array($area, $this->areas)) {
66 66
             foreach ($this->areas as $key => $area) {
67 67
                 $question[] = '<comment>[' . ($key + 1) . ']</comment> ' . $area . PHP_EOL;
68 68
             }
69 69
 
70 70
             $question[] = '<question>Please select an area:</question>';
71 71
 
72
-            $area = $this->getHelper('dialog')->askAndValidate($output, $question, function ($areaIndex) {
73
-                if (! in_array($areaIndex, range(1, count($this->areas)))) {
72
+            $area = $this->getHelper('dialog')->askAndValidate($output, $question, function($areaIndex) {
73
+                if (!in_array($areaIndex, range(1, count($this->areas)))) {
74 74
                     throw new \InvalidArgumentException('Invalid selection.');
75 75
                 }
76 76
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if ($input->getOption('format') === null) {
82 82
             $sectionHeader = 'Observers in [' . $area . '] area';
83 83
 
84
-            if (! is_null($eventFilter)) {
84
+            if (!is_null($eventFilter)) {
85 85
                 $sectionHeader .= ' registered for [' . $eventFilter . '] event';
86 86
             }
87 87
 
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
         foreach ($observerConfig as $eventName => $observers) {
110 110
             $firstObserver = true;
111 111
 
112
-            if (! is_null($eventFilter) && $eventName != $eventFilter) {
112
+            if (!is_null($eventFilter) && $eventName != $eventFilter) {
113 113
                 continue;
114 114
             }
115 115
 
116 116
             foreach ($observers as $observerName => $observerData) {
117 117
                 if ($firstObserver) {
118
-                    $firstObserver = ! $firstObserver;
118
+                    $firstObserver = !$firstObserver;
119 119
                     $table[] = [$eventName, $observerName, $observerData['instance'] . '::' . $observerData['name']];
120 120
                 } else {
121 121
                     $table[] = ['', $observerName, $observerData['instance'] . '::' . $observerData['name']];
Please login to merge, or discard this patch.
src/N98/Magento/Command/Installer/SubCommand/InstallComposerPackages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $process->setTimeout(86400);
29 29
 
30 30
         $process->start();
31
-        $process->wait(function ($type, $buffer) {
31
+        $process->wait(function($type, $buffer) {
32 32
             $this->output->write('composer > ' . $buffer, false);
33 33
         });
34 34
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Installer/SubCommand/InstallSampleData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $process = $processBuilder->getProcess();
51 51
         $process->setTimeout(86400);
52 52
         $process->start();
53
-        $process->wait(function ($type, $buffer) {
53
+        $process->wait(function($type, $buffer) {
54 54
             $this->output->write($buffer, false);
55 55
         });
56 56
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $process = $processBuilder->getProcess();
71 71
         $process->setTimeout(86400);
72 72
         $process->start();
73
-        $process->wait(function ($type, $buffer) {
73
+        $process->wait(function($type, $buffer) {
74 74
             $this->output->write($buffer, false);
75 75
         });
76 76
     }
Please login to merge, or discard this patch.