@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | "name": "Clothing", |
63 | 63 | "description": "All items classified as clothing." |
64 | 64 | } |
65 | -EOT; |
|
65 | +eot; |
|
66 | 66 | |
67 | 67 | $this->client->request('POST', '/api/v1/tax-categories/', [], [], [ |
68 | 68 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | "name": "Clothing & Accessories", |
254 | 254 | "description": "All items classified as clothing with accessories." |
255 | 255 | } |
256 | -EOT; |
|
256 | +eot; |
|
257 | 257 | |
258 | 258 | $this->client->request('PUT', $this->getTaxCategoryUrl($taxCategory), [], [], [ |
259 | 259 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | { |
295 | 295 | "name": "Clothing & Accessories" |
296 | 296 | } |
297 | -EOT; |
|
297 | +eot; |
|
298 | 298 | |
299 | 299 | $this->client->request('PATCH', $this->getTaxCategoryUrl($taxCategory), [], [], [ |
300 | 300 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -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 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | { |
185 | 185 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
186 | 186 | $taxCategories = $this->loadFixturesFromFile('resources/tax_categories.yml'); |
187 | - $taxCategory = $taxCategories['tax_category_1']; |
|
187 | + $taxCategory = $taxCategories['tax_category_1']; |
|
188 | 188 | |
189 | 189 | $this->client->request('GET', $this->getTaxCategoryUrl($taxCategory), [], [], [ |
190 | 190 | 'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ', |
@@ -11,9 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\OrderBundle\Controller; |
13 | 13 | |
14 | -use Doctrine\ORM\EntityManager; |
|
15 | 14 | use FOS\RestBundle\View\View; |
16 | -use Payum\Core\Registry\RegistryInterface; |
|
17 | 15 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; |
18 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
19 | 17 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
@@ -27,7 +25,6 @@ discard block |
||
27 | 25 | use Symfony\Component\HttpFoundation\Request; |
28 | 26 | use Symfony\Component\HttpFoundation\Response; |
29 | 27 | use Symfony\Component\HttpKernel\Exception\HttpException; |
30 | -use Webmozart\Assert\Assert; |
|
31 | 28 | |
32 | 29 | class OrderController extends ResourceController |
33 | 30 | { |
@@ -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\Bundle\OrderBundle\Controller; |
15 | 15 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @param mixed $subjects |
53 | - * @param array|string[] $associationsPaths |
|
53 | + * @param string[] $associationsPaths |
|
54 | 54 | */ |
55 | 55 | public function hydrateAssociations($subjects, array $associationsPaths) |
56 | 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\Bundle\CoreBundle\Doctrine\ORM; |
15 | 15 |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Component\Channel\Context\ChannelContextInterface; |
15 | 15 | use Sylius\Component\Channel\Context\ChannelNotFoundException; |
16 | -use Sylius\Component\Core\Model\OrderInterface; |
|
17 | 16 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
18 | 17 | use Sylius\Component\Order\Context\CartContextInterface; |
19 | 18 | use Sylius\Component\Order\Context\CartNotFoundException; |
@@ -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\Bundle\CoreBundle\Context; |
15 | 15 |
@@ -23,6 +23,7 @@ |
||
23 | 23 | * @param ResourceInterface $resource |
24 | 24 | * @param RequestConfiguration $requestConfiguration |
25 | 25 | * @param ObjectManager $manager |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function handle( |
28 | 29 | ResourceInterface $resource, |
@@ -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\Bundle\ResourceBundle\Controller; |
15 | 15 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | "code": "BE" |
74 | 74 | } |
75 | -EOT; |
|
75 | +eot; |
|
76 | 76 | |
77 | 77 | $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data); |
78 | 78 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | ] |
100 | 100 | } |
101 | -EOT; |
|
101 | +eot; |
|
102 | 102 | |
103 | 103 | $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data); |
104 | 104 |
@@ -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 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | "sourceCurrency": "EUR", |
76 | 76 | "targetCurrency": "GBP" |
77 | 77 | } |
78 | -EOT; |
|
78 | +eot; |
|
79 | 79 | |
80 | 80 | $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data); |
81 | 81 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | "sourceCurrency": "EUR", |
99 | 99 | "targetCurrency": "GBP" |
100 | 100 | } |
101 | -EOT; |
|
101 | +eot; |
|
102 | 102 | |
103 | 103 | $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data); |
104 | 104 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | { |
230 | 230 | "ratio": 0.84 |
231 | 231 | } |
232 | -EOT; |
|
232 | +eot; |
|
233 | 233 | |
234 | 234 | $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
235 | 235 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | "sourceCurrency": "GBP", |
262 | 262 | "targetCurrency": "EUR" |
263 | 263 | } |
264 | -EOT; |
|
264 | +eot; |
|
265 | 265 | |
266 | 266 | $this->client->request('PATCH', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
267 | 267 | |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | { |
291 | 291 | "ratio": "its-a-trap" |
292 | 292 | } |
293 | -EOT; |
|
293 | +eot; |
|
294 | 294 | |
295 | 295 | $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
296 | 296 |
@@ -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 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption; |
15 | 15 | use Sylius\Component\Attribute\AttributeType\SelectAttributeType; |
16 | 16 | use Sylius\Component\Core\Formatter\StringInflector; |
17 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
18 | 17 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
19 | 18 | use Sylius\Component\Core\Model\ImageInterface; |
20 | 19 | use Sylius\Component\Core\Model\ProductInterface; |
@@ -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\Bundle\CoreBundle\Fixture\Factory; |
15 | 15 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Sylius\Component\Core\Model; |
4 | 4 | |
5 | -use Sylius\Component\Channel\Model\ChannelAwareInterface; |
|
6 | 5 | use Sylius\Component\Resource\Model\ResourceInterface; |
7 | 6 | |
8 | 7 | /** |
@@ -27,6 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param ProductVariantInterface|null $productVariant |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setProductVariant(ProductVariantInterface $productVariant = null); |
32 | 33 | |
@@ -37,6 +38,7 @@ discard block |
||
37 | 38 | |
38 | 39 | /** |
39 | 40 | * @param int $price |
41 | + * @return void |
|
40 | 42 | */ |
41 | 43 | public function setPrice($price); |
42 | 44 | |
@@ -47,6 +49,7 @@ discard block |
||
47 | 49 | |
48 | 50 | /** |
49 | 51 | * @param string $channelCode |
52 | + * @return void |
|
50 | 53 | */ |
51 | 54 | public function setChannelCode($channelCode); |
52 | 55 | |
@@ -57,6 +60,7 @@ discard block |
||
57 | 60 | |
58 | 61 | /** |
59 | 62 | * @param int $originalPrice |
63 | + * @return void |
|
60 | 64 | */ |
61 | 65 | public function setOriginalPrice($originalPrice); |
62 | 66 |
@@ -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 |