@@ -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 | |
@@ -222,7 +222,8 @@ |
||
| 222 | 222 | * |
| 223 | 223 | * @return \Generator |
| 224 | 224 | */ |
| 225 | - private function createGenerator(Collaborator ...$collaborators) { |
|
| 225 | + private function createGenerator(Collaborator ...$collaborators) |
|
| 226 | + { |
|
| 226 | 227 | foreach ($collaborators as $collaborator) { |
| 227 | 228 | yield $collaborator->getWrappedObject() => []; |
| 228 | 229 | } |
@@ -222,7 +222,8 @@ |
||
| 222 | 222 | * |
| 223 | 223 | * @return \Generator |
| 224 | 224 | */ |
| 225 | - private function createGenerator(Collaborator ...$collaborators) { |
|
| 225 | + private function createGenerator(Collaborator ...$collaborators) |
|
| 226 | + { |
|
| 226 | 227 | foreach ($collaborators as $collaborator) { |
| 227 | 228 | yield $collaborator->getWrappedObject() => []; |
| 228 | 229 | } |
@@ -15,7 +15,8 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function it_does_not_crash(): void |
| 17 | 17 | { |
| 18 | - new class extends Bundle { |
|
| 18 | + new class extends Bundle |
|
| 19 | + { |
|
| 19 | 20 | use SyliusPluginTrait; |
| 20 | 21 | }; |
| 21 | 22 | } |