@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | if ($function instanceof BenchmarkFunction) { |
| 50 | 50 | return |
| 51 | - $this->formatBenchmarkRelative($function) . |
|
| 51 | + $this->formatBenchmarkRelative($function). |
|
| 52 | 52 | (empty($exception = $this->formatException($function)) ? |
| 53 | 53 | PHP_EOL : |
| 54 | - static::EXCEPTIONS . PHP_EOL . $exception); |
|
| 54 | + static::EXCEPTIONS.PHP_EOL.$exception); |
|
| 55 | 55 | } |
| 56 | 56 | $this->wrongFormattableType(BenchmarkFunction::class, $function); |
| 57 | 57 | // @codeCoverageIgnoreStart |
@@ -157,8 +157,7 @@ discard block |
||
| 157 | 157 | $str = static::getExporter()->export($executionReturn); |
| 158 | 158 | return |
| 159 | 159 | 'array' === $type ? |
| 160 | - $str : |
|
| 161 | - sprintf( |
|
| 160 | + $str : sprintf( |
|
| 162 | 161 | '%s(%s)', |
| 163 | 162 | $type, |
| 164 | 163 | $str |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | // There is almost no sense to use polyfill function. |
| 37 | 37 | // If you're REALLY need to use HRTimer set `$ignoreVersionRestrictions` to true. |
| 38 | 38 | // Otherwise use `Timer::class` instance instead. |
| 39 | - throw new \RuntimeException('[' . static::class . '] Your php version is below 7.3.0.'); |
|
| 39 | + throw new \RuntimeException('['.static::class.'] Your php version is below 7.3.0.'); |
|
| 40 | 40 | } |
| 41 | 41 | if (PHP_INT_SIZE < INT_SIZE_64BIT) { |
| 42 | 42 | // `HRTimer::class` is designed and tested in 64bit environment |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $this->silent = $silent ?? $this->silent; |
| 61 | 61 | |
| 62 | 62 | $this->iterationNumberGenerator = |
| 63 | - function (int $iterations, int $i = 1): \Generator { |
|
| 63 | + function(int $iterations, int $i = 1): \Generator { |
|
| 64 | 64 | while ($i <= $iterations) { |
| 65 | 65 | yield $i++; |
| 66 | 66 | } |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | if ($iterations < self::MIN_ITERATIONS) { |
| 86 | 86 | throw new \RuntimeException( |
| 87 | - __CLASS__ . |
|
| 88 | - ': Number of Iterations should be greater then ' . |
|
| 87 | + __CLASS__. |
|
| 88 | + ': Number of Iterations should be greater then '. |
|
| 89 | 89 | self::MIN_ITERATIONS |
| 90 | 90 | ); |
| 91 | 91 | } |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | protected function showComment(string $comment = ''): void |
| 294 | 294 | { |
| 295 | - echo $comment . PHP_EOL; |
|
| 295 | + echo $comment.PHP_EOL; |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | /** |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | return |
| 82 | 82 | static::getBenchmarkFunctionFormatter(); |
| 83 | 83 | } |
| 84 | - throw new \RuntimeException('Formatter [' . typeOf($formatter) . '] is not accepted.'); |
|
| 84 | + throw new \RuntimeException('Formatter ['.typeOf($formatter).'] is not accepted.'); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |