Completed
Branch master (383d0c)
by Tom
04:14
created
src/N98/Magento/Command/System/Url/ListCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     /**
64 64
      * @param \Magento\Store\Model\StoreManager $storeManager
65 65
      * @param \Magento\Sitemap\Model\ResourceModel\Catalog\Category $sitemapCategoryCollection
66
-     * @param \Magento\Sitemap\Model\ResourceModel\Catalog\Product $sitmapProductCollection
66
+     * @param \Magento\Sitemap\Model\ResourceModel\Catalog\Product $sitemapProductCollection
67 67
      * @param \Magento\Sitemap\Model\ResourceModel\Cms\Page $sitemapPageCollection
68 68
      */
69 69
     public function inject(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $this->storeManager = $storeManager;
77 77
         $this->sitemapCategoryCollection = $sitemapCategoryCollection;
78
-        $this->sitemapProductCollection= $sitemapProductCollection;
78
+        $this->sitemapProductCollection = $sitemapProductCollection;
79 79
         $this->sitemapPageCollection = $sitemapPageCollection;
80 80
     }
81 81
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
                 try {
101 101
                     $currentStore = $this->storeManager->getStore($storeId);
102
-                } catch(\Exception $e) {
102
+                } catch (\Exception $e) {
103 103
                     throw new \RuntimeException("Store with id {$storeId} doesn´t exist");
104 104
                 }
105 105
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
                     $parts = parse_url($url);
151 151
                     foreach ($parts as $key => $value) {
152
-                        $line = str_replace('{'.$key.'}', $value, $line);
152
+                        $line = str_replace('{' . $key . '}', $value, $line);
153 153
                     }
154 154
 
155 155
                     // ... and output
Please login to merge, or discard this patch.
src/N98/Util/Console/Helper/MagentoHelper.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -391,6 +391,9 @@
 block discarded – undo
391 391
         return $application;
392 392
     }
393 393
 
394
+    /**
395
+     * @param string $configFileName
396
+     */
394 397
     private function addBaseConfig($root, $configFileName)
395 398
     {
396 399
         $configFile = $root . '/' . $configFileName;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace N98\Util\Console\Helper;
4 4
 
5 5
 use N98\Magento\Application;
6
-use N98\Util\BinaryString;
7 6
 use RuntimeException;
8 7
 use Symfony\Component\Console\Helper\Helper as AbstractHelper;
9 8
 use Symfony\Component\Console\Input\ArgvInput;
Please login to merge, or discard this patch.
src/N98/Util/Console/Helper/ParameterHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
      * @param OutputInterface                                $output
203 203
      * @param string                                         $name
204 204
      * @param string                                         $value
205
-     * @param Constraints\Collection|Constraint|Constraint[] $constraints The constraint(s) to validate against.
205
+     * @param Constraints\Collection $constraints The constraint(s) to validate against.
206 206
      *
207 207
      * @return mixed
208 208
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Symfony\Component\Console\Helper\Helper as AbstractHelper;
10 10
 use Symfony\Component\Console\Output\OutputInterface;
11 11
 use Symfony\Component\Console\Input\InputInterface;
12
-use Symfony\Component\Console\Output\Output;
13 12
 use Symfony\Component\Translation\Translator;
14 13
 use Symfony\Component\Validator\Constraint;
15 14
 use Symfony\Component\Validator\Validator;
Please login to merge, or discard this patch.
src/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
          */
17 17
         public static function getLoader()
18 18
         {
19
-            if ((!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__.'/../vendor/autoload.php'))
20
-                && (!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__.'/../../../autoload.php'))) {
21
-                throw new \ErrorException('You must set up the project dependencies, run the following commands:'.PHP_EOL.
22
-                    'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
23
-                    'php composer.phar install'.PHP_EOL);
19
+            if ((!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__ . '/../vendor/autoload.php'))
20
+                && (!$loader = \N98_Magerun_Bootstrap::includeIfExists(__DIR__ . '/../../../autoload.php'))) {
21
+                throw new \ErrorException('You must set up the project dependencies, run the following commands:' . PHP_EOL .
22
+                    'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
23
+                    'php composer.phar install' . PHP_EOL);
24 24
             }
25 25
 
26 26
             return $loader;
Please login to merge, or discard this patch.
src/N98/Magento/Command/GiftCard/CreateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 'status'        => 1,
50 50
                 'is_redeemable' => 1,
51 51
                 'website_id'    => $input->getOption('website')
52
-                    ? : $this->getObjectManager()->get('Magento\Store\Model\StoreManager')->getWebsite(true)->getId(),
52
+                    ?: $this->getObjectManager()->get('Magento\Store\Model\StoreManager')->getWebsite(true)->getId(),
53 53
                 'balance'       => $input->getArgument('amount'),
54 54
                 'date_expires'  => $input->getOption('expires')
55 55
             )
Please login to merge, or discard this patch.
src/N98/Magento/Command/Generation/FlushCommand.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,18 +13,18 @@
 block discarded – undo
13 13
 {
14 14
     protected function configure()
15 15
     {
16
-      $this
17
-          ->setName('generation:flush')
18
-          ->setDescription('Flushs generated code like factories and proxies')
19
-          ->addArgument('vendorName', InputArgument::OPTIONAL, 'Vendor to remove like "Magento"')
20
-      ;
16
+        $this
17
+            ->setName('generation:flush')
18
+            ->setDescription('Flushs generated code like factories and proxies')
19
+            ->addArgument('vendorName', InputArgument::OPTIONAL, 'Vendor to remove like "Magento"')
20
+        ;
21 21
     }
22 22
 
23
-   /**
24
-    * @param \Symfony\Component\Console\Input\InputInterface $input
25
-    * @param \Symfony\Component\Console\Output\OutputInterface $output
26
-    * @return int|void
27
-    */
23
+    /**
24
+     * @param \Symfony\Component\Console\Input\InputInterface $input
25
+     * @param \Symfony\Component\Console\Output\OutputInterface $output
26
+     * @return int|void
27
+     */
28 28
     protected function execute(InputInterface $input, OutputInterface $output)
29 29
     {
30 30
         $this->detectMagento($output);
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/System/Setup/CompareVersionsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     protected function execute(InputInterface $input, OutputInterface $output)
60 60
     {
61 61
         $time = microtime(true);
62
-        $ignoreDataUpdate   = $input->getOption('ignore-data');
62
+        $ignoreDataUpdate = $input->getOption('ignore-data');
63 63
 
64 64
         $headers = array('Setup', 'Module', 'DB', 'Data', 'Status');
65 65
         if ($ignoreDataUpdate) {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 return $a['Status'] !== 'OK';
107 107
             });
108 108
 
109
-            array_walk($table, function (&$row) {
109
+            array_walk($table, function(&$row) {
110 110
                 $status             = $row['Status'];
111 111
                 $availableStatus    = array('OK' => 'info', 'Error' => 'error');
112 112
                 $statusString       = sprintf(
Please login to merge, or discard this patch.