| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function getArr(mixed $record, array $output) |
||
| 37 | { |
||
| 38 | foreach ($record as $key => $value) { |
||
| 39 | if (is_array($value)) { |
||
| 40 | $output[$key] = $this->getArr($value, $output); |
||
| 41 | } elseif ($value instanceof \Throwable) { |
||
| 42 | $output[$key] = [ |
||
| 43 | 'message' => $value->getMessage(), |
||
| 44 | 'file' => $value->getFile(), |
||
| 45 | 'line' => $value->getLine(), |
||
| 46 | 'code' => $value->getCode(), |
||
| 47 | ]; |
||
| 48 | } else { |
||
| 49 | $output[$key] = $value; |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 | return $output; |
||
| 54 | } |
||
| 56 |