@@ -60,7 +60,7 @@ |
||
60 | 60 | ?Money $amount = null, |
61 | 61 | ?float $percentage = null, |
62 | 62 | ?string $externalReference = null |
63 | - ): self { |
|
63 | + ) : self { |
|
64 | 64 | return new self( |
65 | 65 | Uuid::uuid1(), |
66 | 66 | $name, |
@@ -25,12 +25,12 @@ |
||
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[] */ |
@@ -25,12 +25,12 @@ |
||
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[] */ |
@@ -22,11 +22,11 @@ |
||
22 | 22 | |
23 | 23 | public function getSmallImageUrl(): string |
24 | 24 | { |
25 | - return self::BASE_URL . 'L/' . $this->getFilename(); |
|
25 | + return self::BASE_URL.'L/'.$this->getFilename(); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function getLargeImageUrl(): string |
29 | 29 | { |
30 | - return self::BASE_URL . 'o/' . $this->getFilename(); |
|
30 | + return self::BASE_URL.'o/'.$this->getFilename(); |
|
31 | 31 | } |
32 | 32 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | public function removePurchase(Purchase $purchase): void |
43 | 43 | { |
44 | - unset($this->purchases[(string)$purchase->getUuid()]); |
|
44 | + unset($this->purchases[(string) $purchase->getUuid()]); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function getPurchases(): array |
@@ -53,7 +53,7 @@ |
||
53 | 53 | return $this->parseVippsPayment($payment, $currency); |
54 | 54 | } |
55 | 55 | |
56 | - throw new PaymentTypeNotConfiguredException('Payment type \'' . $payment['type'] . '\' not configured'); |
|
56 | + throw new PaymentTypeNotConfiguredException('Payment type \''.$payment['type'].'\' not configured'); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | private function parseCardPayment($payment, Currency $currency): CardPayment |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | public function buildFromJson(string $jsonData): PurchaseHistory |
20 | 20 | { |
21 | - $data = json_decode($jsonData, true); |
|
21 | + $data = json_decode($jsonData, true); |
|
22 | 22 | |
23 | 23 | return new PurchaseHistory( |
24 | 24 | $data['firstPurchaseHash'], |
@@ -63,7 +63,7 @@ |
||
63 | 63 | ImageCollection $imageCollection, |
64 | 64 | VariantCollection $variants, |
65 | 65 | ?string $externalReference = null |
66 | - ): self { |
|
66 | + ) : self { |
|
67 | 67 | return new self( |
68 | 68 | Uuid::uuid1(), |
69 | 69 | $categories, |
@@ -13,7 +13,7 @@ |
||
13 | 13 | final class ImageClient |
14 | 14 | { |
15 | 15 | public const BASE_URL = 'https://image.izettle.com/organizations/%s'; |
16 | - public const POST_IMAGE = self::BASE_URL . '/products'; |
|
16 | + public const POST_IMAGE = self::BASE_URL.'/products'; |
|
17 | 17 | |
18 | 18 | private $client; |
19 | 19 | private $organizationUuid = 'self'; |