Completed
Push — typehint/addressing ( 847595 )
by Kamil
24:15
created
src/Sylius/Component/Addressing/Model/ZoneMember.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\Addressing\Model;
15 15
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * {@inheritdoc}
47 47
      */
48
-    public function getCode(): ?string
48
+    public function getCode(): ? string
49 49
     {
50 50
         return $this->code;
51 51
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * {@inheritdoc}
55 55
      */
56
-    public function setCode(?string $code): void
56
+    public function setCode(? string $code) : void
57 57
     {
58 58
         $this->code = $code;
59 59
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function getBelongsTo(): ?ZoneInterface
64
+    public function getBelongsTo(): ? ZoneInterface
65 65
     {
66 66
         return $this->belongsTo;
67 67
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * {@inheritdoc}
71 71
      */
72
-    public function setBelongsTo(?ZoneInterface $belongsTo): void
72
+    public function setBelongsTo(? ZoneInterface $belongsTo) : void
73 73
     {
74 74
         $this->belongsTo = $belongsTo;
75 75
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/Country.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\Addressing\Model;
15 15
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * {@inheritdoc}
70 70
      */
71
-    public function getCode(): ?string
71
+    public function getCode(): ? string
72 72
     {
73 73
         return $this->code;
74 74
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * {@inheritdoc}
78 78
      */
79
-    public function setCode(?string $code): void
79
+    public function setCode(? string $code) : void
80 80
     {
81 81
         $this->code = $code;
82 82
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * {@inheritdoc}
86 86
      */
87
-    public function getName(?string $locale = null): ?string
87
+    public function getName(? string $locale = null) : ? string
88 88
     {
89 89
         return Intl::getRegionBundle()->getCountryName($this->code, $locale);
90 90
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/Province.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\Addressing\Model;
15 15
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * {@inheritdoc}
64 64
      */
65
-    public function getCode(): ?string
65
+    public function getCode(): ? string
66 66
     {
67 67
         return $this->code;
68 68
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * {@inheritdoc}
72 72
      */
73
-    public function setCode(?string $code): void
73
+    public function setCode(? string $code) : void
74 74
     {
75 75
         $this->code = $code;
76 76
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * {@inheritdoc}
80 80
      */
81
-    public function getName(): ?string
81
+    public function getName(): ? string
82 82
     {
83 83
         return $this->name;
84 84
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * {@inheritdoc}
88 88
      */
89
-    public function setName(?string $name): void
89
+    public function setName(? string $name) : void
90 90
     {
91 91
         $this->name = $name;
92 92
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * {@inheritdoc}
96 96
      */
97
-    public function getAbbreviation(): ?string
97
+    public function getAbbreviation(): ? string
98 98
     {
99 99
         return $this->abbreviation;
100 100
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * {@inheritdoc}
104 104
      */
105
-    public function setAbbreviation(?string $abbreviation): void
105
+    public function setAbbreviation(? string $abbreviation) : void
106 106
     {
107 107
         $this->abbreviation = $abbreviation;
108 108
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * {@inheritdoc}
112 112
      */
113
-    public function getCountry(): ?CountryInterface
113
+    public function getCountry(): ? CountryInterface
114 114
     {
115 115
         return $this->country;
116 116
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * {@inheritdoc}
120 120
      */
121
-    public function setCountry(?CountryInterface $country): void
121
+    public function setCountry(? CountryInterface $country) : void
122 122
     {
123 123
         $this->country = $country;
124 124
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/Address.php 1 patch
Spacing   +21 added lines, -21 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\Addressing\Model;
15 15
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * {@inheritdoc}
95 95
      */
96
-    public function getFirstName(): ?string
96
+    public function getFirstName(): ? string
97 97
     {
98 98
         return $this->firstName;
99 99
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * {@inheritdoc}
103 103
      */
104
-    public function setFirstName(?string $firstName): void
104
+    public function setFirstName(? string $firstName) : void
105 105
     {
106 106
         $this->firstName = $firstName;
107 107
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * {@inheritdoc}
111 111
      */
112
-    public function getLastName(): ?string
112
+    public function getLastName(): ? string
113 113
     {
114 114
         return $this->lastName;
115 115
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * {@inheritdoc}
119 119
      */
120
-    public function setLastName(?string $lastName): void
120
+    public function setLastName(? string $lastName) : void
121 121
     {
122 122
         $this->lastName = $lastName;
123 123
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * {@inheritdoc}
135 135
      */
136
-    public function getPhoneNumber(): ?string
136
+    public function getPhoneNumber(): ? string
137 137
     {
138 138
         return $this->phoneNumber;
139 139
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * {@inheritdoc}
143 143
      */
144
-    public function setPhoneNumber(?string $phoneNumber): void
144
+    public function setPhoneNumber(? string $phoneNumber) : void
145 145
     {
146 146
         $this->phoneNumber = $phoneNumber;
147 147
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * {@inheritdoc}
151 151
      */
152
-    public function getCompany(): ?string
152
+    public function getCompany(): ? string
153 153
     {
154 154
         return $this->company;
155 155
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * {@inheritdoc}
159 159
      */
160
-    public function setCompany(?string $company): void
160
+    public function setCompany(? string $company) : void
161 161
     {
162 162
         $this->company = $company;
163 163
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * {@inheritdoc}
167 167
      */
168
-    public function getCountryCode(): ?string
168
+    public function getCountryCode(): ? string
169 169
     {
170 170
         return $this->countryCode;
171 171
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     /**
174 174
      * {@inheritdoc}
175 175
      */
176
-    public function setCountryCode(?string $countryCode): void
176
+    public function setCountryCode(? string $countryCode) : void
177 177
     {
178 178
         if (null === $countryCode) {
179 179
             $this->provinceCode = null;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * {@inheritdoc}
187 187
      */
188
-    public function getProvinceCode(): ?string
188
+    public function getProvinceCode(): ? string
189 189
     {
190 190
         return $this->provinceCode;
191 191
     }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     /**
194 194
      * {@inheritdoc}
195 195
      */
196
-    public function setProvinceCode(?string $provinceCode): void
196
+    public function setProvinceCode(? string $provinceCode) : void
197 197
     {
198 198
         if (null === $this->countryCode) {
199 199
             return;
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * {@inheritdoc}
207 207
      */
208
-    public function getProvinceName(): ?string
208
+    public function getProvinceName(): ? string
209 209
     {
210 210
         return $this->provinceName;
211 211
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     /**
214 214
      * {@inheritdoc}
215 215
      */
216
-    public function setProvinceName(?string $provinceName): void
216
+    public function setProvinceName(? string $provinceName) : void
217 217
     {
218 218
         $this->provinceName = $provinceName;
219 219
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * {@inheritdoc}
223 223
      */
224
-    public function getStreet(): ?string
224
+    public function getStreet(): ? string
225 225
     {
226 226
         return $this->street;
227 227
     }
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     /**
230 230
      * {@inheritdoc}
231 231
      */
232
-    public function setStreet(?string $street): void
232
+    public function setStreet(? string $street) : void
233 233
     {
234 234
         $this->street = $street;
235 235
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     /**
238 238
      * {@inheritdoc}
239 239
      */
240
-    public function getCity(): ?string
240
+    public function getCity(): ? string
241 241
     {
242 242
         return $this->city;
243 243
     }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * {@inheritdoc}
247 247
      */
248
-    public function setCity(?string $city): void
248
+    public function setCity(? string $city) : void
249 249
     {
250 250
         $this->city = $city;
251 251
     }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     /**
254 254
      * {@inheritdoc}
255 255
      */
256
-    public function getPostcode(): ?string
256
+    public function getPostcode(): ? string
257 257
     {
258 258
         return $this->postcode;
259 259
     }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     /**
262 262
      * {@inheritdoc}
263 263
      */
264
-    public function setPostcode(?string $postcode): void
264
+    public function setPostcode(? string $postcode) : void
265 265
     {
266 266
         $this->postcode = $postcode;
267 267
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Matcher/ZoneMatcherInterface.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\Addressing\Matcher;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return ZoneInterface|null
32 32
      */
33
-    public function match(AddressInterface $address, ?string $scope = null): ?ZoneInterface;
33
+    public function match(AddressInterface $address, ? string $scope = null) : ? ZoneInterface;
34 34
 
35 35
     /**
36 36
      * Returns all matching zones for given address.
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return array|ZoneInterface[]
42 42
      */
43
-    public function matchAll(AddressInterface $address, ?string $scope = null): array;
43
+    public function matchAll(AddressInterface $address, ? string $scope = null) : array;
44 44
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerGroup.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\Customer\Model;
15 15
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * {@inheritdoc}
55 55
      */
56
-    public function getCode(): ?string
56
+    public function getCode(): ? string
57 57
     {
58 58
         return $this->code;
59 59
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function setCode(?string $code): void
64
+    public function setCode(? string $code) : void
65 65
     {
66 66
         $this->code = $code;
67 67
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.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\Product\Model;
15 15
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * @return string
94 94
      */
95
-    public function getCode(): ?string
95
+    public function getCode(): ? string
96 96
     {
97 97
         return $this->code;
98 98
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @param string $code
102 102
      */
103
-    public function setCode(?string $code): void
103
+    public function setCode(? string $code) : void
104 104
     {
105 105
         $this->code = $code;
106 106
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductVariant.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\Product\Model;
15 15
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * {@inheritdoc}
74 74
      */
75
-    public function getCode(): ?string
75
+    public function getCode(): ? string
76 76
     {
77 77
         return $this->code;
78 78
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * {@inheritdoc}
82 82
      */
83
-    public function setCode(?string $code): void
83
+    public function setCode(? string $code) : void
84 84
     {
85 85
         $this->code = $code;
86 86
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionValue.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\Product\Model;
15 15
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * {@inheritdoc}
66 66
      */
67
-    public function getCode(): ?string
67
+    public function getCode(): ? string
68 68
     {
69 69
         return $this->code;
70 70
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * {@inheritdoc}
74 74
      */
75
-    public function setCode(?string $code): void
75
+    public function setCode(? string $code) : void
76 76
     {
77 77
         $this->code = $code;
78 78
     }
Please login to merge, or discard this patch.