Passed
Branch master (000b1c)
by Mikołaj
08:08
created
Category
src/Form/Extension/AddressTypeExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Form/Type/InvoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Form/Type/CompanyDataType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/BitBagSyliusInvoicingPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace BitBag\SyliusInvoicingPlugin;
6 6
 
Please login to merge, or discard this patch.
src/Validator/Constraints/VatNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Validator/Constraints/VatNumberValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolver/CompanyDataResolverInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolver/InvoiceFileResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resolver/InvoiceFileResolverInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.