| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function getItemsProducts(array $cartItems, string $locale): array |
||
| 30 | { |
||
| 31 | $productBySku = []; |
||
| 32 | |||
| 33 | foreach ($cartItems as $item) { |
||
| 34 | $productBySku[$item->getSku()] = $this->productStorageClient->findProductAbstractViewTransfer( |
||
| 35 | $item->getIdProductAbstract(), |
||
| 36 | $locale, |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $productBySku; |
||
| 41 | } |
||
| 43 |