@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -25,7 +25,8 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function it_does_not_crash(): void |
| 27 | 27 | { |
| 28 | - $class = new class() extends Bundle { |
|
| 28 | + $class = new class() extends Bundle |
|
| 29 | + { |
|
| 29 | 30 | use SyliusPluginTrait; |
| 30 | 31 | }; |
| 31 | 32 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | private function isTryingToDeleteLoggedInAdminUser(UserInterface $user): bool |
| 59 | 59 | { |
| 60 | - if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')){ |
|
| 60 | + if (!$user->hasRole('ROLE_ADMINISTRATION_ACCESS') && !$user->hasRole('ROLE_API_ACCESS')) { |
|
| 61 | 61 | return false; |
| 62 | 62 | } |
| 63 | 63 | |