@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Sylius\Component\Core\Formatter\StringInflector; |
| 18 | 18 | use Sylius\Component\Core\Model\PaymentMethodInterface; |
| 19 | 19 | use Sylius\Component\Locale\Model\LocaleInterface; |
| 20 | -use Sylius\Component\Resource\Factory\FactoryInterface; |
|
| 21 | 20 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 22 | 21 | use Symfony\Component\OptionsResolver\Options; |
| 23 | 22 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Sylius\Component\Core\Formatter\StringInflector; |
| 16 | 16 | use Sylius\Component\Locale\Model\LocaleInterface; |
| 17 | 17 | use Sylius\Component\Product\Model\ProductAttributeInterface; |
| 18 | -use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 19 | 18 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
| 20 | 19 | use Symfony\Component\OptionsResolver\Options; |
| 21 | 20 | use Symfony\Component\OptionsResolver\OptionsResolver; |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; |
| 15 | 15 | use Sylius\Component\Attribute\AttributeType\SelectAttributeType; |
| 16 | -use Sylius\Component\Attribute\AttributeType\TextAttributeType; |
|
| 17 | 16 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 18 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 19 | 18 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface; |
| 18 | 18 | use Sylius\Component\Payment\Model\PaymentMethod as BasePaymentMethod; |
| 19 | 19 | use Sylius\Component\Payment\Model\PaymentMethodTranslation; |
| 20 | -use Sylius\Component\Resource\Exception\UnsupportedMethodException; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * @author Mateusz Zalewski <[email protected]> |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $resolver |
| 67 | 67 | ->setRequired('configuration') |
| 68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
| 69 | - ->setNormalizer('choices', function(Options $options){ |
|
| 69 | + ->setNormalizer('choices', function(Options $options) { |
|
| 70 | 70 | if (is_array($options['configuration']) |
| 71 | 71 | && isset($options['configuration']['choices']) |
| 72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | return []; |
| 80 | 80 | }) |
| 81 | - ->setNormalizer('multiple', function(Options $options){ |
|
| 81 | + ->setNormalizer('multiple', function(Options $options) { |
|
| 82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
| 83 | 83 | return $options['configuration']['multiple']; |
| 84 | 84 | } |