| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 7 | public function build(): HealthContributorRegistry |
|
| 10 | { |
||
| 11 | 7 | $registry = new HealthContributorRegistry(); |
|
| 12 | 7 | $contributors = config('actuator.health.contributors'); |
|
| 13 | 7 | foreach ($contributors as $name => $contributor) { |
|
| 14 | 5 | $registry->register($name, app($contributor)); |
|
| 15 | } |
||
| 16 | |||
| 17 | 7 | return $registry; |
|
| 18 | } |
||
| 19 | } |
||
| 20 |