@@ -11,11 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Checkout; |
| 13 | 13 | |
| 14 | -use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface; |
|
| 15 | -use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration; |
|
| 16 | 14 | use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent; |
| 17 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
| 18 | -use Sylius\Component\Resource\Model\ResourceInterface; |
|
| 19 | 16 | use Symfony\Component\HttpFoundation\RedirectResponse; |
| 20 | 17 | use Symfony\Component\HttpFoundation\RequestMatcherInterface; |
| 21 | 18 | use Symfony\Component\HttpFoundation\RequestStack; |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * @param array $data |
| 21 | 21 | * @param array $recipients |
| 22 | + * @return void |
|
| 22 | 23 | */ |
| 23 | 24 | public function sendContactRequest(array $data, array $recipients); |
| 24 | 25 | } |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param OrderInterface $order |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function sendConfirmationEmail(OrderInterface $order); |
| 25 | 26 | } |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param ShipmentInterface $shipment |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function sendConfirmationEmail(ShipmentInterface $shipment); |
| 25 | 26 | } |
@@ -23,9 +23,6 @@ |
||
| 23 | 23 | final class OrderProductEligibilityValidator extends ConstraintValidator |
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | - * @param OrderInterface $value |
|
| 27 | - * |
|
| 28 | - * {@inheritdoc} |
|
| 29 | 26 | */ |
| 30 | 27 | public function validate($order, Constraint $constraint) |
| 31 | 28 | { |
@@ -36,9 +36,6 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @param OrderInterface $value |
|
| 40 | - * |
|
| 41 | - * {@inheritdoc} |
|
| 42 | 39 | */ |
| 43 | 40 | public function validate($order, Constraint $constraint) |
| 44 | 41 | { |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param float $weight |
| 38 | + * @return void |
|
| 38 | 39 | */ |
| 39 | 40 | public function setWeight($weight); |
| 40 | 41 | |
@@ -45,6 +46,7 @@ discard block |
||
| 45 | 46 | |
| 46 | 47 | /** |
| 47 | 48 | * @param float $width |
| 49 | + * @return void |
|
| 48 | 50 | */ |
| 49 | 51 | public function setWidth($width); |
| 50 | 52 | |
@@ -55,6 +57,7 @@ discard block |
||
| 55 | 57 | |
| 56 | 58 | /** |
| 57 | 59 | * @param float $height |
| 60 | + * @return void |
|
| 58 | 61 | */ |
| 59 | 62 | public function setHeight($height); |
| 60 | 63 | |
@@ -65,16 +68,19 @@ discard block |
||
| 65 | 68 | |
| 66 | 69 | /** |
| 67 | 70 | * @param float $depth |
| 71 | + * @return void |
|
| 68 | 72 | */ |
| 69 | 73 | public function setDepth($depth); |
| 70 | 74 | |
| 71 | 75 | /** |
| 72 | 76 | * @param TaxCategoryInterface $category |
| 77 | + * @return void |
|
| 73 | 78 | */ |
| 74 | 79 | public function setTaxCategory(TaxCategoryInterface $category = null); |
| 75 | 80 | |
| 76 | 81 | /** |
| 77 | 82 | * @param ShippingCategoryInterface $shippingCategory |
| 83 | + * @return void |
|
| 78 | 84 | */ |
| 79 | 85 | public function setShippingCategory(ShippingCategoryInterface $shippingCategory); |
| 80 | 86 | |
@@ -106,11 +112,13 @@ discard block |
||
| 106 | 112 | |
| 107 | 113 | /** |
| 108 | 114 | * @param ChannelPricingInterface $channelPricing |
| 115 | + * @return void |
|
| 109 | 116 | */ |
| 110 | 117 | public function addChannelPricing(ChannelPricingInterface $channelPricing); |
| 111 | 118 | |
| 112 | 119 | /** |
| 113 | 120 | * @param ChannelPricingInterface $channelPricing |
| 121 | + * @return void |
|
| 114 | 122 | */ |
| 115 | 123 | public function removeChannelPricing(ChannelPricingInterface $channelPricing); |
| 116 | 124 | |
@@ -121,6 +129,7 @@ discard block |
||
| 121 | 129 | |
| 122 | 130 | /** |
| 123 | 131 | * @param bool $shippingRequired |
| 132 | + * @return void |
|
| 124 | 133 | */ |
| 125 | 134 | public function setShippingRequired($shippingRequired); |
| 126 | 135 | } |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\OrderInterface; |
| 15 | 15 | use Sylius\Component\Core\Model\PaymentMethodInterface; |
| 16 | -use Sylius\Component\Core\Model\ShippingMethodInterface; |
|
| 17 | 16 | use Symfony\Component\HttpFoundation\Response; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $this->addressOrder($cart); |
| 60 | 60 | |
| 61 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType); |
|
| 61 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType); |
|
| 62 | 62 | |
| 63 | 63 | $response = $this->client->getResponse(); |
| 64 | 64 | $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | EOT; |
| 91 | 91 | |
| 92 | - $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 92 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 93 | 93 | |
| 94 | 94 | $response = $this->client->getResponse(); |
| 95 | 95 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | ] |
| 89 | 89 | } |
| 90 | -EOT; |
|
| 90 | +eot; |
|
| 91 | 91 | |
| 92 | 92 | $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 93 | 93 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | ] |
| 184 | 184 | } |
| 185 | -EOT; |
|
| 185 | +eot; |
|
| 186 | 186 | |
| 187 | 187 | $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 188 | 188 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | ] |
| 226 | 226 | } |
| 227 | -EOT; |
|
| 227 | +eot; |
|
| 228 | 228 | |
| 229 | 229 | $this->client->request('PUT', $this->getSelectPaymentUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 230 | 230 | |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Tests\Controller; |
| 13 | 13 | |
| 14 | 14 | use Lakion\ApiTestCase\JsonApiTestCase; |
| 15 | -use Sylius\Component\Core\Model\OrderInterface; |
|
| 16 | -use Sylius\Component\Order\Model\OrderItemInterface; |
|
| 17 | 15 | use Symfony\Component\HttpFoundation\Response; |
| 18 | 16 | |
| 19 | 17 | /** |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 62 | 62 | $orderData = $this->loadFixturesFromFile('resources/cart.yml'); |
| 63 | 63 | |
| 64 | - $this->client->request('GET', '/api/v1/orders/'.$orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 64 | + $this->client->request('GET', '/api/v1/orders/' . $orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 65 | 65 | |
| 66 | 66 | $response = $this->client->getResponse(); |
| 67 | 67 | $this->assertResponse($response, 'order/cart_show_response', Response::HTTP_OK); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 76 | 76 | $orderData = $this->loadFixturesFromFile('resources/order.yml'); |
| 77 | 77 | |
| 78 | - $this->client->request('GET', '/api/v1/orders/'.$orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 78 | + $this->client->request('GET', '/api/v1/orders/' . $orderData['order_001']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 79 | 79 | |
| 80 | 80 | $response = $this->client->getResponse(); |
| 81 | 81 | $this->assertResponse($response, 'order/order_show_response', Response::HTTP_OK); |