@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function getString(): string |
30 | 30 | { |
31 | 31 | $profilerReport = (string)$this->report->getProfiler()->getReport(); |
32 | - $r = 'Benchmark:' . PHP_EOL; |
|
32 | + $r = 'Benchmark:'.PHP_EOL; |
|
33 | 33 | foreach ($this->report->getRelatives() as $indexName => $result) { |
34 | 34 | [$relative, $average] = $result; |
35 | 35 | $function = $this->report->getFunctionObject($indexName); |
@@ -51,18 +51,18 @@ discard block |
||
51 | 51 | ); |
52 | 52 | if ($this->report->isWithResults()) { |
53 | 53 | $result = $function->getResult(); |
54 | - $r .= $this->theme->dark('return: ' . str_replace('double', 'float', typeOf($result)) . ' "' |
|
55 | - . var_export($function->getResult(), true) . '" ') . PHP_EOL; |
|
54 | + $r .= $this->theme->dark('return: '.str_replace('double', 'float', typeOf($result)).' "' |
|
55 | + . var_export($function->getResult(), true).'" ').PHP_EOL; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | if (!empty($exceptionMessages = $this->report->getExceptionMessages())) { |
59 | - $r .= 'Exceptions:' . PHP_EOL; |
|
59 | + $r .= 'Exceptions:'.PHP_EOL; |
|
60 | 60 | foreach ($exceptionMessages as $name => $exceptionMessage) { |
61 | - $r .= brackets($name) . ': ' . $this->theme->red($exceptionMessage) . PHP_EOL; |
|
61 | + $r .= brackets($name).': '.$this->theme->red($exceptionMessage).PHP_EOL; |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | return |
65 | - $r . PHP_EOL . $profilerReport; |
|
65 | + $r.PHP_EOL.$profilerReport; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -88,6 +88,6 @@ discard block |
||
88 | 88 | private function percent(float $relative): string |
89 | 89 | { |
90 | 90 | return |
91 | - number_format($relative * 100, 1) . '%'; |
|
91 | + number_format($relative * 100, 1).'%'; |
|
92 | 92 | } |
93 | 93 | } |