@@ -40,6 +40,6 @@ |
||
40 | 40 | return |
41 | 41 | new BenchmarkReport($reportable); |
42 | 42 | } |
43 | - throw new \RuntimeException('Attempt to create unimplemented report: ' . typeOf($reportable)); |
|
43 | + throw new \RuntimeException('Attempt to create unimplemented report: '.typeOf($reportable)); |
|
44 | 44 | } |
45 | 45 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | public function __toString(): string |
20 | 20 | { |
21 | 21 | return |
22 | - brackets(typeOf($this) . '::' . __FUNCTION__) . ' Not implemented!'; |
|
22 | + brackets(typeOf($this).'::'.__FUNCTION__).' Not implemented!'; |
|
23 | 23 | } |
24 | 24 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | return |
56 | 56 | sprintf( |
57 | - 'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s' . PHP_EOL, |
|
57 | + 'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s'.PHP_EOL, |
|
58 | 58 | $name, |
59 | 59 | format_time($this->getAverageValue()), |
60 | 60 | format_time($this->getLastValue()), |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public function __toString(): string |
41 | 41 | { |
42 | 42 | $profilerReport = (string)$this->getProfiler()->report(); |
43 | - $r = 'Benchmark:' . PHP_EOL; |
|
43 | + $r = 'Benchmark:'.PHP_EOL; |
|
44 | 44 | foreach ($this->computeRelatives() as $indexName => $result) { |
45 | 45 | $function = $this->getFunctionObject($indexName); |
46 | 46 | $arguments = $function->getArgs(); |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | PHP_EOL |
61 | 61 | ); |
62 | 62 | if ($this->withResults) { |
63 | - $r .= var_export($function->getResult(), true) . PHP_EOL; |
|
63 | + $r .= var_export($function->getResult(), true).PHP_EOL; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | return |
67 | - $r . PHP_EOL . $profilerReport; |
|
67 | + $r.PHP_EOL.$profilerReport; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | foreach ($relatives as $name => $relative) { |
88 | 88 | $relatives[$name] = |
89 | - $this->percent((float)$relative - 1) . ' ' . |
|
89 | + $this->percent((float)$relative - 1).' '. |
|
90 | 90 | brackets(format_time($averages[$name]), BRACKETS_PARENTHESES); |
91 | 91 | } |
92 | 92 | return $relatives; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | private function percent(float $relative): string |
116 | 116 | { |
117 | 117 | return |
118 | - number_format($relative * 100, 1) . '%'; |
|
118 | + number_format($relative * 100, 1).'%'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $this->iterations = $iterations; |
40 | 40 | $this->rewindable = |
41 | 41 | new Rewindable( |
42 | - function (int $iterations, int $i = 1): \Generator { |
|
42 | + function(int $iterations, int $i = 1): \Generator { |
|
43 | 43 | while ($i <= $iterations) { |
44 | 44 | yield $i++; |
45 | 45 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | public function getEnumeratedName(): string |
89 | 89 | { |
90 | 90 | return |
91 | - brackets((string)$this->index, BRACKETS_ANGLE) . ' ' . $this->name; |
|
91 | + brackets((string)$this->index, BRACKETS_ANGLE).' '.$this->name; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |