Completed
Pull Request — develop (#813)
by Robbie
08:16 queued 03:39
created
src/N98/Magento/Command/Cache/ReportCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/Dir/FlushCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/CleanCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/AbstractCacheCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/DisableCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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>');
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/EnableCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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>');
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/ConsoleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/DropCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/StatusCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.