@@ -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 |
@@ -102,8 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | private function createChoiceList() |
104 | 104 | { |
105 | - return function (Options $options) |
|
106 | - { |
|
105 | + return function (Options $options) { |
|
107 | 106 | if (isset($options['subject'])) { |
108 | 107 | $resolvedMethods = $this->paymentMethodsResolver->getSupportedMethods($options['subject']); |
109 | 108 | } else { |
@@ -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(); |
@@ -318,7 +318,7 @@ |
||
318 | 318 | */ |
319 | 319 | private function waitForElement($timeout, $elementName) |
320 | 320 | { |
321 | - return $this->getDocument()->waitFor($timeout, function () use ($elementName){ |
|
321 | + return $this->getDocument()->waitFor($timeout, function () use ($elementName) { |
|
322 | 322 | return $this->hasElement($elementName); |
323 | 323 | }); |
324 | 324 | } |
@@ -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 |