We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * |
268 | 268 | * @return int |
269 | 269 | */ |
270 | - public function getId(): ?int |
|
270 | + public function getId(): ? int |
|
271 | 271 | { |
272 | 272 | return $this->id; |
273 | 273 | } |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * |
278 | 278 | * @return string |
279 | 279 | */ |
280 | - public function getStatus(): ?string |
|
280 | + public function getStatus(): ? string |
|
281 | 281 | { |
282 | 282 | return $this->status; |
283 | 283 | } |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | * |
302 | 302 | * @return Client |
303 | 303 | */ |
304 | - public function getClient(): ?Client |
|
304 | + public function getClient(): ? Client |
|
305 | 305 | { |
306 | 306 | return $this->client; |
307 | 307 | } |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * |
314 | 314 | * @return Invoice |
315 | 315 | */ |
316 | - public function setClient(?Client $client): self |
|
316 | + public function setClient(? Client $client) : self |
|
317 | 317 | { |
318 | 318 | $this->client = $client; |
319 | 319 | |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | * |
394 | 394 | * @return Discount |
395 | 395 | */ |
396 | - public function getDiscount(): ?Discount |
|
396 | + public function getDiscount(): ? Discount |
|
397 | 397 | { |
398 | 398 | return $this->discount; |
399 | 399 | } |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | * |
406 | 406 | * @return Invoice |
407 | 407 | */ |
408 | - public function setDiscount(?Discount $discount): self |
|
408 | + public function setDiscount(? Discount $discount) : self |
|
409 | 409 | { |
410 | 410 | $this->discount = $discount; |
411 | 411 | |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | * |
418 | 418 | * @return \DateTime |
419 | 419 | */ |
420 | - public function getDue(): ?\DateTime |
|
420 | + public function getDue(): ? \DateTime |
|
421 | 421 | { |
422 | 422 | return $this->due; |
423 | 423 | } |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | * |
442 | 442 | * @return \DateTime |
443 | 443 | */ |
444 | - public function getPaidDate(): ?\DateTime |
|
444 | + public function getPaidDate(): ? \DateTime |
|
445 | 445 | { |
446 | 446 | return $this->paidDate; |
447 | 447 | } |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | /** |
543 | 543 | * @return string |
544 | 544 | */ |
545 | - public function getTerms(): ?string |
|
545 | + public function getTerms(): ? string |
|
546 | 546 | { |
547 | 547 | return $this->terms; |
548 | 548 | } |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | * |
553 | 553 | * @return Invoice |
554 | 554 | */ |
555 | - public function setTerms(?string $terms): self |
|
555 | + public function setTerms(? string $terms) : self |
|
556 | 556 | { |
557 | 557 | $this->terms = $terms; |
558 | 558 | |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | /** |
563 | 563 | * @return string |
564 | 564 | */ |
565 | - public function getNotes(): ?string |
|
565 | + public function getNotes(): ? string |
|
566 | 566 | { |
567 | 567 | return $this->notes; |
568 | 568 | } |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | * |
573 | 573 | * @return Invoice |
574 | 574 | */ |
575 | - public function setNotes(?string $notes): self |
|
575 | + public function setNotes(? string $notes) : self |
|
576 | 576 | { |
577 | 577 | $this->notes = $notes; |
578 | 578 | |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | /** |
637 | 637 | * @return RecurringInvoice |
638 | 638 | */ |
639 | - public function getRecurringInfo(): ?RecurringInvoice |
|
639 | + public function getRecurringInfo(): ? RecurringInvoice |
|
640 | 640 | { |
641 | 641 | return $this->recurringInfo; |
642 | 642 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * |
192 | 192 | * @return int |
193 | 193 | */ |
194 | - public function getId(): ?int |
|
194 | + public function getId(): ? int |
|
195 | 195 | { |
196 | 196 | return $this->id; |
197 | 197 | } |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * |
244 | 244 | * @return string |
245 | 245 | */ |
246 | - public function getStatus(): ?string |
|
246 | + public function getStatus(): ? string |
|
247 | 247 | { |
248 | 248 | return $this->status; |
249 | 249 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * |
268 | 268 | * @return Client |
269 | 269 | */ |
270 | - public function getClient(): ?Client |
|
270 | + public function getClient(): ? Client |
|
271 | 271 | { |
272 | 272 | return $this->client; |
273 | 273 | } |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * |
280 | 280 | * @return Quote |
281 | 281 | */ |
282 | - public function setClient(?Client $client): self |
|
282 | + public function setClient(? Client $client) : self |
|
283 | 283 | { |
284 | 284 | $this->client = $client; |
285 | 285 | |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | /** |
330 | 330 | * @return Discount |
331 | 331 | */ |
332 | - public function getDiscount(): ?Discount |
|
332 | + public function getDiscount(): ? Discount |
|
333 | 333 | { |
334 | 334 | return $this->discount; |
335 | 335 | } |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * |
340 | 340 | * @return Quote |
341 | 341 | */ |
342 | - public function setDiscount(?Discount $discount): self |
|
342 | + public function setDiscount(? Discount $discount) : self |
|
343 | 343 | { |
344 | 344 | $this->discount = $discount; |
345 | 345 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | /** |
350 | 350 | * @return \DateTime |
351 | 351 | */ |
352 | - public function getDue(): ?\DateTime |
|
352 | + public function getDue(): ? \DateTime |
|
353 | 353 | { |
354 | 354 | return $this->due; |
355 | 355 | } |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | /** |
404 | 404 | * @return string |
405 | 405 | */ |
406 | - public function getTerms(): ?string |
|
406 | + public function getTerms(): ? string |
|
407 | 407 | { |
408 | 408 | return $this->terms; |
409 | 409 | } |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | * |
414 | 414 | * @return Quote |
415 | 415 | */ |
416 | - public function setTerms(?string $terms): self |
|
416 | + public function setTerms(? string $terms) : self |
|
417 | 417 | { |
418 | 418 | $this->terms = $terms; |
419 | 419 | |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | /** |
424 | 424 | * @return string |
425 | 425 | */ |
426 | - public function getNotes(): ?string |
|
426 | + public function getNotes(): ? string |
|
427 | 427 | { |
428 | 428 | return $this->notes; |
429 | 429 | } |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * |
434 | 434 | * @return Quote |
435 | 435 | */ |
436 | - public function setNotes(?string $notes): self |
|
436 | + public function setNotes(? string $notes) : self |
|
437 | 437 | { |
438 | 438 | $this->notes = $notes; |
439 | 439 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of CSBill project. |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * @return string |
59 | 59 | */ |
60 | - public function getType(): ?string |
|
60 | + public function getType(): ? string |
|
61 | 61 | { |
62 | 62 | return $this->type; |
63 | 63 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * @return MoneyEntity |
79 | 79 | */ |
80 | - public function getValueMoney(): ?MoneyEntity |
|
80 | + public function getValueMoney(): ? MoneyEntity |
|
81 | 81 | { |
82 | 82 | return $this->valueMoney; |
83 | 83 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | /** |
98 | 98 | * @return float |
99 | 99 | */ |
100 | - public function getValuePercentage(): ?float |
|
100 | + public function getValuePercentage(): ? float |
|
101 | 101 | { |
102 | 102 | return $this->valuePercentage; |
103 | 103 | } |
@@ -67,7 +67,8 @@ |
||
67 | 67 | ] |
68 | 68 | ); |
69 | 69 | |
70 | - $builder->get('value')->addViewTransformer(new class() implements DataTransformerInterface { |
|
70 | + $builder->get('value')->addViewTransformer(new class() implements DataTransformerInterface |
|
71 | + { |
|
71 | 72 | public function transform($discount) |
72 | 73 | { |
73 | 74 | if (!$discount instanceof Money) { |