Conditions | 3 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
61 | protected function mapResult(array $matches): array |
||
62 | { |
||
63 | return array_map(static function ($match) { |
||
64 | $result = [ |
||
65 | 'class' => (string)$match['CLASS'], |
||
66 | 'type' => $match['TYPE'], |
||
67 | 'function' => $match['FUNCTION'], |
||
68 | ]; |
||
69 | if ($match['FILE'] !== null) { |
||
70 | $result['file'] = $match['FILE']; |
||
71 | } |
||
72 | if ($match['LINE'] !== null) { |
||
73 | $result['line'] = (int)$match['LINE']; |
||
74 | } |
||
75 | return $result; |
||
76 | }, $matches); |
||
77 | } |
||
88 | } |