@@ -45,10 +45,10 @@ discard block |
||
| 45 | 45 | protected function build(BenchmarkReport $report): string |
| 46 | 46 | { |
| 47 | 47 | $this->report = $report; |
| 48 | - $str = static::RESULTS . PHP_EOL; |
|
| 48 | + $str = static::RESULTS.PHP_EOL; |
|
| 49 | 49 | $this->computeVariables(); |
| 50 | 50 | if ($this->benchmarkedAny) { |
| 51 | - $str .= static::BENCHMARK . PHP_EOL; |
|
| 51 | + $str .= static::BENCHMARK.PHP_EOL; |
|
| 52 | 52 | } |
| 53 | 53 | /** @var BenchmarkFunction $function */ |
| 54 | 54 | foreach ($report->getFunctions() as $name => $function) { |
@@ -120,8 +120,7 @@ discard block |
||
| 120 | 120 | '%s%s%s', |
| 121 | 121 | $aRAE, |
| 122 | 122 | $this->benchmarkedMoreThanOne && $this->report->isShowReturns() ? |
| 123 | - ':' . PHP_EOL . BenchmarkFunctionFormatter::returnToString($this->lastReturn) : |
|
| 124 | - $dLM, |
|
| 123 | + ':'.PHP_EOL.BenchmarkFunctionFormatter::returnToString($this->lastReturn) : $dLM, |
|
| 125 | 124 | PHP_EOL |
| 126 | 125 | ); |
| 127 | 126 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** @var CounterValuesInterface $report */ |
| 36 | 36 | return |
| 37 | 37 | sprintf( |
| 38 | - self::COUNTER . ': %s%s', |
|
| 38 | + self::COUNTER.': %s%s', |
|
| 39 | 39 | (string)$report->getValue(), |
| 40 | 40 | $eol ? PHP_EOL : '' |
| 41 | 41 | ); |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | return |
| 52 | 52 | sprintf( |
| 53 | - self::COUNTER . '[%s]: ' . |
|
| 54 | - self::VALUE . ': %s, ' . |
|
| 55 | - self::STEP . ': %s, ' . |
|
| 56 | - self::BUMPED . ': %s%s', |
|
| 53 | + self::COUNTER.'[%s]: '. |
|
| 54 | + self::VALUE.': %s, '. |
|
| 55 | + self::STEP.': %s, '. |
|
| 56 | + self::BUMPED.': %s%s', |
|
| 57 | 57 | $report->getName(), |
| 58 | 58 | (string)$report->getValue(), |
| 59 | 59 | (string)$report->getStep(), |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | return |
| 72 | 72 | sprintf( |
| 73 | - self::FORWARD . '%s ', |
|
| 73 | + self::FORWARD.'%s ', |
|
| 74 | 74 | $report->getBumped() |
| 75 | 75 | ); |
| 76 | 76 | } |
@@ -18,13 +18,13 @@ |
||
| 18 | 18 | $this->progressBarWidth = $this->advanceSteps = $progressBarWidth ?? $this->advanceSteps; |
| 19 | 19 | |
| 20 | 20 | $progressAdvance = |
| 21 | - function (): void { |
|
| 21 | + function(): void { |
|
| 22 | 22 | echo '*'; |
| 23 | 23 | }; |
| 24 | 24 | |
| 25 | 25 | $progressFinish = |
| 26 | - function (): void { |
|
| 27 | - echo "\e[" . $this->progressBarWidth . 'D'; |
|
| 26 | + function(): void { |
|
| 27 | + echo "\e[".$this->progressBarWidth.'D'; |
|
| 28 | 28 | echo "\e[K"; |
| 29 | 29 | }; |
| 30 | 30 | |
@@ -33,17 +33,17 @@ |
||
| 33 | 33 | $this->progressBar = new ProgressBar($this->output, $this->advanceSteps); |
| 34 | 34 | $this->progressBar->setBarWidth($this->progressBarWidth); |
| 35 | 35 | $progressStart = |
| 36 | - function (): void { |
|
| 36 | + function(): void { |
|
| 37 | 37 | $this->progressBar->start(); |
| 38 | 38 | }; |
| 39 | 39 | |
| 40 | 40 | $progressAdvance = |
| 41 | - function (): void { |
|
| 41 | + function(): void { |
|
| 42 | 42 | $this->progressBar->advance(); |
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | 45 | $progressFinish = |
| 46 | - function (): void { |
|
| 46 | + function(): void { |
|
| 47 | 47 | $this->progressBar->finish(); |
| 48 | 48 | $this->progressBar->clear(); |
| 49 | 49 | }; |