@@ -44,11 +44,13 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param ImageInterface $image |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function addImage(ProductImageInterface $image); |
49 | 50 | |
50 | 51 | /** |
51 | 52 | * @param ImageInterface $image |
53 | + * @return void |
|
52 | 54 | */ |
53 | 55 | public function removeImage(ProductImageInterface $image); |
54 | 56 | } |
@@ -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\Component\Core\Model; |
15 | 15 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | "channel": "CHANNEL", |
48 | 48 | "localeCode": "en_US" |
49 | 49 | } |
50 | -EOT; |
|
50 | +eot; |
|
51 | 51 | |
52 | 52 | $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data); |
53 | 53 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | "variant": "MUG_SW", |
72 | 72 | "quantity": 1 |
73 | 73 | } |
74 | -EOT; |
|
74 | +eot; |
|
75 | 75 | |
76 | 76 | $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
77 | 77 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | }, |
106 | 106 | "differentBillingAddress": true |
107 | 107 | } |
108 | -EOT; |
|
108 | +eot; |
|
109 | 109 | |
110 | 110 | $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId); |
111 | 111 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | ] |
135 | 135 | } |
136 | -EOT; |
|
136 | +eot; |
|
137 | 137 | |
138 | 138 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
139 | 139 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | ] |
162 | 162 | } |
163 | -EOT; |
|
163 | +eot; |
|
164 | 164 | |
165 | 165 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
166 | 166 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT); |
@@ -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\Tests\Controller; |
15 | 15 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | ]; |
82 | 82 | |
83 | 83 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
84 | - $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone){ |
|
84 | + $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone) { |
|
85 | 85 | return $zone->getId() !== $subZone->getId(); |
86 | 86 | }; |
87 | 87 | } |
@@ -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\Bundle\AddressingBundle\Form\Type; |
15 | 15 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ]; |
84 | 84 | |
85 | 85 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
86 | - $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone){ |
|
86 | + $entryOptions['entry_options']['choice_filter'] = function (ZoneInterface $subZone) use ($zone){ |
|
87 | 87 | return $zone->getId() !== $subZone->getId(); |
88 | 88 | }; |
89 | 89 | } |
@@ -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\Tests\Controller; |
15 | 15 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
49 | 49 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
50 | 50 | |
51 | - $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
51 | + $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
52 | 52 | |
53 | 53 | $response = $this->client->getResponse(); |
54 | 54 | $this->assertResponse($response, 'province/show_response', Response::HTTP_OK); |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
63 | 63 | $countryData = $this->loadFixturesFromFile('resources/countries.yml'); |
64 | 64 | |
65 | - $this->client->request('DELETE', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
65 | + $this->client->request('DELETE', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
66 | 66 | |
67 | 67 | $response = $this->client->getResponse(); |
68 | 68 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
69 | 69 | |
70 | - $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
70 | + $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
71 | 71 | |
72 | 72 | $response = $this->client->getResponse(); |
73 | 73 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -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 | use Symfony\Component\Debug\Debug; |
15 | 15 | use Symfony\Component\HttpFoundation\Request; |
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
30 | 30 | )) { |
31 | 31 | header('HTTP/1.0 403 Forbidden'); |
32 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
32 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** @var \Composer\Autoload\ClassLoader $loader */ |
36 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
37 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
36 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
37 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
38 | 38 | |
39 | 39 | Debug::enable(); |
40 | 40 |
@@ -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 | use Symfony\Component\HttpFoundation\Request; |
15 | 15 | |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | /** @var \Composer\Autoload\ClassLoader $loader */ |
22 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
23 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
22 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
23 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
24 | 24 | |
25 | 25 | $kernel = new AppKernel('prod', false); |
26 | 26 | $kernel->loadClassCache(); |
@@ -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 | use Symfony\Component\HttpFoundation\Request; |
15 | 15 | |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
24 | 24 | ) { |
25 | 25 | header('HTTP/1.0 403 Forbidden'); |
26 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
26 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** @var \Composer\Autoload\ClassLoader $loader */ |
30 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
31 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
30 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
31 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
32 | 32 | |
33 | 33 | $kernel = new AppKernel('test_cached', false); |
34 | 34 | $kernel->loadClassCache(); |
@@ -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 | use Symfony\Component\Debug\Debug; |
15 | 15 | use Symfony\Component\HttpFoundation\Request; |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
25 | 25 | ) { |
26 | 26 | header('HTTP/1.0 403 Forbidden'); |
27 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
27 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** @var \Composer\Autoload\ClassLoader $loader */ |
31 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
32 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
31 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
32 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
33 | 33 | |
34 | 34 | Debug::enable(); |
35 | 35 |
@@ -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 | use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; |
15 | 15 |