| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 4 | public function extractFromJson(array $json): array |
|
| 12 | { |
||
| 13 | 4 | $quoteSummaryStore = $json['context']['dispatcher']['stores']['QuoteSummaryStore'] ?? []; |
|
| 14 | |||
| 15 | return [ |
||
| 16 | 4 | 'shortName' => $quoteSummaryStore['price']['shortName'] ?? '', |
|
| 17 | 4 | 'longName' => $quoteSummaryStore['price']['longName'] ?? '', |
|
| 18 | ]; |
||
| 21 |