@@ -85,6 +85,6 @@ |
||
| 85 | 85 | public function getEnumeratedName(): string |
| 86 | 86 | { |
| 87 | 87 | return |
| 88 | - brackets((string)$this->index, BRACKETS_ANGLE) . ' ' . $this->name; |
|
| 88 | + brackets((string)$this->index, BRACKETS_ANGLE).' '.$this->name; |
|
| 89 | 89 | } |
| 90 | 90 | } |
@@ -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 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | return |
| 35 | 35 | sprintf( |
| 36 | - 'Counter:[%s] Value: %s, Step: %s' . PHP_EOL, |
|
| 36 | + 'Counter:[%s] Value: %s, Step: %s'.PHP_EOL, |
|
| 37 | 37 | $this->getName(), |
| 38 | 38 | $this->getValue(), |
| 39 | 39 | $this->getStep() |
@@ -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 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->iterations = |
| 31 | 31 | new Rewindable( |
| 32 | - function (int $iterations, int $i = 1): \Generator { |
|
| 32 | + function(int $iterations, int $i = 1): \Generator { |
|
| 33 | 33 | while ($i <= $iterations) { |
| 34 | 34 | yield $i++; |
| 35 | 35 | } |
@@ -47,14 +47,14 @@ |
||
| 47 | 47 | if (DEFAULT_NAME === $name = $this->getName()) { |
| 48 | 48 | return |
| 49 | 49 | sprintf( |
| 50 | - 'Timer:[%s] Elapsed: %s' . PHP_EOL, |
|
| 50 | + 'Timer:[%s] Elapsed: %s'.PHP_EOL, |
|
| 51 | 51 | $name, |
| 52 | 52 | format_time($this->getElapsed()) |
| 53 | 53 | ); |
| 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()), |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function __toString(): string |
| 40 | 40 | { |
| 41 | 41 | $r = (string)$this->getProfiler()->report(); |
| 42 | - $r .= 'Benchmark:' . PHP_EOL; |
|
| 42 | + $r .= 'Benchmark:'.PHP_EOL; |
|
| 43 | 43 | foreach ($this->computeRelatives() as $indexName => $result) { |
| 44 | 44 | $function = $this->getFunctionObject($indexName); |
| 45 | 45 | $arguments = $function->getArgs(); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | foreach ($relatives as $name => $relative) { |
| 85 | 85 | $relatives[$name] = |
| 86 | - $this->percent((float)$relative - 1) . ' ' . |
|
| 86 | + $this->percent((float)$relative - 1).' '. |
|
| 87 | 87 | brackets(format_time($averages[$name]), BRACKETS_PARENTHESES); |
| 88 | 88 | } |
| 89 | 89 | return $relatives; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | private function percent(float $relative): string |
| 113 | 113 | { |
| 114 | 114 | return |
| 115 | - number_format($relative * 100, 1) . '%'; |
|
| 115 | + number_format($relative * 100, 1).'%'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |