Completed
Push — scalar-types/order ( bd3d7c )
by Kamil
21:55
created
src/Sylius/Component/Core/spec/Model/OrderSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 use Sylius\Component\Core\Model\ShipmentInterface;
24 24
 use Sylius\Component\Core\OrderCheckoutStates;
25 25
 use Sylius\Component\Core\OrderShippingStates;
26
+use Sylius\Component\Customer\Model\CustomerInterface;
26 27
 use Sylius\Component\Order\Model\Order as BaseOrder;
27 28
 use Sylius\Component\Order\Model\OrderInterface;
28 29
 use Sylius\Component\Promotion\Model\PromotionCouponInterface;
29
-use Sylius\Component\Customer\Model\CustomerInterface;
30 30
 
31 31
 /**
32 32
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Reloader/UserReloaderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param UserInterface $user
25
+     * @return void
25 26
      */
26 27
     public function reloadUser(UserInterface $user): void;
27 28
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Security/UserLoginInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * @param UserInterface $user
25 25
      * @param string|null $firewallName
26
+     * @return void
26 27
      */
27 28
     public function login(UserInterface $user, ?string $firewallName = null);
28 29
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/CustomerInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,16 +35,19 @@
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param AddressInterface|null $defaultAddress
38
+     * @return void
38 39
      */
39 40
     public function setDefaultAddress(AddressInterface $defaultAddress = null);
40 41
 
41 42
     /**
42 43
      * @param AddressInterface $address
44
+     * @return void
43 45
      */
44 46
     public function addAddress(AddressInterface $address);
45 47
 
46 48
     /**
47 49
      * @param AddressInterface $address
50
+     * @return void
48 51
      */
49 52
     public function removeAddress(AddressInterface $address);
50 53
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Doctrine\Common\Collections\Collection;
17 17
 use Sylius\Component\Customer\Model\CustomerInterface as BaseCustomerInterface;
18 18
 use Sylius\Component\User\Model\UserAwareInterface;
19
-use Sylius\Component\User\Model\UserInterface as BaseUserInterface;
20 19
 
21 20
 /**
22 21
  * @author Michał Marcinkowski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/User/Canonicalizer/CanonicalizerInterface.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -18,5 +18,10 @@
 block discarded – undo
18 18
  */
19 19
 interface CanonicalizerInterface
20 20
 {
21
+    /**
22
+     * @param string|null $string
23
+     *
24
+     * @return string
25
+     */
21 26
     public function canonicalize(?string $string): ?string;
22 27
 }
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\User\Canonicalizer;
15 15
 
@@ -18,5 +18,5 @@  discard block
 block discarded – undo
18 18
  */
19 19
 interface CanonicalizerInterface
20 20
 {
21
-    public function canonicalize(?string $string): ?string;
21
+    public function canonicalize(?string $string) : ?string;
22 22
 }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/CredentialsHolderInterface.php 2 patches
Doc Comments   +3 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|null $plainPassword
28
+     * @return void
28 29
      */
29 30
     public function setPlainPassword(?string $plainPassword): void;
30 31
 
@@ -40,6 +41,7 @@  discard block
 block discarded – undo
40 41
 
41 42
     /**
42 43
      * @param string|null $encodedPassword
44
+     * @return void
43 45
      */
44 46
     public function setPassword(?string $encodedPassword): void;
45 47
 
@@ -57,6 +59,7 @@  discard block
 block discarded – undo
57 59
      *
58 60
      * This is important if, at any given point, sensitive information like
59 61
      * the plain-text password is stored on this object.
62
+     * @return void
60 63
      */
61 64
     public function eraseCredentials();
62 65
 }
Please login to merge, or discard this 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\User\Model;
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param string|null $plainPassword
28 28
      */
29
-    public function setPlainPassword(?string $plainPassword): void;
29
+    public function setPlainPassword(?string $plainPassword) : void;
30 30
 
31 31
     /**
32 32
      * Returns the password used to authenticate the user.
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @param string|null $encodedPassword
43 43
      */
44
-    public function setPassword(?string $encodedPassword): void;
44
+    public function setPassword(?string $encodedPassword) : void;
45 45
 
46 46
     /**
47 47
      * Returns the salt that was originally used to encode the password.
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserAwareInterface.php 1 patch
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 UserInterface|null $user
28
+     * @return void
28 29
      */
29 30
     public function setUser(?UserInterface $user);
30 31
 }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserInterface.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * @param string|null $email
44
+     * @return void
44 45
      */
45 46
     public function setEmail(?string $email): void;
46 47
 
@@ -53,11 +54,13 @@  discard block
 block discarded – undo
53 54
 
54 55
     /**
55 56
      * @param string|null $emailCanonical
57
+     * @return void
56 58
      */
57 59
     public function setEmailCanonical(?string $emailCanonical): void;
58 60
 
59 61
     /**
60 62
      * @param string|null $username
63
+     * @return void
61 64
      */
62 65
     public function setUsername(?string $username): void;
63 66
 
@@ -70,11 +73,13 @@  discard block
 block discarded – undo
70 73
 
71 74
     /**
72 75
      * @param string|null $usernameCanonical
76
+     * @return void
73 77
      */
74 78
     public function setUsernameCanonical(?string $usernameCanonical): void;
75 79
 
76 80
     /**
77 81
      * @param bool $locked
82
+     * @return void
78 83
      */
79 84
     public function setLocked(bool $locked): void;
80 85
 
@@ -85,6 +90,7 @@  discard block
 block discarded – undo
85 90
 
86 91
     /**
87 92
      * @param string|null $verificationToken
93
+     * @return void
88 94
      */
89 95
     public function setEmailVerificationToken(?string $verificationToken): void;
90 96
 
@@ -95,6 +101,7 @@  discard block
 block discarded – undo
95 101
 
96 102
     /**
97 103
      * @param string|null $passwordResetToken
104
+     * @return void
98 105
      */
99 106
     public function setPasswordResetToken(?string $passwordResetToken): void;
100 107
 
@@ -105,6 +112,7 @@  discard block
 block discarded – undo
105 112
 
106 113
     /**
107 114
      * @param \DateTimeInterface|null $date
115
+     * @return void
108 116
      */
109 117
     public function setPasswordRequestedAt(?\DateTimeInterface $date): void;
110 118
 
@@ -127,6 +135,7 @@  discard block
 block discarded – undo
127 135
 
128 136
     /**
129 137
      * @param \DateTimeInterface|null $verifiedAt
138
+     * @return void
130 139
      */
131 140
     public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void;
132 141
 
@@ -137,6 +146,7 @@  discard block
 block discarded – undo
137 146
 
138 147
     /**
139 148
      * @param \DateTimeInterface|null $date
149
+     * @return void
140 150
      */
141 151
     public function setExpiresAt(?\DateTimeInterface $date): void;
142 152
 
@@ -147,6 +157,7 @@  discard block
 block discarded – undo
147 157
 
148 158
     /**
149 159
      * @param \DateTimeInterface|null $date
160
+     * @return void
150 161
      */
151 162
     public function setCredentialsExpireAt(?\DateTimeInterface $date): void;
152 163
 
@@ -157,6 +168,7 @@  discard block
 block discarded – undo
157 168
 
158 169
     /**
159 170
      * @param \DateTimeInterface|null $time
171
+     * @return void
160 172
      */
161 173
     public function setLastLogin(?\DateTimeInterface $time): void;
162 174
 
@@ -176,11 +188,13 @@  discard block
 block discarded – undo
176 188
 
177 189
     /**
178 190
      * @param string $role
191
+     * @return void
179 192
      */
180 193
     public function addRole(string $role): void;
181 194
 
182 195
     /**
183 196
      * @param string $role
197
+     * @return void
184 198
      */
185 199
     public function removeRole(string $role): void;
186 200
 
@@ -198,6 +212,7 @@  discard block
 block discarded – undo
198 212
 
199 213
     /**
200 214
      * @param UserOAuthInterface $oauth
215
+     * @return void
201 216
      */
202 217
     public function addOAuthAccount(UserOAuthInterface $oauth): void;
203 218
 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 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\User\Model;
15 15
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param string|null $email
44 44
      */
45
-    public function setEmail(?string $email): void;
45
+    public function setEmail(?string $email) : void;
46 46
 
47 47
     /**
48 48
      * Gets normalized email (should be used in search and sort queries).
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @param string|null $emailCanonical
56 56
      */
57
-    public function setEmailCanonical(?string $emailCanonical): void;
57
+    public function setEmailCanonical(?string $emailCanonical) : void;
58 58
 
59 59
     /**
60 60
      * @param string|null $username
61 61
      */
62
-    public function setUsername(?string $username): void;
62
+    public function setUsername(?string $username) : void;
63 63
 
64 64
     /**
65 65
      * Gets normalized username (should be used in search and sort queries).
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * @param string|null $usernameCanonical
73 73
      */
74
-    public function setUsernameCanonical(?string $usernameCanonical): void;
74
+    public function setUsernameCanonical(?string $usernameCanonical) : void;
75 75
 
76 76
     /**
77 77
      * @param bool $locked
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @param string|null $verificationToken
88 88
      */
89
-    public function setEmailVerificationToken(?string $verificationToken): void;
89
+    public function setEmailVerificationToken(?string $verificationToken) : void;
90 90
 
91 91
     /**
92 92
      * @return string|null
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * @param string|null $passwordResetToken
98 98
      */
99
-    public function setPasswordResetToken(?string $passwordResetToken): void;
99
+    public function setPasswordResetToken(?string $passwordResetToken) : void;
100 100
 
101 101
     /**
102 102
      * @return \DateTimeInterface|null
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * @param \DateTimeInterface|null $date
108 108
      */
109
-    public function setPasswordRequestedAt(?\DateTimeInterface $date): void;
109
+    public function setPasswordRequestedAt(?\DateTimeInterface $date) : void;
110 110
 
111 111
     /**
112 112
      * @param \DateInterval $ttl
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * @param \DateTimeInterface|null $verifiedAt
130 130
      */
131
-    public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void;
131
+    public function setVerifiedAt(?\DateTimeInterface $verifiedAt) : void;
132 132
 
133 133
     /**
134 134
      * @return \DateTimeInterface|null
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * @param \DateTimeInterface|null $date
140 140
      */
141
-    public function setExpiresAt(?\DateTimeInterface $date): void;
141
+    public function setExpiresAt(?\DateTimeInterface $date) : void;
142 142
 
143 143
     /**
144 144
      * @return \DateTimeInterface|null
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * @param \DateTimeInterface|null $date
150 150
      */
151
-    public function setCredentialsExpireAt(?\DateTimeInterface $date): void;
151
+    public function setCredentialsExpireAt(?\DateTimeInterface $date) : void;
152 152
 
153 153
     /**
154 154
      * @return \DateTimeInterface|null
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * @param \DateTimeInterface|null $time
160 160
      */
161
-    public function setLastLogin(?\DateTimeInterface $time): void;
161
+    public function setLastLogin(?\DateTimeInterface $time) : void;
162 162
 
163 163
     /**
164 164
      * Never use this to check if this user has access to anything!
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserOAuthInterface.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param string|null $provider
31
+     * @return void
31 32
      */
32 33
     public function setProvider(?string $provider): void;
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string|null $identifier
42
+     * @return void
41 43
      */
42 44
     public function setIdentifier(?string $identifier): void;
43 45
 
@@ -48,6 +50,7 @@  discard block
 block discarded – undo
48 50
 
49 51
     /**
50 52
      * @param string|null $accessToken
53
+     * @return void
51 54
      */
52 55
     public function setAccessToken(?string $accessToken): void;
53 56
 
@@ -58,6 +61,7 @@  discard block
 block discarded – undo
58 61
 
59 62
    /**
60 63
     * @param string|null $refreshToken
64
+    * @return void
61 65
     */
62 66
    public function setRefreshToken(?string $refreshToken): void;
63 67
 }
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@
 block discarded – undo
54 54
     /**
55 55
      * @return string|null
56 56
      */
57
-   public function getRefreshToken(): ?string;
57
+    public function getRefreshToken(): ?string;
58 58
 
59
-   /**
60
-    * @param string|null $refreshToken
61
-    */
62
-   public function setRefreshToken(?string $refreshToken): void;
59
+    /**
60
+     * @param string|null $refreshToken
61
+     */
62
+    public function setRefreshToken(?string $refreshToken): void;
63 63
 }
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\User\Model;
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * @param string|null $provider
31 31
      */
32
-    public function setProvider(?string $provider): void;
32
+    public function setProvider(?string $provider) : void;
33 33
 
34 34
     /**
35 35
      * @return string|null
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * @param string|null $identifier
41 41
      */
42
-    public function setIdentifier(?string $identifier): void;
42
+    public function setIdentifier(?string $identifier) : void;
43 43
 
44 44
     /**
45 45
      * @return string|null
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @param string|null $accessToken
51 51
      */
52
-    public function setAccessToken(?string $accessToken): void;
52
+    public function setAccessToken(?string $accessToken) : void;
53 53
 
54 54
     /**
55 55
      * @return string|null
@@ -59,5 +59,5 @@  discard block
 block discarded – undo
59 59
    /**
60 60
     * @param string|null $refreshToken
61 61
     */
62
-   public function setRefreshToken(?string $refreshToken): void;
62
+   public function setRefreshToken(?string $refreshToken) : void;
63 63
 }
Please login to merge, or discard this patch.