@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | public function process(BenchmarkFunction $function): string |
39 | 39 | { |
40 | 40 | return |
41 | - $this->formatBenchmarkRelative($function) . |
|
41 | + $this->formatBenchmarkRelative($function). |
|
42 | 42 | (empty($exception = $this->formatException($function)) ? |
43 | 43 | PHP_EOL : |
44 | - static::EXCEPTIONS . PHP_EOL . $exception); |
|
44 | + static::EXCEPTIONS.PHP_EOL.$exception); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -145,12 +145,11 @@ discard block |
||
145 | 145 | $str = $exporter->export($executionReturn); |
146 | 146 | // $str = var_export($executionReturn, true); |
147 | 147 | } catch (\Exception $e) { |
148 | - $str = '[' . typeOf($e) . '] ' . $e->getMessage(); |
|
148 | + $str = '['.typeOf($e).'] '.$e->getMessage(); |
|
149 | 149 | } |
150 | 150 | return |
151 | 151 | $type === 'array' ? |
152 | - $str : |
|
153 | - sprintf( |
|
152 | + $str : sprintf( |
|
154 | 153 | '%s(%s)', |
155 | 154 | $type, |
156 | 155 | $str |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $this->iterations = $this->refineIterations($iterations); |
60 | 60 | |
61 | 61 | $this->generatorFunction = |
62 | - function (int $iterations, int $i = 1): \Generator { |
|
62 | + function(int $iterations, int $i = 1): \Generator { |
|
63 | 63 | while ($i <= $iterations) { |
64 | 64 | yield $i++; |
65 | 65 | } |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | { |
84 | 84 | if ($iterations < self::MIN_ITERATIONS) { |
85 | 85 | throw new \RuntimeException( |
86 | - __CLASS__ . |
|
87 | - ': Number of Iterations should be greater then ' . |
|
86 | + __CLASS__. |
|
87 | + ': Number of Iterations should be greater then '. |
|
88 | 88 | self::MIN_ITERATIONS |
89 | 89 | ); |
90 | 90 | } |