@@ -377,11 +377,11 @@ discard block |
||
377 | 377 | |
378 | 378 | public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true) |
379 | 379 | { |
380 | - if($data['created']) { |
|
380 | + if ($data['created']) { |
|
381 | 381 | $data['created'] = $this->getDateTimeFromJson($data['created']); |
382 | 382 | } |
383 | 383 | |
384 | - if($data['updated']) { |
|
384 | + if ($data['updated']) { |
|
385 | 385 | $data['updated'] = $this->getDateTimeFromJson($data['updated']); |
386 | 386 | } |
387 | 387 | |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | |
436 | 436 | public function hasManufacturer(ManufacturerInterface $manufacturer) : bool |
437 | 437 | { |
438 | - return $this->manufacturers->exists(function ($key, ManufacturerInterface $element) use ($manufacturer) { |
|
438 | + return $this->manufacturers->exists(function($key, ManufacturerInterface $element) use ($manufacturer) { |
|
439 | 439 | return $element->getExternalId() === $manufacturer->getExternalId(); |
440 | 440 | }); |
441 | 441 | } |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | $variantGroup = $variantGroup->getExternalId(); |
461 | 461 | } |
462 | 462 | |
463 | - return $this->variantGroups->exists(function ($key, VariantGroupInterface $element) use ($variantGroup) { |
|
463 | + return $this->variantGroups->exists(function($key, VariantGroupInterface $element) use ($variantGroup) { |
|
464 | 464 | return $element->getExternalId() === $variantGroup; |
465 | 465 | }); |
466 | 466 | } |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | */ |
510 | 510 | public function getId(): int |
511 | 511 | { |
512 | - return (int)$this->id; |
|
512 | + return (int) $this->id; |
|
513 | 513 | } |
514 | 514 | |
515 | 515 | /** |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | */ |
528 | 528 | public function getExternalId(): int |
529 | 529 | { |
530 | - return (int)$this->externalId; |
|
530 | + return (int) $this->externalId; |
|
531 | 531 | } |
532 | 532 | |
533 | 533 | /** |
@@ -296,11 +296,11 @@ |
||
296 | 296 | |
297 | 297 | public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true) |
298 | 298 | { |
299 | - if($data['expectedDeliveryTime']) { |
|
299 | + if ($data['expectedDeliveryTime']) { |
|
300 | 300 | $data['expectedDeliveryTime'] = $this->getDateTimeFromJson($data['expectedDeliveryTime']); |
301 | 301 | } |
302 | 302 | |
303 | - if($data['expectedDeliveryTimeNotInStock']) { |
|
303 | + if ($data['expectedDeliveryTimeNotInStock']) { |
|
304 | 304 | $data['expectedDeliveryTimeNotInStock'] = $this->getDateTimeFromJson($data['expectedDeliveryTimeNotInStock']); |
305 | 305 | } |
306 | 306 |