Skip to content

Commit

Permalink
gh-checks: php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Apr 25, 2024
1 parent 7cc33fe commit bd874f7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/PrestaShopBundle/Form/Admin/Sell/Catalog/AttributeType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
Expand Down Expand Up @@ -35,7 +36,6 @@
use PrestaShop\PrestaShop\Core\Context\LanguageContext;
use PrestaShop\PrestaShop\Core\Context\ShopContext;
use PrestaShop\PrestaShop\Core\Domain\AttributeGroup\ValueObject\AttributeGroupId;
use PrestaShop\PrestaShop\Core\Domain\AttributeGroup\ValueObject\AttributeGroupType;
use PrestaShop\PrestaShop\Core\Domain\Language\ValueObject\LanguageId;
use PrestaShop\PrestaShop\Core\Domain\Shop\ValueObject\ShopConstraint;
use PrestaShop\PrestaShop\Core\Domain\Shop\ValueObject\ShopId;
Expand Down Expand Up @@ -109,13 +109,16 @@ public function buildForm(FormBuilderInterface $builder, array $options)
])
->add('color', ColorType::class, [
'label' => $this->trans('Color', 'Admin.Global'),
'row_attr' => array(
'class' => 'js-attribute-type-color-form-row'),
'row_attr' => [
'class' => 'js-attribute-type-color-form-row',
],
'required' => false,
])->add('texture', FileType::class, [
])
->add('texture', FileType::class, [
'label' => $this->trans('Texture', 'Admin.Global'),
'row_attr' => array(
'class' => 'js-attribute-type-texture-form-row'),
'row_attr' => [
'class' => 'js-attribute-type-texture-form-row',
],
'required' => false,
]);

Expand All @@ -126,7 +129,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'constraints' => [
new NotBlank([
'message' => $this->trans(
'This field cannot be empty.', 'Admin.Notifications.Error'
'This field cannot be empty.',
'Admin.Notifications.Error'
),
]),
],
Expand Down

0 comments on commit bd874f7

Please sign in to comment.