Completed
Push — master ( edcce7...6aac40 )
by Kacper
04:23
created
Utils/ConsoleHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     public function set($style)
69 69
     {
70
-        $escape = "\e[".implode(';', array_map(function ($style, $name) {
70
+        $escape = "\e[".implode(';', array_map(function($style, $name) {
71 71
                 return $this->_style($style, $name);
72 72
             }, array_keys($style), $style)).'m';
73 73
 
Please login to merge, or discard this patch.
Formatter/CliFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     protected function formatLineStart($line)
63 63
     {
64
-        return str_pad($line, 5, ' ', STR_PAD_LEFT) . ' | '.Console::set(Console::current());
64
+        return str_pad($line, 5, ' ', STR_PAD_LEFT).' | '.Console::set(Console::current());
65 65
     }
66 66
 
67 67
     protected function formatLineEnd($line)
Please login to merge, or discard this patch.
bin/Commands/Benchmark/AnalyzeCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $this->separator($file, $table);
50 50
 
51 51
             foreach ($data['times'] as $set => $times) {
52
-                $result = array_map(function ($time) use ($data, $input) {
52
+                $result = array_map(function($time) use ($data, $input) {
53 53
                     return $input->getOption('relative') ? $data['size'] / $time : $time * 1000;
54 54
                 }, $times);
55 55
 
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
             }
64 64
 
65 65
             foreach ($data['memory'] as $set => $memory) {
66
-                $result = array_map(function ($memory) use ($data, $input) {
67
-                    $bytes = $input->getOption('relative') ? $memory/$data['size'] : $memory;
66
+                $result = array_map(function($memory) use ($data, $input) {
67
+                    $bytes = $input->getOption('relative') ? $memory / $data['size'] : $memory;
68 68
                     return $this->formatBytes($bytes, (bool)$input->getOption('relative'));
69 69
                 }, $memory);
70 70
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             }
73 73
         }
74 74
 
75
-        if(!$input->hasParameterOption('--summary')) {
75
+        if (!$input->hasParameterOption('--summary')) {
76 76
             $table->render();
77 77
         }
78 78
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         }, ARRAY_FILTER_USE_KEY);
82 82
 
83 83
         $max = max(array_map('strlen', array_keys($summary)));
84
-        foreach($summary as $name => $set) {
84
+        foreach ($summary as $name => $set) {
85 85
             $output->writeln(sprintf(
86 86
                 "<comment>%s</comment> %s %s",
87 87
                 str_pad($name, $max, ' ', STR_PAD_LEFT),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $mean = array_sum($result) / count($result);
132 132
 
133
-        return sqrt(array_sum(array_map(function ($result) use ($mean) {
133
+        return sqrt(array_sum(array_map(function($result) use ($mean) {
134 134
             return pow($result - $mean, 2);
135 135
         }, $result)) / count($result));
136 136
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         $bytes /= (1 << (10 * $pow));
146 146
 
147
-        return $this->format($bytes);//.$units[$pow].($relative ? '/byte' : '');
147
+        return $this->format($bytes); //.$units[$pow].($relative ? '/byte' : '');
148 148
     }
149 149
 
150 150
     protected function configure()
Please login to merge, or discard this patch.
bin/Commands/Benchmark/RunCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
             $times  = [];
71 71
             $memory = [];
72 72
 
73
-            for($i = $input->getOption('times'), $progress = new ProgressBar($output, $i); $i > 0; $i--) {
73
+            for ($i = $input->getOption('times'), $progress = new ProgressBar($output, $i); $i > 0; $i--) {
74 74
                 $progress->display();
75 75
                 $result = $this->benchmark($source, $language, $formatter);
76
-                $times  = array_merge_recursive($times,  $result['times']);
76
+                $times  = array_merge_recursive($times, $result['times']);
77 77
                 $memory = array_merge_recursive($memory, $result['memory']);
78 78
 
79
-                if($input->getOption('geshi') && class_exists('GeSHi')) {
79
+                if ($input->getOption('geshi') && class_exists('GeSHi')) {
80 80
                     $times['geshi'][] = $this->geshi($source, $file->getExtension());
81 81
                 }
82 82
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $result = json_encode($results, $input->getOption('pretty') ? JSON_PRETTY_PRINT : 0);
180 180
 
181
-        if($input->hasArgument('output')) {
181
+        if ($input->hasArgument('output')) {
182 182
             file_put_contents($input->getArgument('output'), $result);
183 183
         } else {
184 184
             $output->write($result);
Please login to merge, or discard this patch.