@@ -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; |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\ORM; |
| 13 | 13 | |
| 14 | -use Doctrine\ORM\Query\Expr\Comparison; |
|
| 15 | 14 | use Doctrine\ORM\QueryBuilder; |
| 15 | +use Doctrine\ORM\Query\Expr\Comparison; |
|
| 16 | 16 | use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -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; |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | use Sylius\Component\Resource\Model\VersionedInterface; |
| 18 | 18 | use Sylius\Component\Shipping\Model\ShippableInterface; |
| 19 | 19 | use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
| 20 | -use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 21 | 20 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
| 21 | +use Sylius\Component\Taxation\Model\TaxableInterface; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -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 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | { |
| 159 | 159 | "code": "MONSTER_MUG" |
| 160 | 160 | } |
| 161 | -EOT; |
|
| 161 | +eot; |
|
| 162 | 162 | |
| 163 | 163 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 164 | 164 | $response = $this->client->getResponse(); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | -EOT; |
|
| 211 | +eot; |
|
| 212 | 212 | |
| 213 | 213 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 214 | 214 | $response = $this->client->getResponse(); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | ] |
| 244 | 244 | } |
| 245 | -EOT; |
|
| 245 | +eot; |
|
| 246 | 246 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 247 | 247 | $response = $this->client->getResponse(); |
| 248 | 248 | |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | "tracked": true, |
| 268 | 268 | "onHand": 5 |
| 269 | 269 | } |
| 270 | -EOT; |
|
| 270 | +eot; |
|
| 271 | 271 | |
| 272 | 272 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 273 | 273 | $response = $this->client->getResponse(); |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | "code": "MONSTER_MUG", |
| 294 | 294 | "taxCategory": "TC1" |
| 295 | 295 | } |
| 296 | -EOT; |
|
| 296 | +eot; |
|
| 297 | 297 | |
| 298 | 298 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 299 | 299 | $response = $this->client->getResponse(); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | "code": "MONSTER_MUG", |
| 320 | 320 | "shippingCategory": "SC1" |
| 321 | 321 | } |
| 322 | -EOT; |
|
| 322 | +eot; |
|
| 323 | 323 | |
| 324 | 324 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 325 | 325 | $response = $this->client->getResponse(); |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | "MUG_TYPE": "MUG_TYPE_MEDIUM" |
| 348 | 348 | } |
| 349 | 349 | } |
| 350 | -EOT; |
|
| 350 | +eot; |
|
| 351 | 351 | |
| 352 | 352 | $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 353 | 353 | $response = $this->client->getResponse(); |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | "code": "NEW_MUG_CODE", |
| 423 | 423 | "version": $version |
| 424 | 424 | } |
| 425 | -EOT; |
|
| 425 | +eot; |
|
| 426 | 426 | $this->client->request('PUT', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data); |
| 427 | 427 | $response = $this->client->getResponse(); |
| 428 | 428 | |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | } |
| 456 | 456 | } |
| 457 | 457 | } |
| 458 | -EOT; |
|
| 458 | +eot; |
|
| 459 | 459 | |
| 460 | 460 | $this->client->request('PATCH', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data); |
| 461 | 461 | $response = $this->client->getResponse(); |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | { |
| 484 | 484 | "tracked": false |
| 485 | 485 | } |
| 486 | -EOT; |
|
| 486 | +eot; |
|
| 487 | 487 | $this->client->request('PATCH', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data); |
| 488 | 488 | $response = $this->client->getResponse(); |
| 489 | 489 | |
@@ -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', |