Completed
Push — 1.0-narrow-typehints ( 369cb6 )
by Kamil
24:19
created
src/Sylius/Component/Product/Model/ProductVariant.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\Product\Model;
15 15
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * {@inheritdoc}
84 84
      */
85
-    public function setCode(?string $code): void
85
+    public function setCode(?string $code) : void
86 86
     {
87 87
         $this->code = $code;
88 88
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * {@inheritdoc}
100 100
      */
101
-    public function setName(?string $name): void
101
+    public function setName(?string $name) : void
102 102
     {
103 103
         $this->getTranslation()->setName($name);
104 104
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * {@inheritdoc}
162 162
      */
163
-    public function setProduct(?ProductInterface $product): void
163
+    public function setProduct(?ProductInterface $product) : void
164 164
     {
165 165
         $this->product = $product;
166 166
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * {@inheritdoc}
178 178
      */
179
-    public function setPosition(?int $position): void
179
+    public function setPosition(?int $position) : void
180 180
     {
181 181
         $this->position = $position;
182 182
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @return ProductVariantTranslationInterface
188 188
      */
189
-    public function getTranslation(?string $locale = null): TranslationInterface
189
+    public function getTranslation(?string $locale = null) : TranslationInterface
190 190
     {
191 191
         /** @var ProductVariantTranslationInterface $translation */
192 192
         $translation = $this->doGetTranslation($locale);
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionValueInterface.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\Product\Model;
15 15
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @param ProductOptionInterface $option
33 33
      */
34
-    public function setOption(?ProductOptionInterface $option): void;
34
+    public function setOption(?ProductOptionInterface $option) : void;
35 35
 
36 36
     /**
37 37
      * @return string|null
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @param string|null $value
43 43
      */
44
-    public function setValue(?string $value): void;
44
+    public function setValue(?string $value) : void;
45 45
 
46 46
     /**
47 47
      * @return string|null
@@ -58,5 +58,5 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return ProductOptionValueTranslationInterface
60 60
      */
61
-    public function getTranslation(?string $locale = null): TranslationInterface;
61
+    public function getTranslation(?string $locale = null) : TranslationInterface;
62 62
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionInterface.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\Product\Model;
15 15
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @param string $name
39 39
      */
40
-    public function setName(?string $name): void;
40
+    public function setName(?string $name) : void;
41 41
 
42 42
     /**
43 43
      * @return int
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @param int $position
49 49
      */
50
-    public function setPosition(?int $position): void;
50
+    public function setPosition(?int $position) : void;
51 51
 
52 52
     /**
53 53
      * @return Collection|ProductOptionValueInterface[]
@@ -76,5 +76,5 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @return ProductOptionTranslationInterface
78 78
      */
79
-    public function getTranslation(?string $locale = null): TranslationInterface;
79
+    public function getTranslation(?string $locale = null) : TranslationInterface;
80 80
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethod.php 1 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\Payment\Model;
15 15
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * {@inheritdoc}
85 85
      */
86
-    public function setCode(?string $code): void
86
+    public function setCode(?string $code) : void
87 87
     {
88 88
         $this->code = $code;
89 89
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * {@inheritdoc}
101 101
      */
102
-    public function setName(?string $name): void
102
+    public function setName(?string $name) : void
103 103
     {
104 104
         $this->getTranslation()->setName($name);
105 105
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     /**
116 116
      * {@inheritdoc}
117 117
      */
118
-    public function setDescription(?string $description): void
118
+    public function setDescription(?string $description) : void
119 119
     {
120 120
         $this->getTranslation()->setDescription($description);
121 121
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * {@inheritdoc}
133 133
      */
134
-    public function setInstructions(?string $instructions): void
134
+    public function setInstructions(?string $instructions) : void
135 135
     {
136 136
         $this->getTranslation()->setInstructions($instructions);
137 137
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * {@inheritdoc}
149 149
      */
150
-    public function setEnvironment(?string $environment): void
150
+    public function setEnvironment(?string $environment) : void
151 151
     {
152 152
         $this->environment = $environment;
153 153
     }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     /**
164 164
      * {@inheritdoc}
165 165
      */
166
-    public function setPosition(?int $position): void
166
+    public function setPosition(?int $position) : void
167 167
     {
168 168
         $this->position = $position;
169 169
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      *
174 174
      * @return PaymentMethodTranslationInterface
175 175
      */
176
-    public function getTranslation(?string $locale = null): TranslationInterface
176
+    public function getTranslation(?string $locale = null) : TranslationInterface
177 177
     {
178 178
         /** @var PaymentMethodTranslationInterface $translation */
179 179
         $translation = $this->doGetTranslation($locale);
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethodInterface.php 1 patch
Spacing   +7 added lines, -7 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\Payment\Model;
15 15
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * {@inheritdoc}
40 40
      */
41
-    public function setName(?string $name): void;
41
+    public function setName(?string $name) : void;
42 42
 
43 43
     /**
44 44
      * {@inheritdoc}
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * {@inheritdoc}
50 50
      */
51
-    public function setDescription(?string $description): void;
51
+    public function setDescription(?string $description) : void;
52 52
 
53 53
     /**
54 54
      * {@inheritdoc}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * {@inheritdoc}
60 60
      */
61
-    public function setInstructions(?string $instructions): void;
61
+    public function setInstructions(?string $instructions) : void;
62 62
 
63 63
     /**
64 64
      * @return string|null
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @param string|null $environment
70 70
      */
71
-    public function setEnvironment(?string $environment): void;
71
+    public function setEnvironment(?string $environment) : void;
72 72
 
73 73
     /**
74 74
      * @return int|null
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * @param int|null $position
80 80
      */
81
-    public function setPosition(?int $position): void;
81
+    public function setPosition(?int $position) : void;
82 82
 
83 83
     /**
84 84
      * @param string|null $locale
85 85
      *
86 86
      * @return PaymentMethodTranslationInterface
87 87
      */
88
-    public function getTranslation(?string $locale = null): TranslationInterface;
88
+    public function getTranslation(?string $locale = null) : TranslationInterface;
89 89
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonInterface.php 1 patch
Spacing   +9 added lines, -9 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
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * @param TaxonInterface|null $taxon
46 46
      */
47
-    public function setParent(?TaxonInterface $taxon): void;
47
+    public function setParent(?TaxonInterface $taxon) : void;
48 48
 
49 49
     /**
50 50
      * @return Collection|TaxonInterface[]
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @param string|null $name
88 88
      */
89
-    public function setName(?string $name): void;
89
+    public function setName(?string $name) : 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 $description
98 98
      */
99
-    public function setDescription(?string $description): void;
99
+    public function setDescription(?string $description) : void;
100 100
 
101 101
     /**
102 102
      * @return int|null
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * @param int|null $left
108 108
      */
109
-    public function setLeft(?int $left): void;
109
+    public function setLeft(?int $left) : void;
110 110
 
111 111
     /**
112 112
      * @return int|null
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * @param int|null $right
118 118
      */
119
-    public function setRight(?int $right): void;
119
+    public function setRight(?int $right) : void;
120 120
 
121 121
     /**
122 122
      * @return int|null
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * @param int|null $level
128 128
      */
129
-    public function setLevel(?int $level): void;
129
+    public function setLevel(?int $level) : void;
130 130
 
131 131
     /**
132 132
      * @return int|null
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
     /**
137 137
      * @param int|null $position
138 138
      */
139
-    public function setPosition(?int $position): void;
139
+    public function setPosition(?int $position) : void;
140 140
 
141 141
     /**
142 142
      * @param string|null $locale
143 143
      *
144 144
      * @return TaxonTranslationInterface
145 145
      */
146
-    public function getTranslation(?string $locale = null): TranslationInterface;
146
+    public function getTranslation(?string $locale = null) : TranslationInterface;
147 147
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/Taxon.php 1 patch
Spacing   +11 added lines, -11 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
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * {@inheritdoc}
110 110
      */
111
-    public function setCode(?string $code): void
111
+    public function setCode(?string $code) : void
112 112
     {
113 113
         $this->code = $code;
114 114
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * {@inheritdoc}
142 142
      */
143
-    public function setParent(?TaxonInterface $parent): void
143
+    public function setParent(?TaxonInterface $parent) : void
144 144
     {
145 145
         $this->parent = $parent;
146 146
         if (null !== $parent) {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * {@inheritdoc}
225 225
      */
226
-    public function setName(?string $name): void
226
+    public function setName(?string $name) : void
227 227
     {
228 228
         $this->getTranslation()->setName($name);
229 229
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * {@inheritdoc}
241 241
      */
242
-    public function setSlug(?string $slug): void
242
+    public function setSlug(?string $slug) : void
243 243
     {
244 244
         $this->getTranslation()->setSlug($slug);
245 245
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * {@inheritdoc}
257 257
      */
258
-    public function setDescription(?string $description): void
258
+    public function setDescription(?string $description) : void
259 259
     {
260 260
         $this->getTranslation()->setDescription($description);
261 261
     }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     /**
272 272
      * {@inheritdoc}
273 273
      */
274
-    public function setLeft(?int $left): void
274
+    public function setLeft(?int $left) : void
275 275
     {
276 276
         $this->left = $left;
277 277
     }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     /**
288 288
      * {@inheritdoc}
289 289
      */
290
-    public function setRight(?int $right): void
290
+    public function setRight(?int $right) : void
291 291
     {
292 292
         $this->right = $right;
293 293
     }
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * {@inheritdoc}
305 305
      */
306
-    public function setLevel(?int $level): void
306
+    public function setLevel(?int $level) : void
307 307
     {
308 308
         $this->level = $level;
309 309
     }
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     /**
320 320
      * {@inheritdoc}
321 321
      */
322
-    public function setPosition(?int $position): void
322
+    public function setPosition(?int $position) : void
323 323
     {
324 324
         $this->position = $position;
325 325
     }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      *
330 330
      * @return TaxonTranslationInterface
331 331
      */
332
-    public function getTranslation(?string $locale = null): TranslationInterface
332
+    public function getTranslation(?string $locale = null) : TranslationInterface
333 333
     {
334 334
         /** @var TaxonTranslationInterface $translation */
335 335
         $translation = $this->doGetTranslation($locale);
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeInterface.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\Attribute\Model;
15 15
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @param string|null $name
40 40
      */
41
-    public function setName(?string $name): void;
41
+    public function setName(?string $name) : void;
42 42
 
43 43
     /**
44 44
      * @return string|null
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @param string|null $type
50 50
      */
51
-    public function setType(?string $type): void;
51
+    public function setType(?string $type) : void;
52 52
 
53 53
     /**
54 54
      * @return array
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * @param int|null $position
80 80
      */
81
-    public function setPosition(?int $position): void;
81
+    public function setPosition(?int $position) : void;
82 82
 
83 83
     /**
84 84
      * @param string|null $locale
85 85
      *
86 86
      * @return AttributeTranslationInterface
87 87
      */
88
-    public function getTranslation(?string $locale = null): TranslationInterface;
88
+    public function getTranslation(?string $locale = null) : TranslationInterface;
89 89
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/Attribute.php 1 patch
Spacing   +7 added lines, -7 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
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * {@inheritdoc}
97 97
      */
98
-    public function setCode(?string $code): void
98
+    public function setCode(?string $code) : void
99 99
     {
100 100
         $this->code = $code;
101 101
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * {@inheritdoc}
113 113
      */
114
-    public function setName(?string $name): void
114
+    public function setName(?string $name) : void
115 115
     {
116 116
         $this->getTranslation()->setName($name);
117 117
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * {@inheritdoc}
129 129
      */
130
-    public function setType(?string $type): void
130
+    public function setType(?string $type) : void
131 131
     {
132 132
         $this->type = $type;
133 133
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * {@inheritdoc}
161 161
      */
162
-    public function setStorageType(?string $storageType): void
162
+    public function setStorageType(?string $storageType) : void
163 163
     {
164 164
         $this->storageType = $storageType;
165 165
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * {@inheritdoc}
177 177
      */
178
-    public function setPosition(?int $position): void
178
+    public function setPosition(?int $position) : void
179 179
     {
180 180
         $this->position = $position;
181 181
     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * @return AttributeTranslationInterface
187 187
      */
188
-    public function getTranslation(?string $locale = null): TranslationInterface
188
+    public function getTranslation(?string $locale = null) : TranslationInterface
189 189
     {
190 190
         /** @var AttributeTranslationInterface $translation */
191 191
         $translation = $this->doGetTranslation($locale);
Please login to merge, or discard this patch.