@@ -89,9 +89,9 @@ |
||
89 | 89 | $this->entityManager->lock($productStock, LockMode::PESSIMISTIC_WRITE); |
90 | 90 | $this->entityManager->refresh($productStock); |
91 | 91 | $ProductClass = $item->getProductClass(); |
92 | - if(!array_key_exists($ProductClass->getId(), $stocks)){ |
|
92 | + if (!array_key_exists($ProductClass->getId(), $stocks)) { |
|
93 | 93 | $stocks[$ProductClass->getId()]['stock'] = $callback($productStock->getStock(), $item->getQuantity()); |
94 | - }else{ |
|
94 | + } else { |
|
95 | 95 | $stocks[$ProductClass->getId()]['stock'] = $callback($stocks[$ProductClass->getId()]['stock'], $item->getQuantity()); |
96 | 96 | } |
97 | 97 | if ($stocks[$ProductClass->getId()]['stock'] < 0) { |
@@ -91,7 +91,7 @@ |
||
91 | 91 | $ProductClass = $item->getProductClass(); |
92 | 92 | if(!array_key_exists($ProductClass->getId(), $stocks)){ |
93 | 93 | $stocks[$ProductClass->getId()]['stock'] = $callback($productStock->getStock(), $item->getQuantity()); |
94 | - }else{ |
|
94 | + } else{ |
|
95 | 95 | $stocks[$ProductClass->getId()]['stock'] = $callback($stocks[$ProductClass->getId()]['stock'], $item->getQuantity()); |
96 | 96 | } |
97 | 97 | if ($stocks[$ProductClass->getId()]['stock'] < 0) { |