@@ -11,7 +11,7 @@ |
||
11 | 11 | protected function configure() |
12 | 12 | { |
13 | 13 | $this->setName('media:cache:image:clear') |
14 | - ->setDescription('Clears image cache'); |
|
14 | + ->setDescription('Clears image cache'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -11,7 +11,7 @@ |
||
11 | 11 | protected function configure() |
12 | 12 | { |
13 | 13 | $this->setName('media:cache:jscss:clear') |
14 | - ->setDescription('Clears JS/CSS cache'); |
|
14 | + ->setDescription('Clears JS/CSS cache'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -262,7 +262,7 @@ |
||
262 | 262 | */ |
263 | 263 | public function validateInt($answer) |
264 | 264 | { |
265 | - if ((int)$answer === 0) { |
|
265 | + if ((int) $answer === 0) { |
|
266 | 266 | throw new RuntimeException( |
267 | 267 | 'The range should be numeric and above 0 e.g. 1' |
268 | 268 | ); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | private function parseCronExpression($expr) |
87 | 87 | { |
88 | - if ((string)$expr === 'always') { |
|
88 | + if ((string) $expr === 'always') { |
|
89 | 89 | return array_fill(0, 5, '*'); |
90 | 90 | } |
91 | 91 |
@@ -292,7 +292,7 @@ |
||
292 | 292 | $dbHost = $this->config->getString('db_host'); |
293 | 293 | |
294 | 294 | if ($this->config->getInt('db_port') !== 3306) { |
295 | - $dbHost .= ':' . (string)$this->config->getInt('db_port'); |
|
295 | + $dbHost .= ':' . (string) $this->config->getInt('db_port'); |
|
296 | 296 | |
297 | 297 | return $dbHost; |
298 | 298 | } |
@@ -136,7 +136,7 @@ |
||
136 | 136 | /** |
137 | 137 | * {@inheritdoc} |
138 | 138 | */ |
139 | - public function initialize(InputInterface $input,OutputInterface $output) |
|
139 | + public function initialize(InputInterface $input, OutputInterface $output) |
|
140 | 140 | { |
141 | 141 | // for backwards compatibility before v3.0 |
142 | 142 | if (property_exists($this, 'commandName')) { |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | fwrite(STDERR, implode(PHP_EOL, [ |
11 | 11 | 'The suhosin.executor.include.whitelist setting is incorrect.', |
12 | 12 | 'Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):', |
13 | - ' suhosin.executor.include.whitelist = phar '.$suhosin, |
|
13 | + ' suhosin.executor.include.whitelist = phar ' . $suhosin, |
|
14 | 14 | '' |
15 | 15 | ])); |
16 | 16 | exit(1); |
@@ -21,4 +21,4 @@ discard block |
||
21 | 21 | $application->setPharMode(true); |
22 | 22 | $application->run(); |
23 | 23 | |
24 | -__HALT_COMPILER(); |
|
24 | +__HALT_COMPILER(); |
@@ -131,7 +131,7 @@ |
||
131 | 131 | $diff = $now->diff($ago); |
132 | 132 | |
133 | 133 | $diff->w = floor($diff->d / 7); |
134 | - $diff->d -= (int)$diff->w * 7; |
|
134 | + $diff->d -= (int) $diff->w * 7; |
|
135 | 135 | |
136 | 136 | $string = ['y' => 'year', 'm' => 'month', 'h' => 'hour', 'i' => 'minute', 's' => 'second']; |
137 | 137 | foreach ($string as $k => &$v) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function getProjectConfigFile() |
75 | 75 | { |
76 | - if (!strlen((string)$this->magentoRootFolder)) { |
|
76 | + if (!strlen((string) $this->magentoRootFolder)) { |
|
77 | 77 | return; |
78 | 78 | } |
79 | 79 | $projectConfigFilePath = $this->magentoRootFolder . '/app/etc/' . $this->customConfigFilename; |