@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $process = ProcessBuilder::create($commandArgs)->getProcess(); |
30 | 30 | $process->setInput($this->input); |
31 | 31 | $process->setTimeout(3600); |
32 | - $process->run(function ($type, $buffer) use ($silent) { |
|
32 | + $process->run(function($type, $buffer) use ($silent) { |
|
33 | 33 | if ($silent) { |
34 | 34 | return; |
35 | 35 | } |
@@ -32,7 +32,7 @@ |
||
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 | /** |
@@ -16,11 +16,11 @@ |
||
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; |
@@ -42,7 +42,7 @@ |
||
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 | } |
@@ -219,11 +219,11 @@ |
||
219 | 219 | public static function convertedBytesProvider() |
220 | 220 | { |
221 | 221 | return array( |
222 | - array(20000000, 2, '19.07M'), |
|
223 | - array(20000000, 3, '19.073M'), |
|
224 | - array(2000000000, 2, '1.86G'), |
|
225 | - array(2, 2, '2.00B'), |
|
226 | - array(2048, 2, '2.00K'), |
|
222 | + array(20000000, 2, '19.07M'), |
|
223 | + array(20000000, 3, '19.073M'), |
|
224 | + array(2000000000, 2, '1.86G'), |
|
225 | + array(2, 2, '2.00B'), |
|
226 | + array(2048, 2, '2.00K'), |
|
227 | 227 | ); |
228 | 228 | } |
229 | 229 | } |
@@ -28,7 +28,7 @@ |
||
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 | } |
@@ -28,7 +28,7 @@ |
||
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 | } |
@@ -28,7 +28,7 @@ |
||
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 | } |