@@ -16,7 +16,6 @@ |
||
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; |
@@ -25,6 +25,7 @@ |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 | } |
@@ -34,6 +34,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -34,11 +34,13 @@ |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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'); |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 | } |