| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 49 | 10 | public function build(Throwable $exception): array  | 
            |
| 50 |     { | 
            ||
| 51 | 10 | $errors = [];  | 
            |
| 52 | |||
| 53 | 10 | $errors[] = $this->createError($exception);  | 
            |
| 54 | 10 |         if ($this->traceStack && $exception->getPrevious()) { | 
            |
| 55 | 1 | $errors = array_merge($errors, $this->build($exception->getPrevious()));  | 
            |
| 56 | }  | 
            ||
| 57 | |||
| 58 | 10 | return $errors;  | 
            |
| 59 | }  | 
            ||
| 77 |