| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function handle(Exception $exception) { |
||
| 46 | |||
| 47 | $type = $this->identifyExceptionType($exception); |
||
| 48 | $parents = $this->identifyParentsTypes($exception); |
||
| 49 | |||
| 50 | foreach ($parents as $parent) { |
||
| 51 | |||
| 52 | $isProcessed = $this->run($parent, $exception); |
||
| 53 | |||
| 54 | if (true === $isProcessed) { |
||
| 55 | break; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 59 | return $this->run($type, $exception); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |