| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 6 | private function generate(string $carrier, ?string $service, ?string $country, array $data): Generator |
|
| 38 | { |
||
| 39 | 6 | $country = $data['country'] ?? $country; |
|
| 40 | |||
| 41 | 6 | foreach ($data['zip_codes'] ?? [] as $item) { |
|
| 42 | 6 | $item['country'] ??= $country; |
|
| 43 | |||
| 44 | 6 | yield $this->create($carrier, $service, $item); |
|
| 45 | } |
||
| 48 |