@@ -51,7 +51,8 @@ |
||
| 51 | 51 | |
| 52 | 52 | public function __destruct() |
| 53 | 53 | { |
| 54 | - if ($this->order) |
|
| 55 | - $this->orderService->calculateOrderPrice($this->order); |
|
| 54 | + if ($this->order) { |
|
| 55 | + $this->orderService->calculateOrderPrice($this->order); |
|
| 56 | + } |
|
| 56 | 57 | } |
| 57 | 58 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | RequestStack $requestStack |
| 22 | 22 | |
| 23 | 23 | ) { |
| 24 | - $this->request = $requestStack->getCurrentRequest(); |
|
| 24 | + $this->request = $requestStack->getCurrentRequest(); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function calculateOrderPrice(Order $order) |