@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** @var Category[] */ |
| 12 | 12 | private $collection = []; |
| 13 | 13 | |
| 14 | - public function __construct(?array $categories = []) |
|
| 14 | + public function __construct(? array $categories = []) |
|
| 15 | 15 | { |
| 16 | 16 | foreach ($categories as $category) { |
| 17 | 17 | $this->add($category); |
@@ -25,12 +25,12 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function remove(Category $category): void |
| 27 | 27 | { |
| 28 | - unset($this->collection[(string)$category->getUuid()]); |
|
| 28 | + unset($this->collection[(string) $category->getUuid()]); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function get(UuidInterface $key): Category |
| 32 | 32 | { |
| 33 | - return $this->collection[(string)$key]; |
|
| 33 | + return $this->collection[(string) $key]; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** @return Category[] */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** @var Product[] */ |
| 12 | 12 | private $collection = []; |
| 13 | 13 | |
| 14 | - public function __construct(?array $products = []) |
|
| 14 | + public function __construct(? array $products = []) |
|
| 15 | 15 | { |
| 16 | 16 | foreach ($products as $product) { |
| 17 | 17 | $this->add($product); |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** @var Discount[] */ |
| 12 | 12 | private $collection = []; |
| 13 | 13 | |
| 14 | - public function __construct(?array $discounts = []) |
|
| 14 | + public function __construct(? array $discounts = []) |
|
| 15 | 15 | { |
| 16 | 16 | foreach ($discounts as $discount) { |
| 17 | 17 | $this->add($discount); |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** @var Variant[] */ |
| 12 | 12 | private $collection = []; |
| 13 | 13 | |
| 14 | - public function __construct(?array $variants = []) |
|
| 14 | + public function __construct(? array $variants = []) |
|
| 15 | 15 | { |
| 16 | 16 | foreach ($variants as $variant) { |
| 17 | 17 | $this->add($variant); |
@@ -25,12 +25,12 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function remove(Variant $variant): void |
| 27 | 27 | { |
| 28 | - unset($this->collection[(string)$variant->getUuid()]); |
|
| 28 | + unset($this->collection[(string) $variant->getUuid()]); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function get(UuidInterface $key): Variant |
| 32 | 32 | { |
| 33 | - return $this->collection[(string)$key]; |
|
| 33 | + return $this->collection[(string) $key]; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** @return Variant[] */ |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -32,13 +32,13 @@ discard block |
||
| 32 | 32 | ?string $description = null, |
| 33 | 33 | ImageCollection $imageCollection, |
| 34 | 34 | VariantCollection $variants, |
| 35 | - ?string $externalReference = null, |
|
| 35 | + ?string $externalReference = null, |
|
| 36 | 36 | string $etag, |
| 37 | 37 | DateTime $updatedAt, |
| 38 | 38 | UuidInterface $updatedBy, |
| 39 | 39 | DateTime $createdAt, |
| 40 | 40 | float $vatPercentage |
| 41 | - ): self { |
|
| 41 | + ) : self { |
|
| 42 | 42 | return new self( |
| 43 | 43 | $uuid, |
| 44 | 44 | $categories, |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ImageCollection $imageCollection, |
| 63 | 63 | VariantCollection $variants, |
| 64 | 64 | ?string $externalReference = null |
| 65 | - ): self { |
|
| 65 | + ) : self { |
|
| 66 | 66 | return new self( |
| 67 | 67 | Uuid::uuid1(), |
| 68 | 68 | $categories, |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | DateTime $updatedAt, |
| 37 | 37 | UuidInterface $updatedBy, |
| 38 | 38 | DateTime $createdAt |
| 39 | - ): self { |
|
| 39 | + ) : self { |
|
| 40 | 40 | return new self( |
| 41 | 41 | $uuid, |
| 42 | 42 | $name, |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | ?Money $amount = null, |
| 60 | 60 | ?float $percentage = null, |
| 61 | 61 | ?string $externalReference = null |
| 62 | - ): self { |
|
| 62 | + ) : self { |
|
| 63 | 63 | return new self( |
| 64 | 64 | Uuid::uuid1(), |
| 65 | 65 | $name, |
@@ -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 | namespace LauLamanApps\IzettleApi\API\Product; |
| 6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | Money $price, |
| 33 | 33 | ?Money $costPrice = null, |
| 34 | 34 | float $vatPercentage |
| 35 | - ): self { |
|
| 35 | + ) : self { |
|
| 36 | 36 | return new self( |
| 37 | 37 | $uuid, |
| 38 | 38 | $name, |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | Money $price, |
| 58 | 58 | ?Money $costPrice = null, |
| 59 | 59 | float $vatPercentage |
| 60 | - ): self { |
|
| 60 | + ) : self { |
|
| 61 | 61 | return new self( |
| 62 | 62 | Uuid::uuid1(), |
| 63 | 63 | $name, |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | ]; |
| 141 | 141 | |
| 142 | 142 | if ($this->costPrice) { |
| 143 | - $data['costPrice'] =[ |
|
| 143 | + $data['costPrice'] = [ |
|
| 144 | 144 | 'amount' => $this->costPrice->getAmount(), |
| 145 | 145 | 'currencyId' => (string) $this->costPrice->getCurrency() |
| 146 | 146 | ]; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace LauLamanApps\IzettleApi\Client\Universal; |
| 6 | 6 | |