Completed
Push — scalar-types/currency ( d4a290...08e1db )
by Kamil
25:05 queued 02:52
created
Bundle/ChannelBundle/spec/Context/FakeChannel/FakeChannelPersisterSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use PhpSpec\ObjectBehavior;
17 17
 use Prophecy\Argument;
18 18
 use Sylius\Bundle\ChannelBundle\Context\FakeChannel\FakeChannelCodeProviderInterface;
19
-use Sylius\Bundle\ChannelBundle\Context\FakeChannel\FakeChannelPersister;
20 19
 use Symfony\Component\HttpFoundation\Cookie;
21 20
 use Symfony\Component\HttpFoundation\Request;
22 21
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Model/ChannelAwareInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param ChannelInterface|null $channel
28
+     * @return void
28 29
      */
29 30
     public function setChannel(?ChannelInterface $channel): void;
30 31
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Channel\Model;
15 15
 
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param ChannelInterface|null $channel
28 28
      */
29
-    public function setChannel(?ChannelInterface $channel): void;
29
+    public function setChannel(?ChannelInterface $channel) : void;
30 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Model/ChannelInterface.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param string|null $name
37
+     * @return void
37 38
      */
38 39
     public function setName(?string $name): void;
39 40
 
@@ -44,6 +45,7 @@  discard block
 block discarded – undo
44 45
 
45 46
     /**
46 47
      * @param string|null $description
48
+     * @return void
47 49
      */
48 50
     public function setDescription(?string $description): void;
49 51
 
@@ -54,6 +56,7 @@  discard block
 block discarded – undo
54 56
 
55 57
     /**
56 58
      * @param string|null $hostname
59
+     * @return void
57 60
      */
58 61
     public function setHostname(?string $hostname): void;
59 62
 
@@ -64,6 +67,7 @@  discard block
 block discarded – undo
64 67
 
65 68
     /**
66 69
      * @param string|null $color
70
+     * @return void
67 71
      */
68 72
     public function setColor(?string $color): void;
69 73
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Channel\Model;
15 15
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @param string|null $name
37 37
      */
38
-    public function setName(?string $name): void;
38
+    public function setName(?string $name) : void;
39 39
 
40 40
     /**
41 41
      * @return string|null
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @param string|null $description
47 47
      */
48
-    public function setDescription(?string $description): void;
48
+    public function setDescription(?string $description) : void;
49 49
 
50 50
     /**
51 51
      * @return string|null
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * @param string|null $hostname
57 57
      */
58
-    public function setHostname(?string $hostname): void;
58
+    public function setHostname(?string $hostname) : void;
59 59
 
60 60
     /**
61 61
      * @return string|null
@@ -65,5 +65,5 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * @param string|null $color
67 67
      */
68
-    public function setColor(?string $color): void;
68
+    public function setColor(?string $color) : void;
69 69
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Model/ChannelsAwareInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -34,11 +34,13 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param ChannelInterface $channel
37
+     * @return void
37 38
      */
38 39
     public function addChannel(ChannelInterface $channel): void;
39 40
 
40 41
     /**
41 42
      * @param ChannelInterface $channel
43
+     * @return void
42 44
      */
43 45
     public function removeChannel(ChannelInterface $channel): void;
44 46
 }
Please login to merge, or discard this patch.
Sylius/Bundle/ChannelBundle/DependencyInjection/SyliusChannelExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\ChannelBundle\DependencyInjection;
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function load(array $config, ContainerBuilder $container): void
30 30
     {
31 31
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
32
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
33 33
 
34 34
         $loader->load(sprintf('services/integrations/%s.xml', $config['driver']));
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Context/RequestBased/ChannelContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Channel\Context\RequestBased;
15 15
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @param ChannelInterface|null $channel
88 88
      */
89
-    private function assertChannelWasFound(?ChannelInterface $channel): void
89
+    private function assertChannelWasFound(?ChannelInterface $channel) : void
90 90
     {
91 91
         if (null === $channel) {
92 92
             throw new \UnexpectedValueException('Channel was not found for given request');
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Model/Channel.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Channel\Model;
15 15
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * {@inheritdoc}
87 87
      */
88
-    public function setCode(?string $code): void
88
+    public function setCode(?string $code) : void
89 89
     {
90 90
         $this->code = $code;
91 91
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * {@inheritdoc}
103 103
      */
104
-    public function setName(?string $name): void
104
+    public function setName(?string $name) : void
105 105
     {
106 106
         $this->name = $name;
107 107
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * {@inheritdoc}
119 119
      */
120
-    public function setDescription(?string $description): void
120
+    public function setDescription(?string $description) : void
121 121
     {
122 122
         $this->description = $description;
123 123
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * {@inheritdoc}
135 135
      */
136
-    public function setHostname(?string $hostname): void
136
+    public function setHostname(?string $hostname) : void
137 137
     {
138 138
         $this->hostname = $hostname;
139 139
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * {@inheritdoc}
151 151
      */
152
-    public function setColor(?string $color): void
152
+    public function setColor(?string $color) : void
153 153
     {
154 154
         $this->color = $color;
155 155
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Core\Model;
15 15
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * {@inheritdoc}
145 145
      */
146
-    public function setChannel(?BaseChannelInterface $channel): void
146
+    public function setChannel(?BaseChannelInterface $channel) : void
147 147
     {
148 148
         $this->channel = $channel;
149 149
     }
Please login to merge, or discard this patch.