@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | */ |
270 | 270 | public function getId(): int |
271 | 271 | { |
272 | - return (int)$this->id; |
|
272 | + return (int) $this->id; |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | /** |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | public function getExternalId(): int |
289 | 289 | { |
290 | - return (int)$this->externalId; |
|
290 | + return (int) $this->externalId; |
|
291 | 291 | } |
292 | 292 | |
293 | 293 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getId(): int |
69 | 69 | { |
70 | - return (int)$this->id; |
|
70 | + return (int) $this->id; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | public function getExternalId(): string |
87 | 87 | { |
88 | - return (string)$this->externalId; |
|
88 | + return (string) $this->externalId; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function __toString() |
59 | 59 | { |
60 | - return (string)$this->name; |
|
60 | + return (string) $this->name; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getId(): int |
67 | 67 | { |
68 | - return (int)$this->id; |
|
68 | + return (int) $this->id; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getExternalId(): int |
85 | 85 | { |
86 | - return (int)$this->externalId; |
|
86 | + return (int) $this->externalId; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function __toString() |
72 | 72 | { |
73 | - return (string)$this->name; |
|
73 | + return (string) $this->name; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getId(): int |
80 | 80 | { |
81 | - return (int)$this->id; |
|
81 | + return (int) $this->id; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function getExternalId(): string |
98 | 98 | { |
99 | - return (string)$this->externalId; |
|
99 | + return (string) $this->externalId; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function __toString() |
59 | 59 | { |
60 | - return (string)$this->name; |
|
60 | + return (string) $this->name; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getId(): int |
67 | 67 | { |
68 | - return (int)$this->id; |
|
68 | + return (int) $this->id; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getExternalId(): int |
85 | 85 | { |
86 | - return (int)$this->externalId; |
|
86 | + return (int) $this->externalId; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | public function __toString() |
59 | 59 | { |
60 | - return (string)$this->name; |
|
60 | + return (string) $this->name; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getId(): int |
67 | 67 | { |
68 | - return (int)$this->id; |
|
68 | + return (int) $this->id; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getExternalId(): int |
85 | 85 | { |
86 | - return (int)$this->externalId; |
|
86 | + return (int) $this->externalId; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function getId(): int |
97 | 97 | { |
98 | - return (int)$this->id; |
|
98 | + return (int) $this->id; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function getIdentifier(): string |
115 | 115 | { |
116 | - return (string)$this->identifier; |
|
116 | + return (string) $this->identifier; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function getType(): string |
133 | 133 | { |
134 | - return (string)$this->type; |
|
134 | + return (string) $this->type; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function getStatus(): string |
151 | 151 | { |
152 | - return (string)$this->status; |
|
152 | + return (string) $this->status; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | |
404 | 404 | public function __toString() |
405 | 405 | { |
406 | - return (string)$this->number; |
|
406 | + return (string) $this->number; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | /** |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | |
483 | 483 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
484 | 484 | { |
485 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
485 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
486 | 486 | return $element->getExternalId() === $manufacturer->getExternalId(); |
487 | 487 | }); |
488 | 488 | } |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | $variantGroup = $variantGroup->getExternalId(); |
508 | 508 | } |
509 | 509 | |
510 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
510 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
511 | 511 | return $element->getExternalId() === $variantGroup; |
512 | 512 | }); |
513 | 513 | } |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | $product = $product->getExternalId(); |
571 | 571 | } |
572 | 572 | |
573 | - return $this->children->exists(function ($key, ProductInterface $element) use ($product) { |
|
573 | + return $this->children->exists(function($key, ProductInterface $element) use ($product) { |
|
574 | 574 | return $element->getExternalId() === $product; |
575 | 575 | }); |
576 | 576 | } |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | */ |
584 | 584 | public function getId(): int |
585 | 585 | { |
586 | - return (int)$this->id; |
|
586 | + return (int) $this->id; |
|
587 | 587 | } |
588 | 588 | |
589 | 589 | /** |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | */ |
602 | 602 | public function getExternalId(): int |
603 | 603 | { |
604 | - return (int)$this->externalId; |
|
604 | + return (int) $this->externalId; |
|
605 | 605 | } |
606 | 606 | |
607 | 607 | /** |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | */ |
998 | 998 | public function getNumber() |
999 | 999 | { |
1000 | - return (string)$this->number; |
|
1000 | + return (string) $this->number; |
|
1001 | 1001 | } |
1002 | 1002 | |
1003 | 1003 | /** |
@@ -373,7 +373,7 @@ |
||
373 | 373 | $this->payCode = $payCode; |
374 | 374 | $this->setIsoCodeNumeric($payCode); |
375 | 375 | |
376 | - if($payCode) { |
|
376 | + if ($payCode) { |
|
377 | 377 | $iso4217 = new ISO4217(); |
378 | 378 | $currency = $iso4217->getByNumeric($payCode); |
379 | 379 | $this->setIsoCodeAlpha($currency['alpha3']); |