Completed
Push — scalar-types/taxonomy ( 4d330b )
by Kamil
23:21
created
src/Sylius/Component/Promotion/Processor/PromotionProcessorInterface.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 PromotionSubjectInterface $subject
25
+     * @return void
25 26
      */
26 27
     public function process(PromotionSubjectInterface $subject): void;
27 28
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonInterface.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * @param TaxonInterface|null $taxon
44
+     * @return void
44 45
      */
45 46
     public function setParent(?TaxonInterface $taxon): void;
46 47
 
@@ -63,11 +64,13 @@  discard block
 block discarded – undo
63 64
 
64 65
     /**
65 66
      * @param TaxonInterface $taxon
67
+     * @return void
66 68
      */
67 69
     public function addChild(TaxonInterface $taxon): void;
68 70
 
69 71
     /**
70 72
      * @param TaxonInterface $taxon
73
+     * @return void
71 74
      */
72 75
     public function removeChild(TaxonInterface $taxon): void;
73 76
 
@@ -78,6 +81,7 @@  discard block
 block discarded – undo
78 81
 
79 82
     /**
80 83
      * @param string|null $name
84
+     * @return void
81 85
      */
82 86
     public function setName(?string $name): void;
83 87
 
@@ -88,6 +92,7 @@  discard block
 block discarded – undo
88 92
 
89 93
     /**
90 94
      * @param string|null $description
95
+     * @return void
91 96
      */
92 97
     public function setDescription(?string $description): void;
93 98
 
@@ -98,6 +103,7 @@  discard block
 block discarded – undo
98 103
 
99 104
     /**
100 105
      * @param int|null $left
106
+     * @return void
101 107
      */
102 108
     public function setLeft(?int $left): void;
103 109
 
@@ -108,6 +114,7 @@  discard block
 block discarded – undo
108 114
 
109 115
     /**
110 116
      * @param int|null $right
117
+     * @return void
111 118
      */
112 119
     public function setRight(?int $right): void;
113 120
 
@@ -118,6 +125,7 @@  discard block
 block discarded – undo
118 125
 
119 126
     /**
120 127
      * @param int|null $level
128
+     * @return void
121 129
      */
122 130
     public function setLevel(?int $level): void;
123 131
 
@@ -128,6 +136,7 @@  discard block
 block discarded – undo
128 136
 
129 137
     /**
130 138
      * @param int|null $position
139
+     * @return void
131 140
      */
132 141
     public function setPosition(?int $position): void;
133 142
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 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\Taxonomy\Model;
15 15
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param TaxonInterface|null $taxon
44 44
      */
45
-    public function setParent(?TaxonInterface $taxon): void;
45
+    public function setParent(?TaxonInterface $taxon) : void;
46 46
 
47 47
     /**
48 48
      * @return Collection|TaxonInterface[]
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * @param string|null $name
81 81
      */
82
-    public function setName(?string $name): void;
82
+    public function setName(?string $name) : void;
83 83
 
84 84
     /**
85 85
      * @return string|null
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * @param string|null $description
91 91
      */
92
-    public function setDescription(?string $description): void;
92
+    public function setDescription(?string $description) : void;
93 93
 
94 94
     /**
95 95
      * @return int|null
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * @param int|null $left
101 101
      */
102
-    public function setLeft(?int $left): void;
102
+    public function setLeft(?int $left) : void;
103 103
 
104 104
     /**
105 105
      * @return int|null
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * @param int|null $right
111 111
      */
112
-    public function setRight(?int $right): void;
112
+    public function setRight(?int $right) : void;
113 113
 
114 114
     /**
115 115
      * @return int|null
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * @param int|null $level
121 121
      */
122
-    public function setLevel(?int $level): void;
122
+    public function setLevel(?int $level) : void;
123 123
 
124 124
     /**
125 125
      * @return int|null
@@ -129,5 +129,5 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * @param int|null $position
131 131
      */
132
-    public function setPosition(?int $position): void;
132
+    public function setPosition(?int $position) : void;
133 133
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonTranslationInterface.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param string|null $name
32
+     * @return void
32 33
      */
33 34
     public function setName(?string $name): void;
34 35
 
@@ -39,6 +40,7 @@  discard block
 block discarded – undo
39 40
 
40 41
     /**
41 42
      * @param string|null $description
43
+     * @return void
42 44
      */
43 45
     public function setDescription(?string $description): void;
44 46
 }
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\Taxonomy\Model;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $name
32 32
      */
33
-    public function setName(?string $name): void;
33
+    public function setName(?string $name) : void;
34 34
 
35 35
     /**
36 36
      * @return string|null
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @param string|null $description
42 42
      */
43
-    public function setDescription(?string $description): void;
43
+    public function setDescription(?string $description) : void;
44 44
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Repository/TaxonRepositoryInterface.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\Taxonomy\Repository;
15 15
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return array|TaxonInterface[]
33 33
      */
34
-    public function findChildren(string $parentCode, ?string $locale = null): array;
34
+    public function findChildren(string $parentCode, ?string $locale = null) : array;
35 35
 
36 36
     /**
37 37
      * @return array|TaxonInterface[]
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return array|TaxonInterface[]
62 62
      */
63
-    public function findByNamePart(string $phrase, ?string $locale = null): array;
63
+    public function findByNamePart(string $phrase, ?string $locale = null) : array;
64 64
 
65 65
     /**
66 66
      * @return QueryBuilder
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Generator/TaxonSlugGeneratorInterface.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\Taxonomy\Generator;
15 15
 
@@ -23,5 +23,5 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return string
25 25
      */
26
-    public function generate(TaxonInterface $taxon, ?string $locale = null): string;
26
+    public function generate(TaxonInterface $taxon, ?string $locale = null) : string;
27 27
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Generator/TaxonSlugGenerator.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\Taxonomy\Generator;
15 15
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * {@inheritdoc}
24 24
      */
25
-    public function generate(TaxonInterface $taxon, ?string $locale = null): string
25
+    public function generate(TaxonInterface $taxon, ?string $locale = null) : string
26 26
     {
27 27
         $name = $taxon->getTranslation($locale)->getName();
28 28
 
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/Taxon.php 1 patch
Spacing   +10 added lines, -10 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\Taxonomy\Model;
15 15
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * {@inheritdoc}
108 108
      */
109
-    public function setCode(?string $code): void
109
+    public function setCode(?string $code) : void
110 110
     {
111 111
         $this->code = $code;
112 112
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * {@inheritdoc}
140 140
      */
141
-    public function setParent(?TaxonInterface $parent): void
141
+    public function setParent(?TaxonInterface $parent) : void
142 142
     {
143 143
         $this->parent = $parent;
144 144
         if (null !== $parent) {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * {@inheritdoc}
209 209
      */
210
-    public function setName(?string $name): void
210
+    public function setName(?string $name) : void
211 211
     {
212 212
         $this->getTranslation()->setName($name);
213 213
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * {@inheritdoc}
225 225
      */
226
-    public function setSlug(?string $slug): void
226
+    public function setSlug(?string $slug) : void
227 227
     {
228 228
         $this->getTranslation()->setSlug($slug);
229 229
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * {@inheritdoc}
241 241
      */
242
-    public function setDescription(?string $description): void
242
+    public function setDescription(?string $description) : void
243 243
     {
244 244
         $this->getTranslation()->setDescription($description);
245 245
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * {@inheritdoc}
257 257
      */
258
-    public function setLeft(?int $left): void
258
+    public function setLeft(?int $left) : void
259 259
     {
260 260
         $this->left = $left;
261 261
     }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * {@inheritdoc}
273 273
      */
274
-    public function setRight(?int $right): void
274
+    public function setRight(?int $right) : void
275 275
     {
276 276
         $this->right = $right;
277 277
     }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     /**
288 288
      * {@inheritdoc}
289 289
      */
290
-    public function setLevel(?int $level): void
290
+    public function setLevel(?int $level) : void
291 291
     {
292 292
         $this->level = $level;
293 293
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * {@inheritdoc}
305 305
      */
306
-    public function setPosition(?int $position): void
306
+    public function setPosition(?int $position) : void
307 307
     {
308 308
         $this->position = $position;
309 309
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonTranslation.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\Taxonomy\Model;
15 15
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * {@inheritdoc}
69 69
      */
70
-    public function setName(?string $name): void
70
+    public function setName(?string $name) : void
71 71
     {
72 72
         $this->name = $name;
73 73
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * {@inheritdoc}
85 85
      */
86
-    public function setSlug(?string $slug): void
86
+    public function setSlug(?string $slug) : void
87 87
     {
88 88
         $this->slug = $slug;
89 89
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * {@inheritdoc}
101 101
      */
102
-    public function setDescription(?string $description): void
102
+    public function setDescription(?string $description) : void
103 103
     {
104 104
         $this->description = $description;
105 105
     }
Please login to merge, or discard this patch.
Component/Promotion/Generator/PromotionCouponGeneratorInstruction.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\Promotion\Generator;
15 15
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * {@inheritdoc}
51 51
      */
52
-    public function setAmount(?int $amount): void
52
+    public function setAmount(?int $amount) : void
53 53
     {
54 54
         $this->amount = $amount;
55 55
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * {@inheritdoc}
67 67
      */
68
-    public function setCodeLength(?int $codeLength): void
68
+    public function setCodeLength(?int $codeLength) : void
69 69
     {
70 70
         $this->codeLength = $codeLength;
71 71
     }
Please login to merge, or discard this patch.