@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public function load(array $config, ContainerBuilder $container) |
| 29 | 29 | { |
| 30 | 30 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | |
| 33 | 33 | $container->setParameter('sylius_money.locale', $config['locale']); |
| 34 | 34 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 47 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 48 | 48 | $loader->load('services/integrations/currency.xml'); |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -33,12 +33,13 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @param string $name |
| 36 | - * @param mixed $value |
|
| 36 | + * @param string $value |
|
| 37 | 37 | */ |
| 38 | 38 | public function set($name, $value); |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param string $name |
| 42 | + * @return void |
|
| 42 | 43 | */ |
| 43 | 44 | public function remove($name); |
| 44 | 45 | |
@@ -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 | { |
@@ -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); |