Skip to content

Commit 4ae20db

Browse files
committed
Fix coding standards
1 parent a4150da commit 4ae20db

5 files changed

+12
-10
lines changed

src/Comparator/ItalianInvoiceableAddressComparatorDecorator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function equal(AddressInterface $firstAddress, AddressInterface $secondAd
2929
__METHOD__,
3030
ItalianInvoiceableAddressInterface::class,
3131
get_debug_type($firstAddress),
32-
get_debug_type($secondAddress)
33-
)
32+
get_debug_type($secondAddress),
33+
),
3434
);
3535
}
3636

src/Form/Extension/ItalianInvoiceableAddressTypeExtension.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,39 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
2626
'multiple' => false,
2727
'required' => true,
2828
'placeholder' => false,
29-
]
29+
],
3030
)
3131
->add(
3232
'taxCode',
3333
TextType::class,
3434
[
3535
'label' => 'webgriffe_sylius_italian_invoiceable_order.form.address.tax_code.label',
3636
'required' => false,
37-
]
37+
],
3838
)
3939
->add(
4040
'vatNumber',
4141
TextType::class,
4242
[
4343
'label' => 'webgriffe_sylius_italian_invoiceable_order.form.address.vat_number.label',
4444
'required' => false,
45-
]
45+
],
4646
)
4747
->add(
4848
'sdiCode',
4949
TextType::class,
5050
[
5151
'label' => 'webgriffe_sylius_italian_invoiceable_order.form.address.sdi_code.label',
5252
'required' => false,
53-
]
53+
],
5454
)
5555
->add(
5656
'pecAddress',
5757
TextType::class,
5858
[
5959
'label' => 'webgriffe_sylius_italian_invoiceable_order.form.address.pec_address.label',
6060
'required' => false,
61-
]
61+
],
6262
)
6363
;
6464
}

src/Model/ItalianTaxCalculationStrategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function assertApplicatorsHaveCorrectType(array $applicators): void
6565
Assert::allIsInstanceOf(
6666
$applicators,
6767
OrderTaxesApplicatorInterface::class,
68-
'Order taxes applicator should have type "%2$s". Got: %s'
68+
'Order taxes applicator should have type "%2$s". Got: %s',
6969
);
7070
}
7171

src/Validator/Constraints/ItalianTaxCodeValidator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function validate(mixed $value, Constraint $constraint): void
2929
if (!self::isValidItalian16CharsTaxCode($value) && !ItalianVatNumberValidator::isValidItalianVatNumber($value)) {
3030
$this->context->buildViolation($constraint->message)
3131
->setParameter('{{ string }}', $value)
32-
->addViolation();
32+
->addViolation()
33+
;
3334
}
3435
}
3536

src/Validator/Constraints/ItalianVatNumberValidator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public function validate(mixed $value, Constraint $constraint): void
2828
if (!self::isValidItalianVatNumber($value)) {
2929
$this->context->buildViolation($constraint->message)
3030
->setParameter('{{ string }}', $value)
31-
->addViolation();
31+
->addViolation()
32+
;
3233
}
3334
}
3435

0 commit comments

Comments
 (0)