@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
90 | 90 | { |
91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
173 | 173 | { |
174 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false); |
|
174 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -299,7 +299,7 @@ |
||
299 | 299 | public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element) |
300 | 300 | { |
301 | 301 | Assert::same( |
302 | - $this->createPage->getValidationMessage('paypal_'.$element), |
|
302 | + $this->createPage->getValidationMessage('paypal_' . $element), |
|
303 | 303 | sprintf('Please enter paypal %s.', $element) |
304 | 304 | ); |
305 | 305 | } |
@@ -491,7 +491,7 @@ |
||
491 | 491 | } |
492 | 492 | EOT; |
493 | 493 | |
494 | - $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon) , [], [], static::$authorizedHeaderWithContentType, $data); |
|
494 | + $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
|
495 | 495 | |
496 | 496 | $response = $this->client->getResponse(); |
497 | 497 | $this->assertResponse($response, 'taxon/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |
@@ -182,7 +182,7 @@ |
||
182 | 182 | { |
183 | 183 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
184 | 184 | $taxCategories = $this->loadFixturesFromFile('resources/tax_categories.yml'); |
185 | - $taxCategory = $taxCategories['tax_category_1']; |
|
185 | + $taxCategory = $taxCategories['tax_category_1']; |
|
186 | 186 | |
187 | 187 | $this->client->request('GET', $this->getTaxCategoryUrl($taxCategory), [], [], [ |
188 | 188 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -85,7 +85,7 @@ |
||
85 | 85 | 'targetEntity' => $reviewableEntity, |
86 | 86 | 'inversedBy' => 'reviews', |
87 | 87 | 'joinColumns' => [[ |
88 | - 'name' => $subject.'_id', |
|
88 | + 'name' => $subject . '_id', |
|
89 | 89 | 'referencedColumnName' => $reviewableEntityMetadata->fieldMappings['id']['columnName'], |
90 | 90 | 'nullable' => false, |
91 | 91 | 'onDelete' => 'CASCADE', |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
148 | 148 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
149 | 149 | |
150 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
150 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
151 | 151 | |
152 | 152 | $response = $this->client->getResponse(); |
153 | 153 | $this->assertResponse($response, 'zone/show_response', Response::HTTP_OK); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $this->loadFixturesFromFile('resources/countries.yml'); |
187 | 187 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
188 | 188 | |
189 | - $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
189 | + $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
190 | 190 | |
191 | 191 | $response = $this->client->getResponse(); |
192 | 192 | $this->assertResponse($response, 'zone/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |
@@ -214,12 +214,12 @@ discard block |
||
214 | 214 | } |
215 | 215 | EOT; |
216 | 216 | |
217 | - $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
217 | + $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
218 | 218 | |
219 | 219 | $response = $this->client->getResponse(); |
220 | 220 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
221 | 221 | |
222 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
222 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
223 | 223 | |
224 | 224 | $response = $this->client->getResponse(); |
225 | 225 | $this->assertResponse($response, 'zone/update_response', Response::HTTP_OK); |
@@ -265,12 +265,12 @@ discard block |
||
265 | 265 | } |
266 | 266 | EOT; |
267 | 267 | |
268 | - $this->client->request('PATCH', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
268 | + $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
269 | 269 | |
270 | 270 | $response = $this->client->getResponse(); |
271 | 271 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
272 | 272 | |
273 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
273 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
274 | 274 | |
275 | 275 | $response = $this->client->getResponse(); |
276 | 276 | $this->assertResponse($response, 'zone/update_partially_response', Response::HTTP_OK); |
@@ -308,12 +308,12 @@ discard block |
||
308 | 308 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
309 | 309 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
310 | 310 | |
311 | - $this->client->request('DELETE', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
311 | + $this->client->request('DELETE', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
312 | 312 | |
313 | 313 | $response = $this->client->getResponse(); |
314 | 314 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
315 | 315 | |
316 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
316 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
317 | 317 | |
318 | 318 | $response = $this->client->getResponse(); |
319 | 319 | $this->assertResponseCode($response, Response::HTTP_NOT_FOUND); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $this |
23 | 23 | ->add(new Requirement( |
24 | 24 | $translator->trans('sylius.installer.filesystem.vendors', []), |
25 | - is_dir($root.'/../vendor') |
|
25 | + is_dir($root . '/../vendor') |
|
26 | 26 | )) |
27 | 27 | ->add(new Requirement( |
28 | 28 | $translator->trans('sylius.installer.filesystem.cache.header', []), |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $builder->add((string) $option->getCode(), ProductOptionValueChoiceType::class, [ |
49 | 49 | 'label' => $option->getName() ?: $option->getCode(), |
50 | 50 | 'option' => $option, |
51 | - 'property_path' => '['.$i.']', |
|
51 | + 'property_path' => '[' . $i . ']', |
|
52 | 52 | 'block_name' => 'entry', |
53 | 53 | ]); |
54 | 54 | } |
@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | $this->addItemToCart($cartId); |
109 | 109 | |
110 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
110 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
111 | 111 | |
112 | 112 | $this->addressOrder($cartId); |
113 | 113 | $this->selectOrderShippingMethod($cartId); |