| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | private function runExtraCallbacks(string $type): bool |
||
| 48 | { |
||
| 49 | if (empty($this->extraCallbacks[$type])) { |
||
| 50 | return true; |
||
| 51 | } |
||
| 52 | |||
| 53 | foreach ($this->extraCallbacks[$type] as $callback) { |
||
| 54 | if ($callback() === false) { |
||
| 55 | return false; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 59 | $this->extraCallbacks[$type] = []; |
||
| 60 | |||
| 61 | return true; |
||
| 62 | } |
||
| 64 |