Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
1 | <?php |
||
11 | 3 | public function __invoke(Application $app, Request $request) |
|
|
|||
12 | { |
||
13 | 3 | $healthAggregator = $app['health.aggregator']; |
|
14 | 3 | $healthIndicators = $app['health.indicators']; |
|
15 | |||
16 | 3 | assert(!is_null($healthAggregator), "health.aggregator must not be null"); |
|
17 | 3 | assert(!is_null($healthIndicators), "health.indicators must not be null"); |
|
18 | |||
19 | 3 | $healthIndicator = new CompositeHealthIndicator($healthAggregator); |
|
20 | 3 | foreach ($healthIndicators as $key => $entry) { |
|
21 | 3 | $healthIndicator->addHealthIndicator($key, $entry); |
|
22 | 3 | } |
|
23 | |||
24 | 3 | return $healthIndicator->health(); |
|
25 | } |
||
26 | } |
||
27 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.