Completed
Push — develop ( a787a3...20155f )
by Tom
04:25
created
src/N98/Magento/Command/Developer/Module/Observer/ListCommand.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
         }
90 90
 
91 91
         $observerConfig = $this->getObjectManager()
92
-                          ->get('\Magento\Framework\Event\Config\Reader')
93
-                          ->read($area);
92
+                            ->get('\Magento\Framework\Event\Config\Reader')
93
+                            ->read($area);
94 94
 
95 95
         if (true === $input->getOption('sort')) {
96 96
             /**
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 
126 126
         // @todo Output is a bit ugly!?
127 127
         $this->getHelper('table')
128
-             ->setHeaders(['Event', 'Observer name', 'Fires'])
129
-             ->setRows($table)
130
-             ->renderByFormat($output, $table, $input->getOption('format'));
128
+                ->setHeaders(['Event', 'Observer name', 'Fires'])
129
+                ->setRows($table)
130
+                ->renderByFormat($output, $table, $input->getOption('format'));
131 131
     }
132 132
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  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
             }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $question[] = '<question>Please select an area:</question>';
71 71
 
72 72
             $area = $this->getHelper('dialog')->askAndValidate($output, $question, function ($areaIndex) {
73
-                if (! in_array($areaIndex, range(1, count($this->areas)))) {
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/PreCheckPhp.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
     {
45 45
         if (extension_loaded('xdebug') && xdebug_is_enabled() && ini_get('xdebug.max_nesting_level') < 200) {
46 46
             $errorMessage = 'Please change PHP ini setting "xdebug.max_nesting_level". '
47
-                          . 'Please change it to a value >= 200. '
48
-                          . 'Your current value is ' . ini_get('xdebug.max_nesting_level');
47
+                            . 'Please change it to a value >= 200. '
48
+                            . 'Your current value is ' . ini_get('xdebug.max_nesting_level');
49 49
             throw new \RuntimeException($errorMessage);
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Installer/SubCommand/SelectMagentoVersion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             } elseif ($this->input->getOption('magentoVersionByName')) {
43 43
                 foreach ($this->commandConfig['magento-packages'] as $key => $package) {
44 44
                     if ($package['name'] == $this->input->getOption('magentoVersionByName')) {
45
-                        $type = $key+1;
45
+                        $type = $key + 1;
46 46
                         break;
47 47
                     }
48 48
                 }
Please login to merge, or discard this patch.
src/N98/Magento/Command/SelfUpdateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     protected function execute(InputInterface $input, OutputInterface $output)
47 47
     {
48 48
         $localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
49
-        $tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar').'-temp.phar';
49
+        $tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar') . '-temp.phar';
50 50
 
51 51
         // check for permissions in local filesystem before start connection process
52 52
         if (!is_writable($tempDirectory = dirname($tempFilename))) {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 if (!$e instanceof \UnexpectedValueException && !$e instanceof \PharException) {
129 129
                     throw $e;
130 130
                 }
131
-                $output->writeln('<error>The download is corrupted ('.$e->getMessage().').</error>');
131
+                $output->writeln('<error>The download is corrupted (' . $e->getMessage() . ').</error>');
132 132
                 $output->writeln('<error>Please re-run the self-update command to try again.</error>');
133 133
             }
134 134
         } else {
Please login to merge, or discard this patch.
src/N98/Magento/Command/SubCommand/SubCommandFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         }
75 75
 
76 76
         $subCommand = new $className();
77
-        if (! $subCommand instanceof SubCommandInterface) {
77
+        if (!$subCommand instanceof SubCommandInterface) {
78 78
             throw new \InvalidArgumentException('Subcommand must implement SubCommandInterface.');
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Cron/HistoryCommand.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
         }
48 48
 
49 49
         $timezone = $input->getOption('timezone')
50
-            ? $input->getOption('timezone') :
51
-            $this->_scopeConfig->getValue('general/locale/timezone');
50
+            ? $input->getOption('timezone') : $this->_scopeConfig->getValue('general/locale/timezone');
52 51
 
53 52
         if (!$input->getOption('format')) {
54 53
             $output->writeln('<info>Times shown in <comment>' . $timezone . '</comment></info>');
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/InfoCommand.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -151,32 +151,32 @@
 block discarded – undo
151 151
     protected function addProductCount()
152 152
     {
153 153
         $this->infos['Product Count'] = $this->productFactory
154
-                                             ->create()
155
-                                             ->getCollection()
156
-                                             ->getSize();
154
+                                                ->create()
155
+                                                ->getCollection()
156
+                                                ->getSize();
157 157
     }
158 158
 
159 159
     protected function addCustomerCount()
160 160
     {
161 161
         $this->infos['Customer Count'] = $this->customerFactory->create()
162
-                                              ->getCollection()
163
-                                              ->getSize();
162
+                                                ->getCollection()
163
+                                                ->getSize();
164 164
     }
165 165
 
166 166
     protected function addCategoryCount()
167 167
     {
168 168
         $this->infos['Category Count'] = $this->categoryFactory
169
-                                              ->create()
170
-                                              ->getCollection()
171
-                                              ->getSize();
169
+                                                ->create()
170
+                                                ->getCollection()
171
+                                                ->getSize();
172 172
     }
173 173
 
174 174
     protected function addAttributeCount()
175 175
     {
176 176
         $this->infos['Attribute Count'] = $this->attributeFactory
177
-                                               ->create()
178
-                                               ->getCollection()
179
-                                               ->getSize();
177
+                                                ->create()
178
+                                                ->getCollection()
179
+                                                ->getSize();
180 180
     }
181 181
 
182 182
     protected function addCacheInfos()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 
104 104
     public function hasInfo()
105 105
     {
106
-        return ! empty($this->infos);
106
+        return !empty($this->infos);
107 107
     }
108 108
 
109 109
     public function getInfo($key = null)
Please login to merge, or discard this patch.
src/N98/Util/Console/Helper/InjectionHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $argumentsToInject[] = $objectManager->get($parameter[1]);
33 33
         }
34 34
 
35
-        call_user_func_array([ $object, $methodName ], $argumentsToInject);
35
+        call_user_func_array([$object, $methodName], $argumentsToInject);
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
tests/N98/Magento/Command/Cache/ListCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $disabledCacheTypes = 0;
43 43
 
44 44
         foreach ($cacheTypes as $cacheType) {
45
-            if (! $cacheType->getStatus()) {
45
+            if (!$cacheType->getStatus()) {
46 46
                 $disabledCacheTypes++;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.