Completed
Push — 1.0-adjust-cs ( dde5cf )
by Kamil
27:56
created
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.
src/Sylius/Component/Taxation/Model/TaxRateInterface.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param TaxCategoryInterface|null $category
32
+     * @return void
32 33
      */
33 34
     public function setCategory(?TaxCategoryInterface $category): void;
34 35
 
@@ -39,6 +40,7 @@  discard block
 block discarded – undo
39 40
 
40 41
     /**
41 42
      * @param string|null $name
43
+     * @return void
42 44
      */
43 45
     public function setName(?string $name): void;
44 46
 
@@ -54,6 +56,7 @@  discard block
 block discarded – undo
54 56
 
55 57
     /**
56 58
      * @param float|null $amount
59
+     * @return void
57 60
      */
58 61
     public function setAmount(?float $amount): void;
59 62
 
@@ -64,6 +67,7 @@  discard block
 block discarded – undo
64 67
 
65 68
     /**
66 69
      * @param bool|null $includedInPrice
70
+     * @return void
67 71
      */
68 72
     public function setIncludedInPrice(?bool $includedInPrice): void;
69 73
 
@@ -74,6 +78,7 @@  discard block
 block discarded – undo
74 78
 
75 79
     /**
76 80
      * @param string|null $calculator
81
+     * @return void
77 82
      */
78 83
     public function setCalculator(?string $calculator): void;
79 84
 
Please login to merge, or discard this 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\Taxation\Model;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @param TaxCategoryInterface|null $category
32 32
      */
33
-    public function setCategory(?TaxCategoryInterface $category): void;
33
+    public function setCategory(?TaxCategoryInterface $category) : void;
34 34
 
35 35
     /**
36 36
      * @return string|null
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @param string|null $name
42 42
      */
43
-    public function setName(?string $name): void;
43
+    public function setName(?string $name) : void;
44 44
 
45 45
     /**
46 46
      * @return float
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * @param float|null $amount
57 57
      */
58
-    public function setAmount(?float $amount): void;
58
+    public function setAmount(?float $amount) : void;
59 59
 
60 60
     /**
61 61
      * @return bool
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * @param bool|null $includedInPrice
67 67
      */
68
-    public function setIncludedInPrice(?bool $includedInPrice): void;
68
+    public function setIncludedInPrice(?bool $includedInPrice) : void;
69 69
 
70 70
     /**
71 71
      * @return string|null
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * @param string|null $calculator
77 77
      */
78
-    public function setCalculator(?string $calculator): void;
78
+    public function setCalculator(?string $calculator) : void;
79 79
 
80 80
     /**
81 81
      * @return string|null
Please login to merge, or discard this patch.
Form/DataTransformer/ProductsToProductAssociationsTransformer.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\ProductBundle\Form\DataTransformer;
15 15
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * @param Collection|null $productAssociations
179 179
      */
180
-    private function setProductAssociations(?Collection $productAssociations): void
180
+    private function setProductAssociations(?Collection $productAssociations) : void
181 181
     {
182 182
         $this->productAssociations = $productAssociations;
183 183
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeValueInterface.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param AttributeSubjectInterface|null $subject
38
+     * @return void
38 39
      */
39 40
     public function setSubject(?AttributeSubjectInterface $subject): void;
40 41
 
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
 
47 48
     /**
48 49
      * @param AttributeInterface|null $attribute
50
+     * @return void
49 51
      */
50 52
     public function setAttribute(?AttributeInterface $attribute): void;
51 53
 
@@ -56,6 +58,7 @@  discard block
 block discarded – undo
56 58
 
57 59
     /**
58 60
      * @param mixed $value
61
+     * @return void
59 62
      */
60 63
     public function setValue($value): void;
61 64
 
@@ -83,6 +86,7 @@  discard block
 block discarded – undo
83 86
 
84 87
     /**
85 88
      * @param string|null $localeCode
89
+     * @return void
86 90
      */
87 91
     public function setLocaleCode(?string $localeCode): void;
88 92
 }
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\Attribute\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param AttributeSubjectInterface|null $subject
38 38
      */
39
-    public function setSubject(?AttributeSubjectInterface $subject): void;
39
+    public function setSubject(?AttributeSubjectInterface $subject) : void;
40 40
 
41 41
     /**
42 42
      * @return AttributeInterface|null
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @param AttributeInterface|null $attribute
48 48
      */
49
-    public function setAttribute(?AttributeInterface $attribute): void;
49
+    public function setAttribute(?AttributeInterface $attribute) : void;
50 50
 
51 51
     /**
52 52
      * @return mixed
@@ -83,5 +83,5 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * @param string|null $localeCode
85 85
      */
86
-    public function setLocaleCode(?string $localeCode): void;
86
+    public function setLocaleCode(?string $localeCode) : void;
87 87
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/AdjustableInterface.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -29,11 +29,13 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param AdjustmentInterface $adjustment
32
+     * @return void
32 33
      */
33 34
     public function addAdjustment(AdjustmentInterface $adjustment): void;
34 35
 
35 36
     /**
36 37
      * @param AdjustmentInterface $adjustment
38
+     * @return void
37 39
      */
38 40
     public function removeAdjustment(AdjustmentInterface $adjustment): void;
39 41
 
@@ -46,11 +48,13 @@  discard block
 block discarded – undo
46 48
 
47 49
     /**
48 50
      * @param string|null $type
51
+     * @return void
49 52
      */
50 53
     public function removeAdjustments(?string $type = null): void;
51 54
 
52 55
     /**
53 56
      * Recalculates adjustments total. Should be used after adjustment change.
57
+     * @return void
54 58
      */
55 59
     public function recalculateAdjustmentsTotal(): void;
56 60
 }
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\Order\Model;
15 15
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * @return Collection|AdjustmentInterface[]
27 27
      */
28
-    public function getAdjustments(?string $type = null): Collection;
28
+    public function getAdjustments(?string $type = null) : Collection;
29 29
 
30 30
     /**
31 31
      * @param AdjustmentInterface $adjustment
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return int
44 44
      */
45
-    public function getAdjustmentsTotal(?string $type = null): int;
45
+    public function getAdjustmentsTotal(?string $type = null) : int;
46 46
 
47 47
     /**
48 48
      * @param string|null $type
49 49
      */
50
-    public function removeAdjustments(?string $type = null): void;
50
+    public function removeAdjustments(?string $type = null) : void;
51 51
 
52 52
     /**
53 53
      * Recalculates adjustments total. Should be used after adjustment change.
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/AttributeType/SelectAttributeType.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\Attribute\AttributeType;
15 15
 
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
      */
77 77
     private function getValidationErrors(
78 78
         ExecutionContextInterface $context,
79
-        ?array $value,
79
+        ? array $value,
80 80
         array $validationConfiguration
81
-    ): ConstraintViolationListInterface {
81
+    ) : ConstraintViolationListInterface {
82 82
         $validator = $context->getValidator();
83 83
 
84 84
         $constraints = [
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/AttributeType/TextAttributeType.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\Attribute\AttributeType;
15 15
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         ExecutionContextInterface $context,
77 77
         ?string $value,
78 78
         array $validationConfiguration
79
-    ): ConstraintViolationListInterface {
79
+    ) : ConstraintViolationListInterface {
80 80
         $validator = $context->getValidator();
81 81
         $constraints = [];
82 82
 
Please login to merge, or discard this patch.
Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.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\Bundle\CoreBundle\Validator\Constraints;
15 15
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return ObjectManager|null
113 113
      */
114
-    private function getProperObjectManager(?string $manager, $entity): ?ObjectManager
114
+    private function getProperObjectManager(?string $manager, $entity) : ?ObjectManager
115 115
     {
116 116
         if ($manager) {
117 117
             $objectManager = $this->registry->getManager($manager);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @throws ConstraintDefinitionException
140 140
      */
141
-    private function validateObjectManager(?ObjectManager $objectManager, string $exceptionMessage): void
141
+    private function validateObjectManager(?ObjectManager $objectManager, string $exceptionMessage) : void
142 142
     {
143 143
         if (!$objectManager) {
144 144
             throw new ConstraintDefinitionException($exceptionMessage);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Installer/Executor/CommandExecutor.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\CoreBundle\Installer\Executor;
15 15
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @throws \Exception
64 64
      */
65
-    public function runCommand(string $command, array $parameters = [], ?OutputInterface $output = null): self
65
+    public function runCommand(string $command, array $parameters = [], ?OutputInterface $output = null) : self
66 66
     {
67 67
         $parameters = array_merge(
68 68
             ['command' => $command],
Please login to merge, or discard this patch.