Completed
Push — locale-in-url ( 151bbf...6507a9 )
by Kamil
20:45
created
src/Sylius/Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RedirectHandler.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -82,6 +82,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/DependencyInjection/SyliusMoneyExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RequestConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
205 205
             return '';
206 206
         }
207 207
 
208
-        return '#'.$redirect['hash'];
208
+        return '#' . $redirect['hash'];
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Storage/StorageInterface.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,12 +33,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutRedirectListener.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/EmailManager/ContactEmailManagerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/EmailManager/OrderEmailManagerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param OrderInterface $order
23
+     * @return void
23 24
      */
24 25
     public function sendConfirmationEmail(OrderInterface $order);
25 26
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/EmailManager/ShipmentEmailManagerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param ShipmentInterface $shipment
23
+     * @return void
23 24
      */
24 25
     public function sendConfirmationEmail(ShipmentInterface $shipment);
25 26
 }
Please login to merge, or discard this patch.