@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Form\Extension; |
| 14 | 14 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | public function buildForm(FormBuilderInterface $builder, array $options): void |
| 65 | 65 | { |
| 66 | 66 | $builder |
| 67 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event): void { |
|
| 67 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event): void { |
|
| 68 | 68 | $billingAddressForm = $event->getForm()->getParent()->get('billingAddress'); |
| 69 | 69 | |
| 70 | 70 | if ($event->getForm() !== $billingAddressForm) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $this->billingAddressForm = $billingAddressForm; |
| 87 | 87 | $this->invoice = $invoice; |
| 88 | 88 | }) |
| 89 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event): void { |
|
| 89 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event): void { |
|
| 90 | 90 | if ($event->getForm() !== $this->billingAddressForm || null === $this->invoice) { |
| 91 | 91 | return; |
| 92 | 92 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Form\Type; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Form\Type; |
| 14 | 14 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace BitBag\SyliusInvoicingPlugin; |
| 6 | 6 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Validator\Constraints; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Validator\Constraints; |
| 14 | 14 | |
@@ -50,17 +50,17 @@ discard block |
||
| 50 | 50 | return false; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - $arrSteps = [6, 5, 7, 2, 3, 4, 5, 6, 7]; |
|
| 53 | + $arrSteps = [ 6, 5, 7, 2, 3, 4, 5, 6, 7 ]; |
|
| 54 | 54 | $intSum = 0; |
| 55 | 55 | |
| 56 | 56 | for ($i = 0; $i < 9; ++$i) { |
| 57 | - $intSum += $arrSteps[$i] * $vatNumber[$i]; |
|
| 57 | + $intSum += $arrSteps[ $i ] * $vatNumber[ $i ]; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | $int = $intSum % 11; |
| 61 | 61 | $checkSum = $int === 10 ? 0 : $int; |
| 62 | 62 | |
| 63 | - if ($checkSum == $vatNumber[9]) { |
|
| 63 | + if ($checkSum == $vatNumber[ 9 ]) { |
|
| 64 | 64 | return true; |
| 65 | 65 | } |
| 66 | 66 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Resolver; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Resolver; |
| 14 | 14 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\SyliusInvoicingPlugin\Resolver; |
| 14 | 14 | |