Skip to content

Commit 2321889

Browse files
committed
rector fix
1 parent 605d799 commit 2321889

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/services/Inventory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ public function updateInventoryLevel(int $inventoryItemId, int $quantity, array
372372
public function updatePurchasableInventoryLevel(Purchasable $purchasable, int $quantity, array $updateInventoryLevelAttributes = [])
373373
{
374374
$inventoryLocation = $purchasable->getStore()->getInventoryLocations()->first();
375-
375+
376376
if (!$inventoryLocation) {
377377
// If no inventory location exists, we can't update inventory
378378
// TODO change method to return false or throw an exception
379379
return;
380380
}
381-
381+
382382
$updateInventoryLevelAttributes += [
383383
'quantity' => $quantity,
384384
'updateAction' => InventoryUpdateQuantityType::SET,

0 commit comments

Comments
 (0)