Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function analyze(Registry $registryBefore, Registry $registryAfter) |
|
18 | { |
||
19 | 1 | $finalReport = new Report(); |
|
20 | |||
21 | $analyzers = [ |
||
22 | 1 | new FunctionAnalyzer(), |
|
23 | 1 | new ClassAnalyzer(), |
|
24 | 1 | new InterfaceAnalyzer(), |
|
25 | 1 | new TraitAnalyzer(), |
|
26 | ]; |
||
27 | |||
28 | 1 | foreach ($analyzers as $analyzer) { |
|
29 | 1 | $report = $analyzer->analyze($registryBefore, $registryAfter); |
|
30 | 1 | $finalReport->merge($report); |
|
31 | } |
||
32 | |||
33 | 1 | return $finalReport; |
|
34 | } |
||
35 | } |
||
36 |