@@ -73,7 +73,7 @@ |
||
| 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 | } |
@@ -187,7 +187,7 @@ |
||
| 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)) { |
@@ -72,7 +72,7 @@ |
||
| 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 | } |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -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 | } |
@@ -79,7 +79,7 @@ |
||
| 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 | |
@@ -42,7 +42,7 @@ |
||
| 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 | } |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | if (isset($parts[1])) { |
| 172 | 172 | $value = $parts[1]; |
| 173 | 173 | } |
| 174 | - $this->scriptVars['${' . $variable. '}'] = $value; |
|
| 174 | + $this->scriptVars['${' . $variable . '}'] = $value; |
|
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 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 |
||
| 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 { |