@@ -1089,8 +1089,9 @@ |
||
1089 | 1089 | |
1090 | 1090 | public function canAccess($currentUser): bool |
1091 | 1091 | { |
1092 | - if (($provider = $this->getProvider()) === null) |
|
1093 | - return false; |
|
1092 | + if (($provider = $this->getProvider()) === null) { |
|
1093 | + return false; |
|
1094 | + } |
|
1094 | 1095 | |
1095 | 1096 | return $currentUser->getPeople()->getLink()->exists( |
1096 | 1097 | function ($key, $element) use ($provider) { |
@@ -53,8 +53,9 @@ |
||
53 | 53 | |
54 | 54 | public function __destruct() |
55 | 55 | { |
56 | - if (!$this->order) |
|
57 | - return; |
|
56 | + if (!$this->order) { |
|
57 | + return; |
|
58 | + } |
|
58 | 59 | |
59 | 60 | $this->orderService->calculateGroupProductPrice($this->order); |
60 | 61 | $this->orderService->calculateOrderPrice($this->order); |