@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->findDefinition('sylius.registry.grid_driver'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['alias'])) { |
|
35 | + if (!isset($attributes[0]['alias'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -124,7 +124,8 @@ |
||
124 | 124 | if (isset($options['suffix'])) { |
125 | 125 | $suffix = $options['suffix']; |
126 | 126 | |
127 | - if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith |
|
127 | + if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { |
|
128 | +//endsWith |
|
128 | 129 | $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix)); |
129 | 130 | } |
130 | 131 | } |
@@ -28,7 +28,8 @@ |
||
28 | 28 | */ |
29 | 29 | class ThemeAwareTranslatorSpec extends ObjectBehavior |
30 | 30 | { |
31 | - function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) { |
|
31 | + function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) |
|
32 | + { |
|
32 | 33 | $translator->implement(TranslatorBagInterface::class); |
33 | 34 | |
34 | 35 | $this->beConstructedWith($translator, $themeContext); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
33 | 33 | |
34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
35 | - if (!isset($attributes[0]['type'])) { |
|
35 | + if (!isset($attributes[0]['type'])) { |
|
36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
37 | 37 | } |
38 | 38 |
@@ -65,8 +65,7 @@ |
||
65 | 65 | |
66 | 66 | function is_configures_options( |
67 | 67 | OptionsResolver $resolver |
68 | - ) |
|
69 | - { |
|
68 | + ) { |
|
70 | 69 | $resolver->setDefaults([ |
71 | 70 | 'format' => 'Y:m:d H:i:s' |
72 | 71 | ])->shouldBeCalled(); |
@@ -144,7 +144,8 @@ |
||
144 | 144 | /** |
145 | 145 | * {@inheritdoc} |
146 | 146 | */ |
147 | - public function getValidationMessageForImageAtPlace($place) { |
|
147 | + public function getValidationMessageForImageAtPlace($place) |
|
148 | + { |
|
148 | 149 | |
149 | 150 | $images = $this->getImageElements(); |
150 | 151 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | function it_throws_unexpected_type_excepotion_if_data_is_not_customer_type( |
46 | 46 | FormEvent $event, |
47 | 47 | ShopUserInterface $user |
48 | - ){ |
|
48 | + ) { |
|
49 | 49 | $event->getData()->willReturn($user); |
50 | 50 | |
51 | 51 | $this->shouldThrow(UnexpectedTypeException::class)->during('submit', [$event]); |
@@ -50,7 +50,8 @@ |
||
50 | 50 | $resolver->setDefault('validation_groups', function (FormInterface $form) { |
51 | 51 | $validationGroups = $this->validationGroups; |
52 | 52 | |
53 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
53 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
54 | +// Validate the coupon if it was sent |
|
54 | 55 | $validationGroups[] = 'sylius_promotion_coupon'; |
55 | 56 | } |
56 | 57 |