@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | if (!$silent) { |
| 204 | 204 | $editionString = ($this->_magentoEnterprise ? ' (Enterprise Edition) ' : ''); |
| 205 | - $output->writeln('<info>Found Magento '. $editionString . 'in folder "' . $this->_magentoRootFolder . '"</info>'); |
|
| 205 | + $output->writeln('<info>Found Magento ' . $editionString . 'in folder "' . $this->_magentoRootFolder . '"</info>'); |
|
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | if (!empty($this->_magentoRootFolder)) { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | $preferSource = true |
| 267 | 267 | ) { |
| 268 | 268 | $dm = $this->getComposerDownloadManager($input, $output); |
| 269 | - if (! $config instanceof PackageInterface) { |
|
| 269 | + if (!$config instanceof PackageInterface) { |
|
| 270 | 270 | $package = $this->createComposerPackageByConfig($config); |
| 271 | 271 | } else { |
| 272 | 272 | $package = $config; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | escapeshellarg($targetFolder), |
| 311 | 311 | escapeshellarg($package->getSourceReference()) |
| 312 | 312 | ); |
| 313 | - $existingTag = shell_exec($command); |
|
| 313 | + $existingTag = shell_exec($command); |
|
| 314 | 314 | if ($existingTag === $package->getSourceReference()) { |
| 315 | 315 | $command = sprintf('cd %s && hg pull', escapeshellarg($targetFolder)); |
| 316 | 316 | shell_exec($command); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | // Find out which types simply do not exist or are not affected by modifier |
| 56 | 56 | $invalidTypes = array_diff($types, array_keys($this->getCacheTypes(!static::TARGET_IS_ENABLED))); |
| 57 | 57 | |
| 58 | - if (! empty($invalidTypes)) { |
|
| 58 | + if (!empty($invalidTypes)) { |
|
| 59 | 59 | $output->writeln(sprintf(static::INVALID_TYPES_MESSAGE, implode(', ', $invalidTypes))); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */ |
| 71 | - $cacheState = $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface'); |
|
| 71 | + $cacheState = $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface'); |
|
| 72 | 72 | $touchedTypes = []; |
| 73 | 73 | |
| 74 | 74 | try { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $cacheState->persist(); |
| 85 | - } catch(\Exception $e) { |
|
| 85 | + } catch (\Exception $e) { |
|
| 86 | 86 | $output->writeln(sprintf(static::EXCEPTION_MESSAGE, $e->getMessage())); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -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)) { |
@@ -341,7 +341,7 @@ |
||
| 341 | 341 | } else { |
| 342 | 342 | if ($input->getOption('add-time')) { |
| 343 | 343 | $pathParts = pathinfo($fileName); |
| 344 | - $fileName = ($pathParts['dirname'] == '.' ? '' : $pathParts['dirname'] . DIRECTORY_SEPARATOR ) . |
|
| 344 | + $fileName = ($pathParts['dirname'] == '.' ? '' : $pathParts['dirname'] . DIRECTORY_SEPARATOR) . |
|
| 345 | 345 | $namePrefix . $pathParts['filename'] . $nameSuffix . '.' . $pathParts['extension']; |
| 346 | 346 | } |
| 347 | 347 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | protected function optimize($fileName) |
| 48 | 48 | { |
| 49 | - $in = fopen($fileName,'r'); |
|
| 49 | + $in = fopen($fileName, 'r'); |
|
| 50 | 50 | $result = tempnam(sys_get_temp_dir(), 'dump') . '.sql'; |
| 51 | 51 | $out = fopen($result, 'w'); |
| 52 | 52 | |
@@ -138,11 +138,11 @@ discard block |
||
| 138 | 138 | $fileName = $this->optimize($fileName); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - if( $input->getOption('drop') ) { |
|
| 141 | + if ($input->getOption('drop')) { |
|
| 142 | 142 | $dbHelper->dropDatabase($output); |
| 143 | 143 | $dbHelper->createDatabase($output); |
| 144 | 144 | } |
| 145 | - if( $input->getOption('drop-tables') ) { |
|
| 145 | + if ($input->getOption('drop-tables')) { |
|
| 146 | 146 | $dbHelper->dropTables($output); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | InputOption::VALUE_OPTIONAL, |
| 87 | 87 | 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
| 88 | 88 | ) |
| 89 | - ->setHelp($help);; |
|
| 89 | + ->setHelp($help); ; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | ) |
| 137 | 137 | ) |
| 138 | 138 | ); |
| 139 | - $tables = $resolvedTables[0]; |
|
| 139 | + $tables = $resolvedTables[0]; |
|
| 140 | 140 | } else { |
| 141 | 141 | $tables = $this->dbHelper->getTables(); |
| 142 | 142 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | return array(array( |
| 198 | 198 | 'table' => $tableName, |
| 199 | 199 | 'operation' => 'ENGINE ' . $engine, |
| 200 | - 'type' => sprintf('%15s rows', (string)$affectedRows), |
|
| 200 | + 'type' => sprintf('%15s rows', (string) $affectedRows), |
|
| 201 | 201 | 'status' => sprintf('%.3f secs', microtime(true) - $start), |
| 202 | 202 | ) |
| 203 | 203 | ); |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $this->_allVariables['Handler_read_first'] + |
| 99 | 99 | $this->_allVariables['Handler_read_next'] + $this->_allVariables['Handler_read_key'] + |
| 100 | 100 | $this->_allVariables['Handler_read_prev'])); |
| 101 | - $rows[] = array( |
|
| 101 | + $rows[] = array( |
|
| 102 | 102 | 'Full table scans', |
| 103 | 103 | sprintf('%.2f', $tableScanRate * 100) . '%', |
| 104 | 104 | $this->formatDesc('HINT: "Handler_read_rnd_next" is reset to zero when reached the value of 2^32 (4G).') |
@@ -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 | } |