| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 5.667 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 14 | public function run(): void |
|
| 25 | { |
||
| 26 | 14 | foreach ($this->bootstrapList as $callback) { |
|
| 27 | if (!(is_callable($callback))) { |
||
| 28 | $type = get_debug_type($callback); |
||
| 29 | throw new RuntimeException("Bootstrap callback must be callable, $type given."); |
||
| 30 | } |
||
| 31 | $callback($this->container); |
||
| 32 | } |
||
| 35 |