@@ -25,12 +25,12 @@ |
||
| 25 | 25 | } else { |
| 26 | 26 | $this->wrongReport(BenchmarkReport::class, $report); |
| 27 | 27 | } |
| 28 | - $str = 'Results:' . PHP_EOL; |
|
| 28 | + $str = 'Results:'.PHP_EOL; |
|
| 29 | 29 | $added = $this->added(); |
| 30 | 30 | $benchmarked = $this->benchmarked(); |
| 31 | 31 | $benchmarkedAny = $this->benchmarkedAny($added, $benchmarked); |
| 32 | 32 | if ($benchmarkedAny) { |
| 33 | - $str .= self::BENCHMARK . PHP_EOL; |
|
| 33 | + $str .= self::BENCHMARK.PHP_EOL; |
|
| 34 | 34 | } |
| 35 | 35 | $equalReturns = $this->checkReturns(); |
| 36 | 36 | /** @var BenchmarkFunction $function */ |
@@ -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 |