Completed
Push — master ( 9c3b37...e42026 )
by Alec
03:16
created
src/Tools/Reports/Formatters/BenchmarkFunctionSymfonyFormatter.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
         return
39 39
             $this->theme->dark(
40 40
                 'array' === $type ?
41
-                    $str :
42
-                    sprintf(
41
+                    $str : sprintf(
43 42
                         '%s(%s)',
44 43
                         $type,
45 44
                         $str
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
     {
81 80
         return
82 81
             $rank === 1 ?
83
-                $this->averageFirst($average) :
84
-                $this->average($average);
82
+                $this->averageFirst($average) : $this->average($average);
85 83
     }
86 84
 
87 85
     protected function averageFirst(float $average): string
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/BenchmarkFunctionFormatter.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
     {
38 38
         if ($function instanceof BenchmarkFunction) {
39 39
             return
40
-                $this->formatBenchmarkRelative($function) .
40
+                $this->formatBenchmarkRelative($function).
41 41
                 (empty($exception = $this->formatException($function)) ?
42 42
                     PHP_EOL :
43
-                    /*static::EXCEPTIONS .*/ $exception . PHP_EOL);
43
+                    /*static::EXCEPTIONS .*/ $exception.PHP_EOL);
44 44
         }
45 45
         $this->wrongFormattableType(BenchmarkFunction::class, $function);
46 46
         // @codeCoverageIgnoreStart
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     {
136 136
         return
137 137
             str_pad(
138
-                $prefix . Pretty::percent($relative),
138
+                $prefix.Pretty::percent($relative),
139 139
                 9,
140 140
                 ' ',
141 141
                 STR_PAD_LEFT
@@ -149,8 +149,7 @@  discard block
 block discarded – undo
149 149
         $str = static::getExporter()->export($executionReturn);
150 150
         return
151 151
             'array' === $type ?
152
-                $str :
153
-                sprintf(
152
+                $str : sprintf(
154 153
                     '%s(%s)',
155 154
                     $type,
156 155
                     $str
Please login to merge, or discard this patch.
src/Tools/BenchmarkSymfonyProgressBar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,17 +42,17 @@  discard block
 block discarded – undo
42 42
         $this->progressBar->setFormat(static::DEFAULT_PROGRESSBAR_FORMAT);
43 43
 
44 44
         $progressStart =
45
-            function (): void {
45
+            function(): void {
46 46
                 $this->progressBar->start();
47 47
             };
48 48
 
49 49
         $progressAdvance =
50
-            function (): void {
50
+            function(): void {
51 51
                 $this->progressBar->advance();
52 52
             };
53 53
 
54 54
         $progressFinish =
55
-            function (): void {
55
+            function(): void {
56 56
                 $this->progressBar->finish();
57 57
                 $this->progressBar->clear();
58 58
             };
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
 
109 109
     protected function showComment(string $comment = ''): void
110 110
     {
111
-        $this->output->writeln('<comment>' . $comment . '</>');
111
+        $this->output->writeln('<comment>'.$comment.'</>');
112 112
     }
113 113
 
114 114
     protected function sectionSeparator(?string $char): string
115 115
     {
116
-        return str_repeat($char ?? static::DEFAULT_SEPARATOR_CHAR, $this->terminalWidth) . PHP_EOL. PHP_EOL;
116
+        return str_repeat($char ?? static::DEFAULT_SEPARATOR_CHAR, $this->terminalWidth).PHP_EOL.PHP_EOL;
117 117
     }
118 118
 }
Please login to merge, or discard this patch.