@@ -34,14 +34,14 @@ |
||
| 34 | 34 | 'format', |
| 35 | 35 | null, |
| 36 | 36 | InputOption::VALUE_OPTIONAL, |
| 37 | - 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
| 37 | + 'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']' |
|
| 38 | 38 | ) |
| 39 | 39 | ; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | protected function isTagFiltered($metaData, $input) |
| 43 | 43 | { |
| 44 | - return (bool) count(array_intersect($metaData['tags'], explode(',', $input->getOption('filter-tag')))); |
|
| 44 | + return (bool)count(array_intersect($metaData['tags'], explode(',', $input->getOption('filter-tag')))); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | $workingDirectory = getcwd(); |
| 71 | 71 | $magentoRootFolder = $this->getApplication()->getMagentoRootFolder(); |
| 72 | - $cacheDir = $magentoRootFolder . '/var/cache'; |
|
| 72 | + $cacheDir = $magentoRootFolder.'/var/cache'; |
|
| 73 | 73 | |
| 74 | 74 | $output->writeln(sprintf('<info>Flushing cache directory <comment>%s</comment></info>', $cacheDir)); |
| 75 | 75 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | foreach ($dir as $file => $info) { |
| 95 | 95 | if ($info->isDir()) { |
| 96 | 96 | $this->verbose( |
| 97 | - '<debug>Filesystem::recursiveRemoveDirectory() <comment>' . $file . '</comment></debug>' |
|
| 97 | + '<debug>Filesystem::recursiveRemoveDirectory() <comment>'.$file.'</comment></debug>' |
|
| 98 | 98 | ); |
| 99 | 99 | if (!isset($fs)) { |
| 100 | 100 | $fs = new Filesystem(); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $errors[] = $file; |
| 104 | 104 | }; |
| 105 | 105 | } else { |
| 106 | - $this->verbose('<debug>unlink() <comment>' . $file . '</comment></debug>'); |
|
| 106 | + $this->verbose('<debug>unlink() <comment>'.$file.'</comment></debug>'); |
|
| 107 | 107 | if (!unlink($file)) { |
| 108 | 108 | $errors[] = $file; |
| 109 | 109 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | if (count($typesToClean) == 0 || in_array($type, $typesToClean)) { |
| 55 | 55 | \Mage::app()->getCacheInstance()->cleanType($type); |
| 56 | 56 | \Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => $type)); |
| 57 | - $output->writeln('<info>Cache <comment>' . $type . '</comment> cleaned</info>'); |
|
| 57 | + $output->writeln('<info>Cache <comment>'.$type.'</comment> cleaned</info>'); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $cacheTypes = $this->_getCacheModel()->getTypes(); |
| 54 | 54 | foreach ($codes as $cacheCode) { |
| 55 | 55 | if (!array_key_exists($cacheCode, $cacheTypes)) { |
| 56 | - throw new InvalidArgumentException('Invalid cache type: ' . $cacheCode); |
|
| 56 | + throw new InvalidArgumentException('Invalid cache type: '.$cacheCode); |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | if (count($codeArgument) > 0) { |
| 43 | 43 | foreach ($codeArgument as $code) { |
| 44 | - $output->writeln('<info>Cache <comment>' . $code . '</comment> disabled</info>'); |
|
| 44 | + $output->writeln('<info>Cache <comment>'.$code.'</comment> disabled</info>'); |
|
| 45 | 45 | } |
| 46 | 46 | } else { |
| 47 | 47 | $output->writeln('<info>Caches disabled</info>'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | if (count($codeArgument) > 0) { |
| 35 | 35 | foreach ($codeArgument as $code) { |
| 36 | - $output->writeln('<info>Cache <comment>' . $code . '</comment> enabled</info>'); |
|
| 36 | + $output->writeln('<info>Cache <comment>'.$code.'</comment> enabled</info>'); |
|
| 37 | 37 | } |
| 38 | 38 | } else { |
| 39 | 39 | $output->writeln('<info>Caches enabled</info>'); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | /* @var $database DatabaseHelper */ |
| 45 | 45 | $database = $this->getHelper('database'); |
| 46 | - $exec = $mysqlClient . ' ' . $database->getMysqlClientToolConnectionString(); |
|
| 46 | + $exec = $mysqlClient.' '.$database->getMysqlClientToolConnectionString(); |
|
| 47 | 47 | |
| 48 | 48 | $pipes = array(); |
| 49 | 49 | $process = proc_open($exec, $descriptorSpec, $pipes); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } else { |
| 44 | 44 | $shouldDrop = $dialog->askConfirmation( |
| 45 | 45 | $output, |
| 46 | - '<question>Really drop database ' . $this->dbSettings['dbname'] . |
|
| 46 | + '<question>Really drop database '.$this->dbSettings['dbname']. |
|
| 47 | 47 | ' ?</question> <comment>[n]</comment>: ', |
| 48 | 48 | false |
| 49 | 49 | ); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | ); |
| 110 | 110 | $rows[] = array( |
| 111 | 111 | 'Full table scans', |
| 112 | - sprintf('%.2f', $tableScanRate * 100) . '%', |
|
| 112 | + sprintf('%.2f', $tableScanRate * 100).'%', |
|
| 113 | 113 | $this->formatDesc('HINT: "Handler_read_rnd_next" is reset to zero when reached the value of 2^32 (4G).') |
| 114 | 114 | ); |
| 115 | 115 | } |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $rows[] = array( |
| 122 | 122 | 'InnoDB Buffer Pool hit', |
| 123 | - sprintf('%.2f', $bufferHitRate * 100) . '%', |
|
| 123 | + sprintf('%.2f', $bufferHitRate * 100).'%', |
|
| 124 | 124 | $this->formatDesc( |
| 125 | - 'An InnoDB Buffer Pool hit ratio below 99.9% is a weak indicator that ' . |
|
| 125 | + 'An InnoDB Buffer Pool hit ratio below 99.9% is a weak indicator that '. |
|
| 126 | 126 | 'your InnoDB Buffer Pool could be increased.' |
| 127 | 127 | ) |
| 128 | 128 | ); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | if (is_numeric($datetime)) { |
| 161 | 161 | $datetime = time() - $datetime; |
| 162 | - $datetime = '@' . $datetime; |
|
| 162 | + $datetime = '@'.$datetime; |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $now = new \DateTime; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | ); |
| 181 | 181 | foreach ($string as $k => &$v) { |
| 182 | 182 | if ($diff->$k) { |
| 183 | - $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : ''); |
|
| 183 | + $v = $diff->$k.' '.$v.($diff->$k > 1 ? 's' : ''); |
|
| 184 | 184 | } else { |
| 185 | 185 | unset($string[$k]); |
| 186 | 186 | } |
@@ -190,6 +190,6 @@ discard block |
||
| 190 | 190 | $string = array_slice($string, 0, 1); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - return $string ? implode(', ', $string) . ' ago' : 'just now'; |
|
| 193 | + return $string ? implode(', ', $string).' ago' : 'just now'; |
|
| 194 | 194 | } |
| 195 | 195 | } |