@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\ShippingMethod; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Order; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Order; |
15 | 15 | |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | (stripos($elementText, $customerName) !== false) && |
492 | 492 | (stripos($elementText, $street) !== false) && |
493 | 493 | (stripos($elementText, $city) !== false) && |
494 | - (stripos($elementText, $countryName.' '.$postcode) !== false) |
|
494 | + (stripos($elementText, $countryName . ' ' . $postcode) !== false) |
|
495 | 495 | ; |
496 | 496 | } |
497 | 497 | |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | ['item' => $itemName] |
509 | 509 | ); |
510 | 510 | |
511 | - return $rows[0]->find('css', '.'.$property)->getText(); |
|
511 | + return $rows[0]->find('css', '.' . $property)->getText(); |
|
512 | 512 | } |
513 | 513 | |
514 | 514 | /** |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Order; |
15 | 15 | |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | */ |
48 | 48 | private function specifyAddress(AddressInterface $address, $addressType) |
49 | 49 | { |
50 | - $this->specifyElementValue($addressType.'_first_name', $address->getFirstName()); |
|
51 | - $this->specifyElementValue($addressType.'_last_name', $address->getLastName()); |
|
52 | - $this->specifyElementValue($addressType.'_street', $address->getStreet()); |
|
53 | - $this->specifyElementValue($addressType.'_city', $address->getCity()); |
|
54 | - $this->specifyElementValue($addressType.'_postcode', $address->getPostcode()); |
|
50 | + $this->specifyElementValue($addressType . '_first_name', $address->getFirstName()); |
|
51 | + $this->specifyElementValue($addressType . '_last_name', $address->getLastName()); |
|
52 | + $this->specifyElementValue($addressType . '_street', $address->getStreet()); |
|
53 | + $this->specifyElementValue($addressType . '_city', $address->getCity()); |
|
54 | + $this->specifyElementValue($addressType . '_postcode', $address->getPostcode()); |
|
55 | 55 | |
56 | 56 | $this->chooseCountry($address->getCountryCode(), $addressType); |
57 | 57 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | private function chooseCountry($country, $addressType) |
118 | 118 | { |
119 | - $this->getElement($addressType.'_country')->selectOption((null !== $country) ? $country : 'Select'); |
|
119 | + $this->getElement($addressType . '_country')->selectOption((null !== $country) ? $country : 'Select'); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Account; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\TaxCategory; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Promotion; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Taxon; |
15 | 15 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | $imageForm = $this->getLastImageElement(); |
123 | 123 | $imageForm->fillField('Type', $type); |
124 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
124 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Admin\Taxon; |
15 | 15 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $imageForm->fillField('Type', $type); |
85 | 85 | } |
86 | 86 | |
87 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
87 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $filesPath = $this->getParameter('files_path'); |
162 | 162 | |
163 | 163 | $imageForm = $this->getImageElementByType($type); |
164 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
164 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | private function getImageElementByType($type) |
320 | 320 | { |
321 | 321 | $images = $this->getElement('images'); |
322 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
322 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
323 | 323 | |
324 | 324 | if (null === $typeInput) { |
325 | 325 | return null; |