@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Controller; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Doctrine\ORM; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Doctrine\ORM; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Doctrine\ORM; |
| 6 | 6 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected function applyCriteria(QueryBuilder $queryBuilder, array $criteria = []): void |
| 35 | 35 | { |
| 36 | - $criteria = array_filter($criteria, function ($value) { |
|
| 36 | + $criteria = array_filter($criteria, function($value) { |
|
| 37 | 37 | return !is_null($value); |
| 38 | 38 | }); |
| 39 | 39 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Form\Extension; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Form\Extension; |
| 6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 38 | 38 | { |
| 39 | - $formModifier = function (FormInterface $form, string $type = null) { |
|
| 39 | + $formModifier = function(FormInterface $form, string $type = null) { |
|
| 40 | 40 | $methods = null === $type ? [] : $this->paymentMethodsProvider->getSupportedMethods($type); |
| 41 | 41 | |
| 42 | 42 | $form->add('method', PaymentMethodChoiceType::class, [ |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $builder->addEventListener( |
| 49 | 49 | FormEvents::PRE_SET_DATA, |
| 50 | - function (FormEvent $event) use ($formModifier) { |
|
| 50 | + function(FormEvent $event) use ($formModifier) { |
|
| 51 | 51 | $data = $event->getData(); |
| 52 | 52 | |
| 53 | 53 | $formModifier($event->getForm(), $data->getType()); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $builder->get('type')->addEventListener( |
| 58 | 58 | FormEvents::POST_SUBMIT, |
| 59 | - function (FormEvent $event) use ($formModifier) { |
|
| 59 | + function(FormEvent $event) use ($formModifier) { |
|
| 60 | 60 | $type = $event->getForm()->getData(); |
| 61 | 61 | $formModifier($event->getForm()->getParent(), $type); |
| 62 | 62 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Form\Extension; |
| 6 | 6 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'data' => $gatewayFactory, |
| 30 | 30 | ]) |
| 31 | 31 | ->add('supportsRecurring', CheckboxType::class) |
| 32 | - ->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) { |
|
| 32 | + ->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) { |
|
| 33 | 33 | $paymentMethod = $event->getData(); |
| 34 | 34 | |
| 35 | 35 | if (!$paymentMethod instanceof PaymentMethodInterface) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Form\Extension; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace PH\Bundle\CoreBundle\Form\Extension; |
| 6 | 6 | |