@@ -62,8 +62,7 @@ discard block |
||
62 | 62 | function it_filters_data_containing_empty_strings( |
63 | 63 | DataSourceInterface $dataSource, |
64 | 64 | ExpressionBuilderInterface $expressionBuilder |
65 | - ) |
|
66 | - { |
|
65 | + ) { |
|
67 | 66 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
68 | 67 | |
69 | 68 | $expressionBuilder->isNull('firstName')->willReturn('EXPR'); |
@@ -87,8 +86,7 @@ discard block |
||
87 | 86 | function it_filters_data_containing_a_string( |
88 | 87 | DataSourceInterface $dataSource, |
89 | 88 | ExpressionBuilderInterface $expressionBuilder |
90 | - ) |
|
91 | - { |
|
89 | + ) { |
|
92 | 90 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
93 | 91 | |
94 | 92 | $expressionBuilder->like('firstName', '%John%')->willReturn('EXPR'); |
@@ -660,7 +660,7 @@ |
||
660 | 660 | Assert::true( |
661 | 661 | $this->createPage->isUserFormHidden(), |
662 | 662 | 'There should not be password field, but it is.' |
663 | - ); |
|
663 | + ); |
|
664 | 664 | } |
665 | 665 | |
666 | 666 | /** |
@@ -197,7 +197,7 @@ |
||
197 | 197 | return |
198 | 198 | (stripos($elementText, $customerName) !== false) && |
199 | 199 | (stripos($elementText, $street) !== false) && |
200 | - (stripos($elementText, $city.', '.$postcode) !== false) && |
|
200 | + (stripos($elementText, $city . ', ' . $postcode) !== false) && |
|
201 | 201 | (stripos($elementText, $countryName) !== false) |
202 | 202 | ; |
203 | 203 | } |
@@ -100,25 +100,25 @@ |
||
100 | 100 | /** |
101 | 101 | * {@inheritdoc} |
102 | 102 | */ |
103 | - public function isNextStepButtonUnavailable() |
|
104 | - { |
|
105 | - return $this->getElement('next_step')->hasClass('disabled'); |
|
106 | - } |
|
103 | + public function isNextStepButtonUnavailable() |
|
104 | + { |
|
105 | + return $this->getElement('next_step')->hasClass('disabled'); |
|
106 | + } |
|
107 | 107 | |
108 | 108 | /** |
109 | 109 | * {@inheritdoc} |
110 | 110 | */ |
111 | - public function getPaymentMethods() |
|
112 | - { |
|
113 | - $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label'); |
|
111 | + public function getPaymentMethods() |
|
112 | + { |
|
113 | + $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label'); |
|
114 | 114 | |
115 | - $paymentMethods = []; |
|
116 | - foreach ($inputs as $input) { |
|
117 | - $paymentMethods[] = trim($input->getText()); |
|
118 | - } |
|
115 | + $paymentMethods = []; |
|
116 | + foreach ($inputs as $input) { |
|
117 | + $paymentMethods[] = trim($input->getText()); |
|
118 | + } |
|
119 | 119 | |
120 | - return $paymentMethods; |
|
121 | - } |
|
120 | + return $paymentMethods; |
|
121 | + } |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * {@inheritdoc} |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -12,9 +12,9 @@ |
||
12 | 12 | use Composer\Autoload\ClassLoader; |
13 | 13 | use Doctrine\Common\Annotations\AnnotationRegistry; |
14 | 14 | |
15 | -$loader = require __DIR__.'/../../vendor/autoload.php'; |
|
15 | +$loader = require __DIR__ . '/../../vendor/autoload.php'; |
|
16 | 16 | |
17 | -require __DIR__.'/AppKernel.php'; |
|
17 | +require __DIR__ . '/AppKernel.php'; |
|
18 | 18 | |
19 | 19 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
20 | 20 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
46 | 46 | { |
47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -12,9 +12,9 @@ |
||
12 | 12 | use Composer\Autoload\ClassLoader; |
13 | 13 | use Doctrine\Common\Annotations\AnnotationRegistry; |
14 | 14 | |
15 | -$loader = require __DIR__.'/../../vendor/autoload.php'; |
|
15 | +$loader = require __DIR__ . '/../../vendor/autoload.php'; |
|
16 | 16 | |
17 | -require __DIR__.'/AppKernel.php'; |
|
17 | +require __DIR__ . '/AppKernel.php'; |
|
18 | 18 | |
19 | 19 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
20 | 20 |
@@ -47,7 +47,8 @@ |
||
47 | 47 | { |
48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
51 | +// Validate the coupon if it was sent |
|
51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
52 | 53 | } |
53 | 54 |