@@ -354,6 +354,7 @@ discard block |
||
| 354 | 354 | |
| 355 | 355 | /** |
| 356 | 356 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
| 357 | + * @param integer $discount |
|
| 357 | 358 | */ |
| 358 | 359 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
| 359 | 360 | { |
@@ -677,6 +678,7 @@ discard block |
||
| 677 | 678 | |
| 678 | 679 | /** |
| 679 | 680 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order over ("(?:€|£|\$)[^"]+")$/ |
| 681 | + * @param integer $discount |
|
| 680 | 682 | */ |
| 681 | 683 | public function itGivesDiscountOnShippingToEveryOrderOver( |
| 682 | 684 | PromotionInterface $promotion, |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function getDriver(): string; |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @return ?string |
|
| 52 | + * @return string |
|
| 53 | 53 | */ |
| 54 | 54 | public function getTemplatesNamespace(): ?string; |
| 55 | 55 | |
@@ -25,10 +25,17 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @param bool $enabled |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function setEnabled(?bool $enabled): void; |
| 30 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 31 | 35 | public function enable(): void; |
| 32 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 33 | 40 | public function disable(): void; |
| 34 | 41 | } |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | public function getFunctions(): array |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | - new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | + new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | + new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $name |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setName(?string $name): void; |
| 32 | 33 | } |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface; |
| 28 | 28 | use Sylius\Bundle\ResourceBundle\Controller\ResourceDeleteHandlerInterface; |
| 29 | 29 | use Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface; |
| 30 | -use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 31 | 30 | use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface; |
| 31 | +use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 32 | 32 | use Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface; |
| 33 | 33 | use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface; |
| 34 | 34 | use Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface; |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Sylius\Bundle\CoreBundle\Collector; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Bundle\CoreBundle\Application\Kernel; |
| 17 | -use Sylius\Component\Channel\Context\ChannelNotFoundException; |
|
| 18 | 17 | use Sylius\Component\Core\Context\ShopperContextInterface; |
| 19 | 18 | use Sylius\Component\Core\Model\ChannelInterface; |
| 20 | 19 | use Sylius\Component\Currency\Context\CurrencyNotFoundException; |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |
| 187 | -EOT; |
|
| 187 | +eot; |
|
| 188 | 188 | |
| 189 | 189 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 190 | 190 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | { |
| 205 | 205 | "code": "fluffy_pets" |
| 206 | 206 | } |
| 207 | -EOT; |
|
| 207 | +eot; |
|
| 208 | 208 | |
| 209 | 209 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 210 | 210 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | } |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | -EOT; |
|
| 240 | +eot; |
|
| 241 | 241 | |
| 242 | 242 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 243 | 243 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | "code": "horror", |
| 261 | 261 | "parent": "books" |
| 262 | 262 | } |
| 263 | -EOT; |
|
| 263 | +eot; |
|
| 264 | 264 | |
| 265 | 265 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 266 | 266 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | ] |
| 303 | 303 | } |
| 304 | -EOT; |
|
| 304 | +eot; |
|
| 305 | 305 | |
| 306 | 306 | $this->client->request('POST', '/api/v1/taxons/', [], [ |
| 307 | 307 | 'images' => [ |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | }, |
| 336 | 336 | "parent": "books" |
| 337 | 337 | } |
| 338 | -EOT; |
|
| 338 | +eot; |
|
| 339 | 339 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 340 | 340 | $response = $this->client->getResponse(); |
| 341 | 341 | |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | } |
| 363 | 363 | } |
| 364 | 364 | } |
| 365 | -EOT; |
|
| 365 | +eot; |
|
| 366 | 366 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 367 | 367 | $response = $this->client->getResponse(); |
| 368 | 368 | |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | } |
| 390 | 390 | } |
| 391 | 391 | } |
| 392 | -EOT; |
|
| 392 | +eot; |
|
| 393 | 393 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 394 | 394 | $response = $this->client->getResponse(); |
| 395 | 395 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | } |
| 416 | 416 | } |
| 417 | 417 | } |
| 418 | -EOT; |
|
| 418 | +eot; |
|
| 419 | 419 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 420 | 420 | $response = $this->client->getResponse(); |
| 421 | 421 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | } |
| 462 | 462 | ] |
| 463 | 463 | } |
| 464 | -EOT; |
|
| 464 | +eot; |
|
| 465 | 465 | |
| 466 | 466 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 467 | 467 | |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | } |
| 492 | 492 | ] |
| 493 | 493 | } |
| 494 | -EOT; |
|
| 494 | +eot; |
|
| 495 | 495 | |
| 496 | 496 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
| 497 | 497 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | ] |
| 86 | 86 | } |
| 87 | -EOT; |
|
| 87 | +eot; |
|
| 88 | 88 | |
| 89 | 89 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 90 | 90 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | ] |
| 176 | 176 | } |
| 177 | -EOT; |
|
| 177 | +eot; |
|
| 178 | 178 | |
| 179 | 179 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | ] |
| 217 | 217 | } |
| 218 | -EOT; |
|
| 218 | +eot; |
|
| 219 | 219 | |
| 220 | 220 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
| 221 | 221 | |