@@ -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; |
@@ -23,18 +23,21 @@ |
||
23 | 23 | * @param RequestConfiguration $requestConfiguration |
24 | 24 | * @param string $actionName |
25 | 25 | * @param ResourceInterface|null $resource |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function addSuccessFlash(RequestConfiguration $requestConfiguration, $actionName, ResourceInterface $resource = null); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * @param RequestConfiguration $requestConfiguration |
31 | 32 | * @param string $actionName |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function addErrorFlash(RequestConfiguration $requestConfiguration, $actionName); |
34 | 36 | |
35 | 37 | /** |
36 | 38 | * @param RequestConfiguration $requestConfiguration |
37 | 39 | * @param ResourceControllerEvent $event |
40 | + * @return void |
|
38 | 41 | */ |
39 | 42 | public function addFlashFromEvent(RequestConfiguration $requestConfiguration, ResourceControllerEvent $event); |
40 | 43 | } |
@@ -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, |
@@ -25,8 +25,8 @@ |
||
25 | 25 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface; |
26 | 26 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
27 | 27 | use Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface; |
28 | -use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
29 | 28 | use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface; |
29 | +use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
30 | 30 | use Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface; |
31 | 31 | use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface; |
32 | 32 | use Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface; |
@@ -23,6 +23,7 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param int $version |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function setVersion($version); |
28 | 29 | } |
@@ -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', |
@@ -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 |
@@ -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 |
@@ -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; |