Completed
Push — scalar-types/order ( bd3d7c )
by Kamil
21:55
created
src/Sylius/Component/Core/Model/ShopUser.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\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;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * {@inheritdoc}
58 58
      */
59
-    public function setEmail(?string $email): void
59
+    public function setEmail(?string $email) : void
60 60
     {
61 61
         $this->customer->setEmail($email);
62 62
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * {@inheritdoc}
74 74
      */
75
-    public function setEmailCanonical(?string $emailCanonical): void
75
+    public function setEmailCanonical(?string $emailCanonical) : void
76 76
     {
77 77
         $this->customer->setEmailCanonical($emailCanonical);
78 78
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Customer.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
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * {@inheritdoc}
128 128
      */
129
-    public function setUser(?BaseUserInterface $user): void
129
+    public function setUser(?BaseUserInterface $user) : void
130 130
     {
131 131
         if ($this->user !== $user) {
132 132
             $this->user = $user;
Please login to merge, or discard this patch.
src/Sylius/Component/User/Canonicalizer/Canonicalizer.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\User\Canonicalizer;
15 15
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 final class Canonicalizer implements CanonicalizerInterface
20 20
 {
21
-    public function canonicalize(?string $string): ?string
21
+    public function canonicalize(?string $string) : ?string
22 22
     {
23 23
         return null === $string ? null : mb_convert_case($string, MB_CASE_LOWER, mb_detect_encoding($string));
24 24
     }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Canonicalizer/CanonicalizerInterface.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\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/UserOAuthInterface.php 1 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.
src/Sylius/Component/User/Model/UserInterface.php 1 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/CredentialsHolderInterface.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\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/UserOAuth.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\User\Model;
15 15
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * {@inheritdoc}
70 70
      */
71
-    public function setProvider(?string $provider): void
71
+    public function setProvider(?string $provider) : void
72 72
     {
73 73
         $this->provider = $provider;
74 74
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * {@inheritdoc}
86 86
      */
87
-    public function setIdentifier(?string $identifier): void
87
+    public function setIdentifier(?string $identifier) : void
88 88
     {
89 89
         $this->identifier = $identifier;
90 90
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * {@inheritdoc}
102 102
      */
103
-    public function setAccessToken(?string $accessToken): void
103
+    public function setAccessToken(?string $accessToken) : void
104 104
     {
105 105
         $this->accessToken = $accessToken;
106 106
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * {@inheritdoc}
118 118
      */
119
-    public function setUser(?UserInterface $user): void
119
+    public function setUser(?UserInterface $user) : void
120 120
     {
121 121
         $this->user = $user;
122 122
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * {@inheritdoc}
134 134
      */
135
-    public function setRefreshToken(?string $refreshToken): void
135
+    public function setRefreshToken(?string $refreshToken) : void
136 136
     {
137 137
         $this->refreshToken = $refreshToken;
138 138
     }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/User.php 1 patch
Spacing   +15 added lines, -15 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
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * {@inheritdoc}
170 170
      */
171
-    public function setEmail(?string $email): void
171
+    public function setEmail(?string $email) : void
172 172
     {
173 173
         $this->email = $email;
174 174
     }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     /**
185 185
      * {@inheritdoc}
186 186
      */
187
-    public function setEmailCanonical(?string $emailCanonical): void
187
+    public function setEmailCanonical(?string $emailCanonical) : void
188 188
     {
189 189
         $this->emailCanonical = $emailCanonical;
190 190
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * {@inheritdoc}
202 202
      */
203
-    public function setUsername(?string $username): void
203
+    public function setUsername(?string $username) : void
204 204
     {
205 205
         $this->username = $username;
206 206
     }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * {@inheritdoc}
218 218
      */
219
-    public function setUsernameCanonical(?string $usernameCanonical): void
219
+    public function setUsernameCanonical(?string $usernameCanonical) : void
220 220
     {
221 221
         $this->usernameCanonical = $usernameCanonical;
222 222
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * {@inheritdoc}
242 242
      */
243
-    public function setPlainPassword(?string $password): void
243
+    public function setPlainPassword(?string $password) : void
244 244
     {
245 245
         $this->plainPassword = $password;
246 246
     }
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * {@inheritdoc}
258 258
      */
259
-    public function setPassword(?string $password): void
259
+    public function setPassword(?string $password) : void
260 260
     {
261 261
         $this->password = $password;
262 262
     }
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * {@inheritdoc}
274 274
      */
275
-    public function setExpiresAt(?\DateTimeInterface $date): void
275
+    public function setExpiresAt(?\DateTimeInterface $date) : void
276 276
     {
277 277
         $this->expiresAt = $date;
278 278
     }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     /**
289 289
      * {@inheritdoc}
290 290
      */
291
-    public function setCredentialsExpireAt(?\DateTimeInterface $date): void
291
+    public function setCredentialsExpireAt(?\DateTimeInterface $date) : void
292 292
     {
293 293
         $this->credentialsExpireAt = $date;
294 294
     }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     /**
305 305
      * {@inheritdoc}
306 306
      */
307
-    public function setLastLogin(?\DateTimeInterface $time): void
307
+    public function setLastLogin(?\DateTimeInterface $time) : void
308 308
     {
309 309
         $this->lastLogin = $time;
310 310
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     /**
321 321
      * {@inheritdoc}
322 322
      */
323
-    public function setEmailVerificationToken(?string $verificationToken): void
323
+    public function setEmailVerificationToken(?string $verificationToken) : void
324 324
     {
325 325
         $this->emailVerificationToken = $verificationToken;
326 326
     }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     /**
337 337
      * {@inheritdoc}
338 338
      */
339
-    public function setPasswordResetToken(?string $passwordResetToken): void
339
+    public function setPasswordResetToken(?string $passwordResetToken) : void
340 340
     {
341 341
         $this->passwordResetToken = $passwordResetToken;
342 342
     }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
     /**
437 437
      * {@inheritdoc}
438 438
      */
439
-    public function setPasswordRequestedAt(?\DateTimeInterface $date): void
439
+    public function setPasswordRequestedAt(?\DateTimeInterface $date) : void
440 440
     {
441 441
         $this->passwordRequestedAt = $date;
442 442
     }
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     /**
461 461
      * {@inheritdoc}
462 462
      */
463
-    public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void
463
+    public function setVerifiedAt(?\DateTimeInterface $verifiedAt) : void
464 464
     {
465 465
         $this->verifiedAt = $verifiedAt;
466 466
     }
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      *
557 557
      * @return bool
558 558
      */
559
-    protected function hasExpired(?\DateTimeInterface $date): bool
559
+    protected function hasExpired(?\DateTimeInterface $date) : bool
560 560
     {
561 561
         return null !== $date && new \DateTime() >= $date;
562 562
     }
Please login to merge, or discard this patch.