@@ -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 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public function __construct(Timer $timer) |
25 | 25 | { |
26 | 26 | if (0 === $count = $timer->getCount()) { |
27 | - throw new \RuntimeException('Timer "' . $timer->getName() . '" has not been started.'); |
|
27 | + throw new \RuntimeException('Timer "'.$timer->getName().'" has not been started.'); |
|
28 | 28 | } |
29 | 29 | $this->name = $timer->getName(); |
30 | 30 | $this->previous = $timer->getPrevious(); |
@@ -49,14 +49,14 @@ discard block |
||
49 | 49 | if (DEFAULT_NAME === $name = $this->getName()) { |
50 | 50 | return |
51 | 51 | sprintf( |
52 | - 'Timer:[%s] Elapsed: %s' . PHP_EOL, |
|
52 | + 'Timer:[%s] Elapsed: %s'.PHP_EOL, |
|
53 | 53 | $name, |
54 | 54 | format_time($this->getElapsed()) |
55 | 55 | ); |
56 | 56 | } |
57 | 57 | return |
58 | 58 | sprintf( |
59 | - 'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s' . PHP_EOL, |
|
59 | + 'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s'.PHP_EOL, |
|
60 | 60 | $name, |
61 | 61 | format_time($this->getAverageValue()), |
62 | 62 | format_time($this->getLastValue()), |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function __toString(): string |
39 | 39 | { |
40 | 40 | $r = (string)$this->getProfiler()->report(); |
41 | - $r .= 'Benchmark:' . PHP_EOL; |
|
41 | + $r .= 'Benchmark:'.PHP_EOL; |
|
42 | 42 | foreach ($this->computeRelatives() as $indexName => $result) { |
43 | 43 | $function = $this->getFunctionObject($indexName); |
44 | 44 | $arguments = $function->getArgs(); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | } |
51 | 51 | $r .= sprintf( |
52 | - '+%s [%s] %s(%s) %s' . PHP_EOL, |
|
52 | + '+%s [%s] %s(%s) %s'.PHP_EOL, |
|
53 | 53 | $result, |
54 | 54 | $function->getIndex(), |
55 | 55 | $function->getName(), |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | foreach ($relatives as $name => $relative) { |
82 | 82 | $relatives[$name] = |
83 | - $this->percent((float)$relative - 1) . ' ' . |
|
83 | + $this->percent((float)$relative - 1).' '. |
|
84 | 84 | brackets(format_time($averages[$name]), BRACKETS_PARENTHESES); |
85 | 85 | } |
86 | 86 | return $relatives; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | private function percent(float $relative): string |
110 | 110 | { |
111 | 111 | return |
112 | - number_format($relative * 100, 1) . '%'; |
|
112 | + number_format($relative * 100, 1).'%'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -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 | } |