Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 4 | private function countersStatistics(): string |
|
36 | { |
||
37 | 4 | $added = $this->report->getProfiler()->counter(static::ADDED)->getValue(); |
|
38 | 4 | $benchmarked = $this->report->getProfiler()->counter(static::BENCHMARKED)->getValue(); |
|
39 | 4 | if ($added === $benchmarked) { |
|
40 | 1 | return ''; |
|
41 | } |
||
42 | |||
43 | return |
||
44 | 3 | sprintf( |
|
45 | 3 | '%s: %s %s: %s %s %s', |
|
46 | 3 | static::ADDED, |
|
47 | 3 | $added, |
|
48 | 3 | static::BENCHMARKED, |
|
49 | 3 | $benchmarked, |
|
50 | 3 | $this->countedExceptions($added, $benchmarked), |
|
51 | 3 | PHP_EOL |
|
52 | ); |
||
68 |