@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | For the full copyright and license information, please view the LICENSE |
| 20 | 20 | file that was distributed with this source code. |
| 21 | -EOF; |
|
| 21 | +eof; |
|
| 22 | 22 | |
| 23 | 23 | HeaderCommentFixer::setHeader($header); |
| 24 | 24 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | The <info>sylius:user:promote</info> command promotes a user by adding security roles |
| 39 | 39 | |
| 40 | 40 | <info>php app/console sylius:user:promote [email protected]</info> |
| 41 | -EOT |
|
| 41 | +eot |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | The <info>sylius:user:demote</info> command demotes a user by removing security roles |
| 39 | 39 | |
| 40 | 40 | <info>php app/console sylius:user:demote [email protected]</info> |
| 41 | -EOT |
|
| 41 | +eot |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -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 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | ->setDescription('Checks if all Sylius requirements are satisfied.') |
| 28 | 28 | ->setHelp(<<<EOT |
| 29 | 29 | The <info>%command.name%</info> command checks system requirements. |
| 30 | -EOT |
|
| 30 | +eot |
|
| 31 | 31 | ) |
| 32 | 32 | ; |
| 33 | 33 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | ->setDescription('Installs all Sylius assets.') |
| 27 | 27 | ->setHelp(<<<EOT |
| 28 | 28 | The <info>%command.name%</info> command downloads and installs all Sylius media assets. |
| 29 | -EOT |
|
| 29 | +eot |
|
| 30 | 30 | ) |
| 31 | 31 | ; |
| 32 | 32 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->setDescription('Sylius configuration setup.') |
| 47 | 47 | ->setHelp(<<<EOT |
| 48 | 48 | The <info>%command.name%</info> command allows user to configure basic Sylius data. |
| 49 | -EOT |
|
| 49 | +eot |
|
| 50 | 50 | ) |
| 51 | 51 | ; |
| 52 | 52 | } |
@@ -46,8 +46,8 @@ |
||
| 46 | 46 | StateMachineInterface $secondOrderStateMachine |
| 47 | 47 | ): void { |
| 48 | 48 | $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTimeInterface::class))->willReturn([ |
| 49 | - $firstOrder, |
|
| 50 | - $secondOrder, |
|
| 49 | + $firstOrder, |
|
| 50 | + $secondOrder, |
|
| 51 | 51 | ]); |
| 52 | 52 | |
| 53 | 53 | $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine); |
@@ -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 | |