| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | protected static function buildInspections($monitorConfig) |
||
| 31 | { |
||
| 32 | return collect(array_get($monitorConfig, 'inspections'))->map(function ($options, $inspection) { |
||
| 33 | if (is_integer($inspection)) { |
||
| 34 | $inspection = $options; |
||
| 35 | $options = []; |
||
| 36 | } |
||
| 37 | |||
| 38 | return app()->makeWith($inspection, $options); |
||
| 39 | })->toArray(); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |