Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
src/Sylius/Component/Review/Model/ReviewerInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string|null $email
30
+     * @return void
30 31
      */
31 32
     public function setEmail(?string $email): void;
32 33
 
@@ -37,6 +38,7 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param string|null $firstName
41
+     * @return void
40 42
      */
41 43
     public function setFirstName(?string $firstName): void;
42 44
 
@@ -47,6 +49,7 @@  discard block
 block discarded – undo
47 49
 
48 50
     /**
49 51
      * @param string|null $lastName
52
+     * @return void
50 53
      */
51 54
     public function setLastName(?string $lastName): void;
52 55
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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\Review\Model;
15 15
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param string|null $email
30 30
      */
31
-    public function setEmail(?string $email): void;
31
+    public function setEmail(?string $email) : void;
32 32
 
33 33
     /**
34 34
      * @return string|null
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @param string|null $firstName
40 40
      */
41
-    public function setFirstName(?string $firstName): void;
41
+    public function setFirstName(?string $firstName) : void;
42 42
 
43 43
     /**
44 44
      * @return string|null
@@ -48,5 +48,5 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @param string|null $lastName
50 50
      */
51
-    public function setLastName(?string $lastName): void;
51
+    public function setLastName(?string $lastName) : void;
52 52
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerGroup.php 1 patch
Spacing   +3 added lines, -3 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\Customer\Model;
15 15
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function setCode(?string $code): void
64
+    public function setCode(?string $code) : void
65 65
     {
66 66
         $this->code = $code;
67 67
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * {@inheritdoc}
79 79
      */
80
-    public function setName(?string $name): void
80
+    public function setName(?string $name) : void
81 81
     {
82 82
         $this->name = $name;
83 83
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ShopUser.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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * {@inheritdoc}
40 40
      */
41
-    public function setCustomer(?BaseCustomerInterface $customer): void
41
+    public function setCustomer(?BaseCustomerInterface $customer) : void
42 42
     {
43 43
         if ($this->customer !== $customer) {
44 44
             $this->customer = $customer;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Order.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * {@inheritdoc}
129 129
      */
130
-    public function setCustomer(?BaseCustomerInterface $customer): void
130
+    public function setCustomer(?BaseCustomerInterface $customer) : void
131 131
     {
132 132
         $this->customer = $customer;
133 133
     }
@@ -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.
src/Sylius/Component/Review/Model/Reviewer.php 1 patch
Spacing   +4 added lines, -4 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\Review\Model;
15 15
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * {@inheritdoc}
59 59
      */
60
-    public function setEmail(?string $email): void
60
+    public function setEmail(?string $email) : void
61 61
     {
62 62
         $this->email = $email;
63 63
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * {@inheritdoc}
75 75
      */
76
-    public function setFirstName(?string $firstName): void
76
+    public function setFirstName(?string $firstName) : void
77 77
     {
78 78
         $this->firstName = $firstName;
79 79
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * {@inheritdoc}
91 91
      */
92
-    public function setLastName(?string $lastName): void
92
+    public function setLastName(?string $lastName) : void
93 93
     {
94 94
         $this->lastName = $lastName;
95 95
     }
Please login to merge, or discard this patch.
Bundle/CustomerBundle/DependencyInjection/SyliusCustomerExtension.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\CustomerBundle\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
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Model/EmailInterface.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param string $code
28
+     * @return void
28 29
      */
29 30
     public function setCode(string $code): void;
30 31
 
@@ -35,11 +36,18 @@  discard block
 block discarded – undo
35 36
 
36 37
     /**
37 38
      * @param bool $enabled
39
+     * @return void
38 40
      */
39 41
     public function setEnabled(bool $enabled): void;
40 42
 
43
+    /**
44
+     * @return void
45
+     */
41 46
     public function enable(): void;
42 47
 
48
+    /**
49
+     * @return void
50
+     */
43 51
     public function disable(): void;
44 52
 
45 53
     /**
@@ -49,6 +57,7 @@  discard block
 block discarded – undo
49 57
 
50 58
     /**
51 59
      * @param string $subject
60
+     * @return void
52 61
      */
53 62
     public function setSubject(string $subject): void;
54 63
 
@@ -59,6 +68,7 @@  discard block
 block discarded – undo
59 68
 
60 69
     /**
61 70
      * @param string $content
71
+     * @return void
62 72
      */
63 73
     public function setContent(string $content);
64 74
 
@@ -69,6 +79,7 @@  discard block
 block discarded – undo
69 79
 
70 80
     /**
71 81
      * @param string $template
82
+     * @return void
72 83
      */
73 84
     public function setTemplate(string $template): void;
74 85
 
@@ -79,6 +90,7 @@  discard block
 block discarded – undo
79 90
 
80 91
     /**
81 92
      * @param string $senderName
93
+     * @return void
82 94
      */
83 95
     public function setSenderName(string $senderName): void;
84 96
 
@@ -89,6 +101,7 @@  discard block
 block discarded – undo
89 101
 
90 102
     /**
91 103
      * @param string $senderAddress
104
+     * @return void
92 105
      */
93 106
     public function setSenderAddress(string $senderAddress): void;
94 107
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Sender/SenderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
      * @param array $recipients
24 24
      * @param array $data
25 25
      * @param array $attachments
26
+     * @return void
26 27
      */
27 28
     public function send(string $code, array $recipients, array $data = [], array $attachments = []): void;
28 29
 }
Please login to merge, or discard this patch.
Sylius/Bundle/MailerBundle/spec/Renderer/Adapter/EmailTwigAdapterSpec.php 1 patch
Spacing   +3 added lines, -3 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 spec\Sylius\Bundle\MailerBundle\Renderer\Adapter;
15 15
 
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
         $email->getTemplate()->shouldBeCalled()->willReturn('MyTemplate');
50 50
         $twig->loadTemplate('MyTemplate')->shouldBeCalled()->willReturn($template);
51 51
 
52
-        $template->renderBlock('subject', [])->willReturn('template');;
53
-        $template->renderBlock('body', [])->willReturn('body');;
52
+        $template->renderBlock('subject', [])->willReturn('template'); ;
53
+        $template->renderBlock('body', [])->willReturn('body'); ;
54 54
 
55 55
         $dispatcher->dispatch(
56 56
             SyliusMailerEvents::EMAIL_PRE_RENDER,
Please login to merge, or discard this patch.