Completed
Push — master ( 77725b...f2a46e )
by Joachim
12:59
created
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $baseUrl = $parsedBaseUrl['scheme'].
48 48
             '://'.rawurlencode($this->username).':'.rawurlencode($this->password).'@'.$parsedBaseUrl['host'];
49 49
 
50
-        $this->baseUrl  = $baseUrl;
50
+        $this->baseUrl = $baseUrl;
51 51
     }
52 52
 
53 53
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     {
198 198
 
199 199
         $url = $this->baseUrl.$uri;
200
-        $options = $options ? : [];
200
+        $options = $options ?: [];
201 201
         $defaultOptions = [];
202 202
         $options = array_merge($defaultOptions, $options);
203 203
         $client = $this->getClient();
Please login to merge, or discard this patch.
src/Payload/PaymentRequest/Config.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
     protected $callbackVerifyOrder;
42 42
 
43 43
     public function __construct(
44
-        ?string $callbackForm = null,
45
-        ?string $callbackOk = null,
46
-        ?string $callbackFail = null,
47
-        ?string $callbackRedirect = null,
48
-        ?string $callbackOpen = null,
49
-        ?string $callbackNotification = null,
50
-        ?string $callbackVerifyOrder = null
44
+        ? string $callbackForm = null,
45
+        ? string $callbackOk = null,
46
+        ? string $callbackFail = null,
47
+        ? string $callbackRedirect = null,
48
+        ? string $callbackOpen = null,
49
+        ? string $callbackNotification = null,
50
+        ? string $callbackVerifyOrder = null
51 51
     ) {
52 52
     
53 53
         $this->setCallbackForm($callbackForm);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @return string
79 79
      */
80
-    public function getCallbackForm() : ?string
80
+    public function getCallbackForm() : ? string
81 81
     {
82 82
         return $this->callbackForm;
83 83
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param string $callbackForm
87 87
      * @return Config
88 88
      */
89
-    public function setCallbackForm(?string $callbackForm) : self
89
+    public function setCallbackForm(? string $callbackForm) : self
90 90
     {
91 91
         $this->callbackForm = $callbackForm;
92 92
         return $this;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return string
97 97
      */
98
-    public function getCallbackOk() : ?string
98
+    public function getCallbackOk() : ? string
99 99
     {
100 100
         return $this->callbackOk;
101 101
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param string $callbackOk
105 105
      * @return Config
106 106
      */
107
-    public function setCallbackOk(?string $callbackOk) : self
107
+    public function setCallbackOk(? string $callbackOk) : self
108 108
     {
109 109
         $this->callbackOk = $callbackOk;
110 110
         return $this;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * @return string
115 115
      */
116
-    public function getCallbackFail() : ?string
116
+    public function getCallbackFail() : ? string
117 117
     {
118 118
         return $this->callbackFail;
119 119
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param string $callbackFail
123 123
      * @return Config
124 124
      */
125
-    public function setCallbackFail(?string $callbackFail) : self
125
+    public function setCallbackFail(? string $callbackFail) : self
126 126
     {
127 127
         $this->callbackFail = $callbackFail;
128 128
         return $this;
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * @return string
133 133
      */
134
-    public function getCallbackRedirect() : ?string
134
+    public function getCallbackRedirect() : ? string
135 135
     {
136 136
         return $this->callbackRedirect;
137 137
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      * @param string $callbackRedirect
141 141
      * @return Config
142 142
      */
143
-    public function setCallbackRedirect(?string $callbackRedirect) : self
143
+    public function setCallbackRedirect(? string $callbackRedirect) : self
144 144
     {
145 145
         $this->callbackRedirect = $callbackRedirect;
146 146
         return $this;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * @return string
151 151
      */
152
-    public function getCallbackOpen() : ?string
152
+    public function getCallbackOpen() : ? string
153 153
     {
154 154
         return $this->callbackOpen;
155 155
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @param string $callbackOpen
159 159
      * @return Config
160 160
      */
161
-    public function setCallbackOpen(?string $callbackOpen) : self
161
+    public function setCallbackOpen(? string $callbackOpen) : self
162 162
     {
163 163
         $this->callbackOpen = $callbackOpen;
164 164
         return $this;
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * @return string
169 169
      */
170
-    public function getCallbackNotification() : ?string
170
+    public function getCallbackNotification() : ? string
171 171
     {
172 172
         return $this->callbackNotification;
173 173
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * @param string $callbackNotification
177 177
      * @return Config
178 178
      */
179
-    public function setCallbackNotification(?string $callbackNotification) : self
179
+    public function setCallbackNotification(? string $callbackNotification) : self
180 180
     {
181 181
         $this->callbackNotification = $callbackNotification;
182 182
         return $this;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * @return string
187 187
      */
188
-    public function getCallbackVerifyOrder() : ?string
188
+    public function getCallbackVerifyOrder() : ? string
189 189
     {
190 190
         return $this->callbackVerifyOrder;
191 191
     }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * @param string $callbackVerifyOrder
195 195
      * @return Config
196 196
      */
197
-    public function setCallbackVerifyOrder(?string $callbackVerifyOrder) : self
197
+    public function setCallbackVerifyOrder(? string $callbackVerifyOrder) : self
198 198
     {
199 199
         $this->callbackVerifyOrder = $callbackVerifyOrder;
200 200
         return $this;
Please login to merge, or discard this patch.
src/Payload/PaymentRequest/CustomerInfo.php 1 patch
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -140,27 +140,27 @@  discard block
 block discarded – undo
140 140
      * @param string $username
141 141
      */
142 142
     public function __construct(
143
-        ?string $bankName = null,
144
-        ?string $bankPhone = null,
145
-        ?string $billingAddress = null,
146
-        ?string $billingCity = null,
147
-        ?string $billingCountry = null,
148
-        ?string $billingFirstName = null,
149
-        ?string $billingLastName = null,
150
-        ?string $billingPostal = null,
151
-        ?string $billingRegion = null,
152
-        ?\DateTimeInterface $birthDate = null,
153
-        ?string $customerPhone = null,
154
-        ?string $email = null,
155
-        ?string $gender = null,
156
-        ?string $shippingAddress = null,
157
-        ?string $shippingCity = null,
158
-        ?string $shippingCountry = null,
159
-        ?string $shippingFirstName = null,
160
-        ?string $shippingLastName = null,
161
-        ?string $shippingPostal = null,
162
-        ?string $shippingRegion = null,
163
-        ?string $username = null
143
+        ? string $bankName = null,
144
+        ? string $bankPhone = null,
145
+        ? string $billingAddress = null,
146
+        ? string $billingCity = null,
147
+        ? string $billingCountry = null,
148
+        ? string $billingFirstName = null,
149
+        ? string $billingLastName = null,
150
+        ? string $billingPostal = null,
151
+        ? string $billingRegion = null,
152
+        ? \DateTimeInterface $birthDate = null,
153
+        ? string $customerPhone = null,
154
+        ? string $email = null,
155
+        ? string $gender = null,
156
+        ? string $shippingAddress = null,
157
+        ? string $shippingCity = null,
158
+        ? string $shippingCountry = null,
159
+        ? string $shippingFirstName = null,
160
+        ? string $shippingLastName = null,
161
+        ? string $shippingPostal = null,
162
+        ? string $shippingRegion = null,
163
+        ? string $username = null
164 164
     ) {
165 165
         $this->setBankName($bankName);
166 166
         $this->setBankPhone($bankPhone);
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     /**
229 229
      * @return string
230 230
      */
231
-    public function getBankName() : ?string
231
+    public function getBankName() : ? string
232 232
     {
233 233
         return $this->bankName;
234 234
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * @param string $bankName
238 238
      * @return CustomerInfo
239 239
      */
240
-    public function setBankName(?string $bankName) : self
240
+    public function setBankName(? string $bankName) : self
241 241
     {
242 242
         $this->bankName = $bankName;
243 243
         return $this;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * @return string
248 248
      */
249
-    public function getBankPhone() : ?string
249
+    public function getBankPhone() : ? string
250 250
     {
251 251
         return $this->bankPhone;
252 252
     }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      * @param string $bankPhone
256 256
      * @return CustomerInfo
257 257
      */
258
-    public function setBankPhone(?string $bankPhone) : self
258
+    public function setBankPhone(? string $bankPhone) : self
259 259
     {
260 260
         $this->bankPhone = $bankPhone;
261 261
         return $this;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     /**
265 265
      * @return string
266 266
      */
267
-    public function getBillingAddress() : ?string
267
+    public function getBillingAddress() : ? string
268 268
     {
269 269
         return $this->billingAddress;
270 270
     }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      * @param string $billingAddress
274 274
      * @return CustomerInfo
275 275
      */
276
-    public function setBillingAddress(?string $billingAddress) : self
276
+    public function setBillingAddress(? string $billingAddress) : self
277 277
     {
278 278
         $this->billingAddress = $billingAddress;
279 279
         return $this;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     /**
283 283
      * @return string
284 284
      */
285
-    public function getBillingCity() : ?string
285
+    public function getBillingCity() : ? string
286 286
     {
287 287
         return $this->billingCity;
288 288
     }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      * @param string $billingCity
292 292
      * @return CustomerInfo
293 293
      */
294
-    public function setBillingCity(?string $billingCity) : self
294
+    public function setBillingCity(? string $billingCity) : self
295 295
     {
296 296
         $this->billingCity = $billingCity;
297 297
         return $this;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * @return string
302 302
      */
303
-    public function getBillingCountry() : ?string
303
+    public function getBillingCountry() : ? string
304 304
     {
305 305
         return $this->billingCountry;
306 306
     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * @param string $billingCountry
310 310
      * @return CustomerInfo
311 311
      */
312
-    public function setBillingCountry(?string $billingCountry) : self
312
+    public function setBillingCountry(? string $billingCountry) : self
313 313
     {
314 314
         $this->billingCountry = $billingCountry;
315 315
         return $this;
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     /**
319 319
      * @return string
320 320
      */
321
-    public function getBillingFirstName() : ?string
321
+    public function getBillingFirstName() : ? string
322 322
     {
323 323
         return $this->billingFirstName;
324 324
     }
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
      * @param string $billingFirstName
328 328
      * @return CustomerInfo
329 329
      */
330
-    public function setBillingFirstName(?string $billingFirstName) : self
330
+    public function setBillingFirstName(? string $billingFirstName) : self
331 331
     {
332 332
         $this->billingFirstName = $billingFirstName;
333 333
         return $this;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     /**
337 337
      * @return string
338 338
      */
339
-    public function getBillingLastName() : ?string
339
+    public function getBillingLastName() : ? string
340 340
     {
341 341
         return $this->billingLastName;
342 342
     }
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      * @param string $billingLastName
346 346
      * @return CustomerInfo
347 347
      */
348
-    public function setBillingLastName(?string $billingLastName) : self
348
+    public function setBillingLastName(? string $billingLastName) : self
349 349
     {
350 350
         $this->billingLastName = $billingLastName;
351 351
         return $this;
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
     /**
355 355
      * @return string
356 356
      */
357
-    public function getBillingPostal() : ?string
357
+    public function getBillingPostal() : ? string
358 358
     {
359 359
         return $this->billingPostal;
360 360
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      * @param string $billingPostal
364 364
      * @return CustomerInfo
365 365
      */
366
-    public function setBillingPostal(?string $billingPostal) : self
366
+    public function setBillingPostal(? string $billingPostal) : self
367 367
     {
368 368
         $this->billingPostal = $billingPostal;
369 369
         return $this;
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     /**
373 373
      * @return string
374 374
      */
375
-    public function getBillingRegion() : ?string
375
+    public function getBillingRegion() : ? string
376 376
     {
377 377
         return $this->billingRegion;
378 378
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      * @param string $billingRegion
382 382
      * @return CustomerInfo
383 383
      */
384
-    public function setBillingRegion(?string $billingRegion) : self
384
+    public function setBillingRegion(? string $billingRegion) : self
385 385
     {
386 386
         $this->billingRegion = $billingRegion;
387 387
         return $this;
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      * @param \DateTimeInterface $birthDate
400 400
      * @return CustomerInfo
401 401
      */
402
-    public function setBirthDate(?\DateTimeInterface $birthDate) : self
402
+    public function setBirthDate(? \DateTimeInterface $birthDate) : self
403 403
     {
404 404
         $this->birthDate = $birthDate;
405 405
         return $this;
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     /**
409 409
      * @return string
410 410
      */
411
-    public function getCustomerPhone() : ?string
411
+    public function getCustomerPhone() : ? string
412 412
     {
413 413
         return $this->customerPhone;
414 414
     }
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      * @param string $customerPhone
418 418
      * @return CustomerInfo
419 419
      */
420
-    public function setCustomerPhone(?string $customerPhone) : self
420
+    public function setCustomerPhone(? string $customerPhone) : self
421 421
     {
422 422
         $this->customerPhone = $customerPhone;
423 423
         return $this;
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     /**
427 427
      * @return string
428 428
      */
429
-    public function getEmail() : ?string
429
+    public function getEmail() : ? string
430 430
     {
431 431
         return $this->email;
432 432
     }
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
      * @param string $email
436 436
      * @return CustomerInfo
437 437
      */
438
-    public function setEmail(?string $email) : self
438
+    public function setEmail(? string $email) : self
439 439
     {
440 440
         $this->email = $email;
441 441
         return $this;
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     /**
445 445
      * @return string
446 446
      */
447
-    public function getGender() : ?string
447
+    public function getGender() : ? string
448 448
     {
449 449
         return $this->gender;
450 450
     }
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      * @param string $gender
454 454
      * @return CustomerInfo
455 455
      */
456
-    public function setGender(?string $gender) : self
456
+    public function setGender(? string $gender) : self
457 457
     {
458 458
         Assert::that($gender)->nullOr()->inArray(static::getGenders());
459 459
         $this->gender = $gender;
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
     /**
464 464
      * @return string
465 465
      */
466
-    public function getShippingAddress() : ?string
466
+    public function getShippingAddress() : ? string
467 467
     {
468 468
         return $this->shippingAddress;
469 469
     }
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
      * @param string $shippingAddress
473 473
      * @return CustomerInfo
474 474
      */
475
-    public function setShippingAddress(?string $shippingAddress) : self
475
+    public function setShippingAddress(? string $shippingAddress) : self
476 476
     {
477 477
         $this->shippingAddress = $shippingAddress;
478 478
         return $this;
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
     /**
482 482
      * @return string
483 483
      */
484
-    public function getShippingCity() : ?string
484
+    public function getShippingCity() : ? string
485 485
     {
486 486
         return $this->shippingCity;
487 487
     }
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      * @param string $shippingCity
491 491
      * @return CustomerInfo
492 492
      */
493
-    public function setShippingCity(?string $shippingCity) : self
493
+    public function setShippingCity(? string $shippingCity) : self
494 494
     {
495 495
         $this->shippingCity = $shippingCity;
496 496
         return $this;
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     /**
500 500
      * @return string
501 501
      */
502
-    public function getShippingCountry() : ?string
502
+    public function getShippingCountry() : ? string
503 503
     {
504 504
         return $this->shippingCountry;
505 505
     }
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
      * @param string $shippingCountry
509 509
      * @return CustomerInfo
510 510
      */
511
-    public function setShippingCountry(?string $shippingCountry) : self
511
+    public function setShippingCountry(? string $shippingCountry) : self
512 512
     {
513 513
         $this->shippingCountry = $shippingCountry;
514 514
         return $this;
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
     /**
518 518
      * @return string
519 519
      */
520
-    public function getShippingFirstName() : ?string
520
+    public function getShippingFirstName() : ? string
521 521
     {
522 522
         return $this->shippingFirstName;
523 523
     }
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
      * @param string $shippingFirstName
527 527
      * @return CustomerInfo
528 528
      */
529
-    public function setShippingFirstName(?string $shippingFirstName) : self
529
+    public function setShippingFirstName(? string $shippingFirstName) : self
530 530
     {
531 531
         $this->shippingFirstName = $shippingFirstName;
532 532
         return $this;
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     /**
536 536
      * @return string
537 537
      */
538
-    public function getShippingLastName() : ?string
538
+    public function getShippingLastName() : ? string
539 539
     {
540 540
         return $this->shippingLastName;
541 541
     }
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
      * @param string $shippingLastName
545 545
      * @return CustomerInfo
546 546
      */
547
-    public function setShippingLastName(?string $shippingLastName) : self
547
+    public function setShippingLastName(? string $shippingLastName) : self
548 548
     {
549 549
         $this->shippingLastName = $shippingLastName;
550 550
         return $this;
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
     /**
554 554
      * @return string
555 555
      */
556
-    public function getShippingPostal() : ?string
556
+    public function getShippingPostal() : ? string
557 557
     {
558 558
         return $this->shippingPostal;
559 559
     }
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
      * @param string $shippingPostal
563 563
      * @return CustomerInfo
564 564
      */
565
-    public function setShippingPostal(?string $shippingPostal) : self
565
+    public function setShippingPostal(? string $shippingPostal) : self
566 566
     {
567 567
         $this->shippingPostal = $shippingPostal;
568 568
         return $this;
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
     /**
572 572
      * @return string
573 573
      */
574
-    public function getShippingRegion() : ?string
574
+    public function getShippingRegion() : ? string
575 575
     {
576 576
         return $this->shippingRegion;
577 577
     }
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
      * @param string $shippingRegion
581 581
      * @return CustomerInfo
582 582
      */
583
-    public function setShippingRegion(?string $shippingRegion) : self
583
+    public function setShippingRegion(? string $shippingRegion) : self
584 584
     {
585 585
         $this->shippingRegion = $shippingRegion;
586 586
         return $this;
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
     /**
590 590
      * @return string
591 591
      */
592
-    public function getUsername() : ?string
592
+    public function getUsername() : ? string
593 593
     {
594 594
         return $this->username;
595 595
     }
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
      * @param string $username
599 599
      * @return CustomerInfo
600 600
      */
601
-    public function setUsername(?string $username) : self
601
+    public function setUsername(? string $username) : self
602 602
     {
603 603
         $this->username = $username;
604 604
         return $this;
Please login to merge, or discard this patch.
src/Payload/OrderLine.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
         $itemId,
64 64
         $quantity,
65 65
         $unitPrice,
66
-        ?float $taxPercent = null,
67
-        ?float $taxAmount = null,
68
-        ?string $unitCode = null,
69
-        ?float $discount = null,
70
-        ?string $goodsType = null,
71
-        ?string $imageUrl = null
66
+        ? float $taxPercent = null,
67
+        ? float $taxAmount = null,
68
+        ? string $unitCode = null,
69
+        ? float $discount = null,
70
+        ? string $goodsType = null,
71
+        ? string $imageUrl = null
72 72
     ) {
73 73
     
74 74
         $this->setDescription($description);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     /**
190 190
      * @return float
191 191
      */
192
-    public function getTaxPercent() : ?float
192
+    public function getTaxPercent() : ? float
193 193
     {
194 194
         return $this->taxPercent;
195 195
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * @param float $taxPercent
199 199
      * @return OrderLine
200 200
      */
201
-    public function setTaxPercent(?float $taxPercent) : self
201
+    public function setTaxPercent(? float $taxPercent) : self
202 202
     {
203 203
         $this->taxPercent = $taxPercent;
204 204
         return $this;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * @return float
209 209
      */
210
-    public function getTaxAmount() : ?float
210
+    public function getTaxAmount() : ? float
211 211
     {
212 212
         return $this->taxAmount;
213 213
     }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param float $taxAmount
217 217
      * @return OrderLine
218 218
      */
219
-    public function setTaxAmount(?float $taxAmount) : self
219
+    public function setTaxAmount(? float $taxAmount) : self
220 220
     {
221 221
         $this->taxAmount = $taxAmount;
222 222
         return $this;
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * @return string
227 227
      */
228
-    public function getUnitCode() : ?string
228
+    public function getUnitCode() : ? string
229 229
     {
230 230
         return $this->unitCode;
231 231
     }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      * @param string $unitCode
235 235
      * @return OrderLine
236 236
      */
237
-    public function setUnitCode(?string $unitCode) : self
237
+    public function setUnitCode(? string $unitCode) : self
238 238
     {
239 239
         $this->unitCode = $unitCode;
240 240
         return $this;
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     /**
244 244
      * @return float
245 245
      */
246
-    public function getDiscount() : ?float
246
+    public function getDiscount() : ? float
247 247
     {
248 248
         return $this->discount;
249 249
     }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      * @param float $discount
253 253
      * @return OrderLine
254 254
      */
255
-    public function setDiscount(?float $discount) : self
255
+    public function setDiscount(? float $discount) : self
256 256
     {
257 257
         $this->discount = $discount;
258 258
         return $this;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     /**
262 262
      * @return string
263 263
      */
264
-    public function getGoodsType() : ?string
264
+    public function getGoodsType() : ? string
265 265
     {
266 266
         return $this->goodsType;
267 267
     }
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      * @param string $goodsType
271 271
      * @return OrderLine
272 272
      */
273
-    public function setGoodsType(?string $goodsType) : self
273
+    public function setGoodsType(? string $goodsType) : self
274 274
     {
275 275
         $this->goodsType = $goodsType;
276 276
         return $this;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     /**
280 280
      * @return string
281 281
      */
282
-    public function getImageUrl() : ?string
282
+    public function getImageUrl() : ? string
283 283
     {
284 284
         return $this->imageUrl;
285 285
     }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      * @param string $imageUrl
289 289
      * @return OrderLine
290 290
      */
291
-    public function setImageUrl(?string $imageUrl) : self
291
+    public function setImageUrl(? string $imageUrl) : self
292 292
     {
293 293
         $this->imageUrl = $imageUrl;
294 294
         return $this;
Please login to merge, or discard this patch.
src/Payload/CaptureReservation.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function __construct(
40 40
         string $transactionId,
41
-        ?float $amount = null,
42
-        ?string $reconciliationIdentifier = null,
43
-        ?string $invoiceNumber = null,
44
-        ?string $salesTax = null,
45
-        ?array
41
+        ? float $amount = null,
42
+        ? string $reconciliationIdentifier = null,
43
+        ? string $invoiceNumber = null,
44
+        ? string $salesTax = null,
45
+        ? array
46 46
         $orderLines = []
47 47
     ) {
48 48
         $this->setTransactionId($transactionId);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * @return float
112 112
      */
113
-    public function getAmount() : ?float
113
+    public function getAmount() : ? float
114 114
     {
115 115
         return $this->amount;
116 116
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param float $amount
120 120
      * @return CaptureReservation
121 121
      */
122
-    public function setAmount(?float $amount) : self
122
+    public function setAmount(? float $amount) : self
123 123
     {
124 124
         $this->amount = $amount;
125 125
         return $this;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * @return string
130 130
      */
131
-    public function getReconciliationIdentifier() : ?string
131
+    public function getReconciliationIdentifier() : ? string
132 132
     {
133 133
         return $this->reconciliationIdentifier;
134 134
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * @param string $reconciliationIdentifier
138 138
      * @return CaptureReservation
139 139
      */
140
-    public function setReconciliationIdentifier(?string $reconciliationIdentifier) : self
140
+    public function setReconciliationIdentifier(? string $reconciliationIdentifier) : self
141 141
     {
142 142
         $this->reconciliationIdentifier = $reconciliationIdentifier;
143 143
         return $this;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * @return string
148 148
      */
149
-    public function getInvoiceNumber() : ?string
149
+    public function getInvoiceNumber() : ? string
150 150
     {
151 151
         return $this->invoiceNumber;
152 152
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * @param string $invoiceNumber
156 156
      * @return CaptureReservation
157 157
      */
158
-    public function setInvoiceNumber(?string $invoiceNumber) : self
158
+    public function setInvoiceNumber(? string $invoiceNumber) : self
159 159
     {
160 160
         $this->invoiceNumber = $invoiceNumber;
161 161
         return $this;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * @return string
166 166
      */
167
-    public function getSalesTax() : ?string
167
+    public function getSalesTax() : ? string
168 168
     {
169 169
         return $this->salesTax;
170 170
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param string $salesTax
174 174
      * @return CaptureReservation
175 175
      */
176
-    public function setSalesTax(?string $salesTax) : self
176
+    public function setSalesTax(? string $salesTax) : self
177 177
     {
178 178
         $this->salesTax = $salesTax;
179 179
         return $this;
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * @return OrderLineInterface[]
184 184
      */
185
-    public function getOrderLines() : ?array
185
+    public function getOrderLines() : ? array
186 186
     {
187 187
         return $this->orderLines;
188 188
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      * @param OrderLineInterface[] $orderLines
192 192
      * @return CaptureReservation
193 193
      */
194
-    public function setOrderLines(?array $orderLines) : self
194
+    public function setOrderLines(? array $orderLines) : self
195 195
     {
196 196
         $this->orderLines = $orderLines;
197 197
         return $this;
Please login to merge, or discard this patch.
src/Payload/PaymentRequest.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     /**
322 322
      * @return string
323 323
      */
324
-    public function getLanguage() : ?string
324
+    public function getLanguage() : ? string
325 325
     {
326 326
         return $this->language;
327 327
     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     /**
340 340
      * @return array
341 341
      */
342
-    public function getTransactionInfo() : ?array
342
+    public function getTransactionInfo() : ? array
343 343
     {
344 344
         return $this->transactionInfo;
345 345
     }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     /**
358 358
      * @return string
359 359
      */
360
-    public function getType() : ?string
360
+    public function getType() : ? string
361 361
     {
362 362
         return $this->type;
363 363
     }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     /**
376 376
      * @return string
377 377
      */
378
-    public function getCcToken() : ?string
378
+    public function getCcToken() : ? string
379 379
     {
380 380
         return $this->ccToken;
381 381
     }
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     /**
394 394
      * @return string
395 395
      */
396
-    public function getSaleReconciliationIdentifier() : ?string
396
+    public function getSaleReconciliationIdentifier() : ? string
397 397
     {
398 398
         return $this->saleReconciliationIdentifier;
399 399
     }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     /**
412 412
      * @return string
413 413
      */
414
-    public function getSaleInvoiceNumber() : ?string
414
+    public function getSaleInvoiceNumber() : ? string
415 415
     {
416 416
         return $this->saleInvoiceNumber;
417 417
     }
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
     /**
430 430
      * @return float
431 431
      */
432
-    public function getSalesTax() : ?float
432
+    public function getSalesTax() : ? float
433 433
     {
434 434
         return $this->salesTax;
435 435
     }
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     /**
466 466
      * @return string
467 467
      */
468
-    public function getPaymentSource() : ?string
468
+    public function getPaymentSource() : ? string
469 469
     {
470 470
         return $this->paymentSource;
471 471
     }
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
     /**
484 484
      * @return string
485 485
      */
486
-    public function getFraudService() : ?string
486
+    public function getFraudService() : ? string
487 487
     {
488 488
         return $this->fraudService;
489 489
     }
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
     /**
502 502
      * @return string
503 503
      */
504
-    public function getShippingMethod() : ?string
504
+    public function getShippingMethod() : ? string
505 505
     {
506 506
         return $this->shippingMethod;
507 507
     }
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
     /**
520 520
      * @return string
521 521
      */
522
-    public function getCustomerCreatedDate() : ?string
522
+    public function getCustomerCreatedDate() : ? string
523 523
     {
524 524
         return $this->customerCreatedDate;
525 525
     }
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
     /**
538 538
      * @return string
539 539
      */
540
-    public function getOrganisationNumber() : ?string
540
+    public function getOrganisationNumber() : ? string
541 541
     {
542 542
         return $this->organisationNumber;
543 543
     }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     /**
556 556
      * @return string
557 557
      */
558
-    public function getAccountOffer() : ?string
558
+    public function getAccountOffer() : ? string
559 559
     {
560 560
         return $this->accountOffer;
561 561
     }
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
     /**
574 574
      * @return OrderLineInterface[]
575 575
      */
576
-    public function getOrderLines() : ?array
576
+    public function getOrderLines() : ? array
577 577
     {
578 578
         return $this->orderLines;
579 579
     }
Please login to merge, or discard this patch.