@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | return |
38 | 38 | sprintf( |
39 | - self::ELAPSED . ': %s %s', |
|
39 | + self::ELAPSED.': %s %s', |
|
40 | 40 | $this->refineElapsed($report->getElapsed()), |
41 | 41 | $eol ? PHP_EOL : '' |
42 | 42 | ); |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | $values = |
74 | 74 | 0 < $count ? |
75 | 75 | sprintf( |
76 | - self::AVERAGE . ': %s, ' . |
|
77 | - self::LAST . ': %s, ' . |
|
78 | - self::MIN . '(%s): %s, ' . |
|
79 | - self::MAX . '(%s): %s, ' . |
|
80 | - self::MARKS . ': %s, ', |
|
76 | + self::AVERAGE.': %s, '. |
|
77 | + self::LAST.': %s, '. |
|
78 | + self::MIN.'(%s): %s, '. |
|
79 | + self::MAX.'(%s): %s, '. |
|
80 | + self::MARKS.': %s, ', |
|
81 | 81 | $this->refineSeconds($r->getAverageValue()), |
82 | 82 | $this->refineSeconds($r->getLastValue()), |
83 | 83 | $r->getMinValueIteration(), |
@@ -85,13 +85,12 @@ discard block |
||
85 | 85 | $r->getMaxValueIteration(), |
86 | 86 | $this->refineSeconds($r->getMaxValue()), |
87 | 87 | $count |
88 | - ) : |
|
89 | - ''; |
|
88 | + ) : ''; |
|
90 | 89 | |
91 | 90 | return |
92 | 91 | sprintf( |
93 | - self::TIMER . '%s: %s' . |
|
94 | - self::ELAPSED . ': %s%s', |
|
92 | + self::TIMER.'%s: %s'. |
|
93 | + self::ELAPSED.': %s%s', |
|
95 | 94 | $this->refineName($r->getName()), |
96 | 95 | $values, |
97 | 96 | $this->refineElapsed($r->getElapsed()), |
@@ -110,6 +109,6 @@ discard block |
||
110 | 109 | if (DEFAULT_NAME === $name) { |
111 | 110 | return ''; |
112 | 111 | } |
113 | - return '[' . $name . ']'; |
|
112 | + return '['.$name.']'; |
|
114 | 113 | } |
115 | 114 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** @var CounterValuesInterface $report */ |
33 | 33 | return |
34 | 34 | sprintf( |
35 | - self::COUNTER . ': %s%s', |
|
35 | + self::COUNTER.': %s%s', |
|
36 | 36 | (string)$report->getValue(), |
37 | 37 | $eol ? PHP_EOL : '' |
38 | 38 | ); |
@@ -47,15 +47,15 @@ discard block |
||
47 | 47 | { |
48 | 48 | return |
49 | 49 | sprintf( |
50 | - self::COUNTER . '[%s]: ' . |
|
51 | - self::VALUE . ': %s, ' . |
|
52 | - self::STEP . ': %s, ' . |
|
53 | - self::BUMPED . ': %s, ' . |
|
54 | - self::PATH . ': %s, ' . |
|
55 | - self::LENGTH . ': %s, ' . |
|
56 | - self::MAX . ': %s, ' . |
|
57 | - self::MIN . ': %s, ' . |
|
58 | - self::DIFF . ': %s %s', |
|
50 | + self::COUNTER.'[%s]: '. |
|
51 | + self::VALUE.': %s, '. |
|
52 | + self::STEP.': %s, '. |
|
53 | + self::BUMPED.': %s, '. |
|
54 | + self::PATH.': %s, '. |
|
55 | + self::LENGTH.': %s, '. |
|
56 | + self::MAX.': %s, '. |
|
57 | + self::MIN.': %s, '. |
|
58 | + self::DIFF.': %s %s', |
|
59 | 59 | $report->getName(), |
60 | 60 | (string)$report->getValue(), |
61 | 61 | (string)$report->getStep(), |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | return |
79 | 79 | sprintf( |
80 | - self::FORWARD . '%s ' . self::BACKWARD . '%s', |
|
80 | + self::FORWARD.'%s '.self::BACKWARD.'%s', |
|
81 | 81 | $report->getBumped(), |
82 | 82 | $report->getBumpedBack() |
83 | 83 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | protected function wrongFormattableType(string $expected, Formattable $formattable): void |
21 | 21 | { |
22 | 22 | throw new \RuntimeException( |
23 | - 'Instance of [' . $expected . '] expected, [' . typeOf($formattable) . '] given.' |
|
23 | + 'Instance of ['.$expected.'] expected, ['.typeOf($formattable).'] given.' |
|
24 | 24 | ); |
25 | 25 | } |
26 | 26 | } |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | protected function build(BenchmarkReport $report): string |
56 | 56 | { |
57 | 57 | $this->report = $report; |
58 | - $str = static::RESULTS . PHP_EOL; |
|
58 | + $str = static::RESULTS.PHP_EOL; |
|
59 | 59 | $this->computeVariables(); |
60 | 60 | if ($this->benchmarkedAny) { |
61 | - $str .= static::BENCHMARK . PHP_EOL; |
|
61 | + $str .= static::BENCHMARK.PHP_EOL; |
|
62 | 62 | } |
63 | 63 | if ($this->anyExceptions) { |
64 | - $exceptions = static::EXCEPTIONS . PHP_EOL; |
|
64 | + $exceptions = static::EXCEPTIONS.PHP_EOL; |
|
65 | 65 | } else { |
66 | 66 | $exceptions = ''; |
67 | 67 | } |
@@ -154,8 +154,7 @@ discard block |
||
154 | 154 | '%s%s%s', |
155 | 155 | $aRAE, |
156 | 156 | $this->benchmarkedMoreThanOne && $this->report->isShowReturns() ? |
157 | - ':' . PHP_EOL . Factory::getBenchmarkFunctionFormatter()->returnToString($this->lastReturn) : |
|
158 | - $dLM, |
|
157 | + ':'.PHP_EOL.Factory::getBenchmarkFunctionFormatter()->returnToString($this->lastReturn) : $dLM, |
|
159 | 158 | PHP_EOL |
160 | 159 | ); |
161 | 160 | } |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | { |
38 | 38 | if ($function instanceof BenchmarkFunction) { |
39 | 39 | return |
40 | - $this->formatBenchmarkRelative($function) . |
|
40 | + $this->formatBenchmarkRelative($function). |
|
41 | 41 | (empty($exception = $this->formatException($function)) ? |
42 | 42 | PHP_EOL : |
43 | - /*static::EXCEPTIONS .*/ $exception . PHP_EOL); |
|
43 | + /*static::EXCEPTIONS .*/ $exception.PHP_EOL); |
|
44 | 44 | } |
45 | 45 | $this->wrongFormattableType(BenchmarkFunction::class, $function); |
46 | 46 | // @codeCoverageIgnoreStart |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | { |
136 | 136 | return |
137 | 137 | str_pad( |
138 | - $prefix . Pretty::percent($relative), |
|
138 | + $prefix.Pretty::percent($relative), |
|
139 | 139 | 9, |
140 | 140 | ' ', |
141 | 141 | STR_PAD_LEFT |
@@ -149,8 +149,7 @@ discard block |
||
149 | 149 | $str = static::getExporter()->export($executionReturn); |
150 | 150 | return |
151 | 151 | 'array' === $type ? |
152 | - $str : |
|
153 | - sprintf( |
|
152 | + $str : sprintf( |
|
154 | 153 | '%s(%s)', |
155 | 154 | $type, |
156 | 155 | $str |