Completed
Branch master (7c4194)
by kouinkouin
05:57 queued 02:57
created
src/Bpost/Order/Box/AtBpost.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
         if (isset($xml->atBpost->product) && $xml->atBpost->product != '') {
263 263
             $atBpost->setProduct(
264
-                (string)$xml->atBpost->product
264
+                (string) $xml->atBpost->product
265 265
             );
266 266
         }
267 267
         if (isset($xml->atBpost->options)) {
@@ -296,27 +296,27 @@  discard block
 block discarded – undo
296 296
         }
297 297
         if (isset($xml->atBpost->weight) && $xml->atBpost->weight != '') {
298 298
             $atBpost->setWeight(
299
-                (int)$xml->atBpost->weight
299
+                (int) $xml->atBpost->weight
300 300
             );
301 301
         }
302 302
         if (isset($xml->atBpost->receiverName) && $xml->atBpost->receiverName != '') {
303 303
             $atBpost->setReceiverName(
304
-                (string)$xml->atBpost->receiverName
304
+                (string) $xml->atBpost->receiverName
305 305
             );
306 306
         }
307 307
         if (isset($xml->atBpost->receiverCompany) && $xml->atBpost->receiverCompany != '') {
308 308
             $atBpost->setReceiverCompany(
309
-                (string)$xml->atBpost->receiverCompany
309
+                (string) $xml->atBpost->receiverCompany
310 310
             );
311 311
         }
312 312
         if (isset($xml->atBpost->pugoId) && $xml->atBpost->pugoId != '') {
313 313
             $atBpost->setPugoId(
314
-                (string)$xml->atBpost->pugoId
314
+                (string) $xml->atBpost->pugoId
315 315
             );
316 316
         }
317 317
         if (isset($xml->atBpost->pugoName) && $xml->atBpost->pugoName != '') {
318 318
             $atBpost->setPugoName(
319
-                (string)$xml->atBpost->pugoName
319
+                (string) $xml->atBpost->pugoName
320 320
             );
321 321
         }
322 322
         if (isset($xml->atBpost->pugoAddress)) {
@@ -330,12 +330,12 @@  discard block
 block discarded – undo
330 330
         }
331 331
         if (isset($xml->atBpost->requestedDeliveryDate) && $xml->atBpost->requestedDeliveryDate != '') {
332 332
             $atBpost->setRequestedDeliveryDate(
333
-                (string)$xml->atBpost->requestedDeliveryDate
333
+                (string) $xml->atBpost->requestedDeliveryDate
334 334
             );
335 335
         }
336 336
         if (isset($xml->atBpost->shopHandlingInstruction) && $xml->atBpost->shopHandlingInstruction != '') {
337 337
             $atBpost->setShopHandlingInstruction(
338
-                (string)$xml->atBpost->shopHandlingInstruction
338
+                (string) $xml->atBpost->shopHandlingInstruction
339 339
             );
340 340
         }
341 341
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/National/UnregisteredParcelLockerMember.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,15 +162,15 @@
 block discarded – undo
162 162
         $self = new self();
163 163
 
164 164
         if (isset($xml->language) && $xml->language != '') {
165
-            $self->setLanguage((string)$xml->language);
165
+            $self->setLanguage((string) $xml->language);
166 166
         }
167 167
 
168 168
         if (isset($xml->mobilePhone) && $xml->mobilePhone != '') {
169
-            $self->setMobilePhone((string)$xml->mobilePhone);
169
+            $self->setMobilePhone((string) $xml->mobilePhone);
170 170
         }
171 171
 
172 172
         if (isset($xml->emailAddress) && $xml->emailAddress != '') {
173
-            $self->setEmailAddress((string)$xml->emailAddress);
173
+            $self->setEmailAddress((string) $xml->emailAddress);
174 174
         }
175 175
 
176 176
         if (isset($xml->parcelLockerReducedMobilityZone)) {
Please login to merge, or discard this patch.
src/Bpost/Order/Box/AtHome.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function setRequestedDeliveryDate($requestedDeliveryDate)
82 82
     {
83
-        $this->requestedDeliveryDate = (string)$requestedDeliveryDate;
83
+        $this->requestedDeliveryDate = (string) $requestedDeliveryDate;
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/Bpost/Order/Box/At247.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function setRequestedDeliveryDate($requestedDeliveryDate)
195 195
     {
196
-        $this->requestedDeliveryDate = (string)$requestedDeliveryDate;
196
+        $this->requestedDeliveryDate = (string) $requestedDeliveryDate;
197 197
     }
198 198
 
199 199
     /**
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 
307 307
         if (isset($xml->{'at24-7'}->product) && $xml->{'at24-7'}->product != '') {
308 308
             $at247->setProduct(
309
-                (string)$xml->{'at24-7'}->product
309
+                (string) $xml->{'at24-7'}->product
310 310
             );
311 311
         }
312 312
         if (isset($xml->{'at24-7'}->options)) {
@@ -332,32 +332,32 @@  discard block
 block discarded – undo
332 332
         }
333 333
         if (isset($xml->{'at24-7'}->weight) && $xml->{'at24-7'}->weight != '') {
334 334
             $at247->setWeight(
335
-                (int)$xml->{'at24-7'}->weight
335
+                (int) $xml->{'at24-7'}->weight
336 336
             );
337 337
         }
338 338
         if (isset($xml->{'at24-7'}->memberId) && $xml->{'at24-7'}->memberId != '') {
339 339
             $at247->setMemberId(
340
-                (string)$xml->{'at24-7'}->memberId
340
+                (string) $xml->{'at24-7'}->memberId
341 341
             );
342 342
         }
343 343
         if (isset($xml->{'at24-7'}->receiverName) && $xml->{'at24-7'}->receiverName != '') {
344 344
             $at247->setReceiverName(
345
-                (string)$xml->{'at24-7'}->receiverName
345
+                (string) $xml->{'at24-7'}->receiverName
346 346
             );
347 347
         }
348 348
         if (isset($xml->{'at24-7'}->receiverCompany) && $xml->{'at24-7'}->receiverCompany != '') {
349 349
             $at247->setReceiverCompany(
350
-                (string)$xml->{'at24-7'}->receiverCompany
350
+                (string) $xml->{'at24-7'}->receiverCompany
351 351
             );
352 352
         }
353 353
         if (isset($xml->{'at24-7'}->parcelsDepotId) && $xml->{'at24-7'}->parcelsDepotId != '') {
354 354
             $at247->setParcelsDepotId(
355
-                (string)$xml->{'at24-7'}->parcelsDepotId
355
+                (string) $xml->{'at24-7'}->parcelsDepotId
356 356
             );
357 357
         }
358 358
         if (isset($xml->{'at24-7'}->parcelsDepotName) && $xml->{'at24-7'}->parcelsDepotName != '') {
359 359
             $at247->setParcelsDepotName(
360
-                (string)$xml->{'at24-7'}->parcelsDepotName
360
+                (string) $xml->{'at24-7'}->parcelsDepotName
361 361
             );
362 362
         }
363 363
         if (isset($xml->{'at24-7'}->parcelsDepotAddress)) {
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         }
372 372
         if (isset($xml->{'at24-7'}->requestedDeliveryDate) && $xml->{'at24-7'}->requestedDeliveryDate != '') {
373 373
             $at247->setRequestedDeliveryDate(
374
-                (string)$xml->{'at24-7'}->requestedDeliveryDate
374
+                (string) $xml->{'at24-7'}->requestedDeliveryDate
375 375
             );
376 376
         }
377 377
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/BpostOnAppointment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function setInNetworkCutOff($inNetworkCutOff)
47 47
     {
48
-        $this->inNetworkCutOff = (string)$inNetworkCutOff;
48
+        $this->inNetworkCutOff = (string) $inNetworkCutOff;
49 49
     }
50 50
 
51 51
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         if (isset($bpostOnAppointmentXml->inNetworkCutOff) && $bpostOnAppointmentXml->inNetworkCutOff != '') {
126 126
             $self->setInNetworkCutOff(
127
-                (string)$bpostOnAppointmentXml->inNetworkCutOff
127
+                (string) $bpostOnAppointmentXml->inNetworkCutOff
128 128
             );
129 129
         }
130 130
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box/National.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
         if (isset($nationalXml->product) && $nationalXml->product != '') {
222 222
             $self->setProduct(
223
-                (string)$nationalXml->product
223
+                (string) $nationalXml->product
224 224
             );
225 225
         }
226 226
 
@@ -254,19 +254,19 @@  discard block
 block discarded – undo
254 254
 
255 255
         if (isset($nationalXml->weight) && $nationalXml->weight != '') {
256 256
             $self->setWeight(
257
-                (int)$nationalXml->weight
257
+                (int) $nationalXml->weight
258 258
             );
259 259
         }
260 260
 
261 261
         if (isset($nationalXml->openingHours) && $nationalXml->openingHours != '') {
262 262
             foreach ($nationalXml->openingHours->children() as $day => $value) {
263
-                $self->addOpeningHour(new Day($day, (string)$value));
263
+                $self->addOpeningHour(new Day($day, (string) $value));
264 264
             }
265 265
         }
266 266
 
267 267
         if (isset($nationalXml->desiredDeliveryPlace) && $nationalXml->desiredDeliveryPlace != '') {
268 268
             $self->setDesiredDeliveryPlace(
269
-                (string)$nationalXml->desiredDeliveryPlace
269
+                (string) $nationalXml->desiredDeliveryPlace
270 270
             );
271 271
         }
272 272
 
Please login to merge, or discard this patch.
src/Bpost/Order/Box.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public function setAdditionalCustomerReference($additionalCustomerReference)
163 163
     {
164
-        $this->additionalCustomerReference = (string)$additionalCustomerReference;
164
+        $this->additionalCustomerReference = (string) $additionalCustomerReference;
165 165
     }
166 166
 
167 167
     /**
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
             $box->setRemark((string) $xml->remark);
326 326
         }
327 327
         if (isset($xml->additionalCustomerReference) && $xml->additionalCustomerReference != '') {
328
-            $box->setAdditionalCustomerReference((string)$xml->additionalCustomerReference);
328
+            $box->setAdditionalCustomerReference((string) $xml->additionalCustomerReference);
329 329
         }
330 330
         if (!empty($xml->barcode)) {
331 331
             $box->setBarcode((string) $xml->barcode);
Please login to merge, or discard this patch.
src/Bpost/ProductConfiguration/DeliveryMethod.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function setName($name)
67 67
     {
68
-        $this->name = (string)$name;
68
+        $this->name = (string) $name;
69 69
     }
70 70
 
71 71
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function setVisibility($visibility)
94 94
     {
95
-        $this->visibility = (string)$visibility;
95
+        $this->visibility = (string) $visibility;
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/Common/BasicAttribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     private function setKey($key)
42 42
     {
43
-        $this->key = (string)($key ?: $this->getDefaultKey());
43
+        $this->key = (string) ($key ?: $this->getDefaultKey());
44 44
     }
45 45
 
46 46
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function __toString()
58 58
     {
59
-        return (string)$this->getValue();
59
+        return (string) $this->getValue();
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.