Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 12 | public function getReport(bool $rebuild = true): ReportInterface |
|
20 | { |
||
21 | 12 | if (null === $this->reportObject || true === $rebuild) { |
|
22 | 12 | $this->prepareForReport(); |
|
23 | 12 | $this->reportObject = |
|
24 | 12 | Factory::makeReport( |
|
25 | /** @scrutinizer ignore-type */ |
||
26 | 12 | $this |
|
27 | ); |
||
28 | } |
||
29 | return |
||
30 | 12 | $this->reportObject; |
|
31 | } |
||
40 |