| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function decode(array $line): array |
||
| 24 | { |
||
| 25 | if ($line[LineEncoder::META_KEY][LineEncoder::TYPE_KEY] === LineEncoder::TYPE_THROWABLE) { |
||
| 26 | return ['throwable' => throwable_decode($line[LineEncoder::VALUE_KEY])]; |
||
| 27 | } |
||
| 28 | |||
| 29 | foreach ($line[LineEncoder::META_KEY][LineEncoder::THROWABLES_KEY] as $throwableKey) { |
||
| 30 | $line[LineEncoder::VALUE_KEY][$throwableKey] = throwable_decode($line[LineEncoder::VALUE_KEY][$throwableKey]); |
||
| 31 | } |
||
| 32 | |||
| 33 | return Hash::expand($line[LineEncoder::VALUE_KEY]); |
||
| 34 | } |
||
| 36 |