@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Sylius\Bundle\CoreBundle\Controller\ProductTaxonController; |
| 15 | 15 | use Sylius\Bundle\CoreBundle\Form\Type\Product\ChannelPricingType; |
| 16 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
| 17 | -use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; |
|
| 18 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 19 | 18 | use Sylius\Component\Core\Model\ChannelPricing; |
| 20 | 19 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
@@ -82,6 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * {@inheritdoc} |
| 85 | + * @param string $url |
|
| 85 | 86 | */ |
| 86 | 87 | public function redirect(RequestConfiguration $configuration, $url, $status = 302) |
| 87 | 88 | { |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | if ($configuration->isHeaderRedirection()) { |
| 89 | 89 | return new Response('', 200, [ |
| 90 | - 'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(), |
|
| 90 | + 'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(), |
|
| 91 | 91 | ]); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - return new RedirectResponse($url.$configuration->getRedirectHash(), $status); |
|
| 94 | + return new RedirectResponse($url . $configuration->getRedirectHash(), $status); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -99,6 +99,6 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | public function redirectToReferer(RequestConfiguration $configuration) |
| 101 | 101 | { |
| 102 | - return $this->redirect($configuration, $configuration->getRedirectReferer().$configuration->getRedirectHash()); |
|
| 102 | + return $this->redirect($configuration, $configuration->getRedirectReferer() . $configuration->getRedirectHash()); |
|
| 103 | 103 | } |
| 104 | 104 | } |
@@ -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 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | public function getRouteName($name) |
| 165 | 165 | { |
| 166 | - $sectionPrefix = $this->getSection() ? $this->getSection().'_' : ''; |
|
| 166 | + $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : ''; |
|
| 167 | 167 | |
| 168 | 168 | return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name); |
| 169 | 169 | } |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | return ''; |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | - return '#'.$redirect['hash']; |
|
| 208 | + return '#' . $redirect['hash']; |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | /** |
@@ -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 | } |