Test Failed
Push — master ( 197c32...288fe1 )
by Laurens
12:52 queued 07:02
created
src/API/Product/Discount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/API/Product/CategoryCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
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[] */
Please login to merge, or discard this patch.
src/API/Product/VariantCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
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[] */
Please login to merge, or discard this patch.
src/API/Product/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         ?string $description = null,
34 34
         ImageCollection $imageCollection,
35 35
         VariantCollection $variants,
36
-        ?string $externalReference =  null,
36
+        ?string $externalReference = null,
37 37
         string $etag,
38 38
         DateTime $updatedAt,
39 39
         UuidInterface $updatedBy,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/API/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/API/Purchase/PurchaseHistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Client/FinanceClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 {
22 22
     const BASE_URL = 'https://finance.izettle.com/organizations/%s';
23 23
 
24
-    const GET_ACCOUNT_TRANSACTIONS = self::BASE_URL . '/accounts/%s/transactions';
25
-    const GET_ACCOUNT_BALANCE = self::BASE_URL . '/accounts/%s/balance';
24
+    const GET_ACCOUNT_TRANSACTIONS = self::BASE_URL.'/accounts/%s/transactions';
25
+    const GET_ACCOUNT_BALANCE = self::BASE_URL.'/accounts/%s/balance';
26 26
 
27
-    const GET_PAYOUT_INFO = self::BASE_URL . '/payout-info';
27
+    const GET_PAYOUT_INFO = self::BASE_URL.'/payout-info';
28 28
 
29 29
     /**
30 30
      * @var IzettleClientInterface
Please login to merge, or discard this patch.
src/Client/ProductClient.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -23,30 +23,30 @@
 block discarded – undo
23 23
 {
24 24
     const BASE_URL = 'https://products.izettle.com/organizations/%s';
25 25
 
26
-    const POST_CATEGORY = self::BASE_URL . '/categories';
27
-    const GET_CATEGORY = self::BASE_URL . '/categories/%s';
28
-    const GET_CATEGORIES = self::BASE_URL . '/categories';
29
-
30
-    const POST_DISCOUNT = self::BASE_URL . '/discounts';
31
-    const GET_DISCOUNT = self::BASE_URL . '/discounts/%s';
32
-    const PUT_DISCOUNT = self::BASE_URL . '/discounts/%s';
33
-    const DELETE_DISCOUNT = self::BASE_URL . '/discounts/%s';
34
-    const GET_DISCOUNTS = self::BASE_URL . '/discounts';
35
-
36
-    const GET_EXPORT = self::BASE_URL . '/products/%s';
37
-    const GET_EXPORT_TEMPLATE = self::BASE_URL . '/products/%s/template';
38
-
39
-    const GET_LIBRARY = self::BASE_URL . '/library';
40
-
41
-    const POST_PRODUCT = self::BASE_URL . '/products';
42
-    const GET_PRODUCT = self::BASE_URL . '/products/%s';
43
-    const PUT_PRODUCT = self::BASE_URL . '/products/v2/%s';
44
-    const DELETE_PRODUCT = self::BASE_URL . '/products/%s';
45
-    const POST_PRODUCT_VARIANT = self::BASE_URL . '/products/%s/variants';
46
-    const PUT_PRODUCT_VARIANT = self::BASE_URL . '/products/%s/variants/%s';
47
-    const DELETE_PRODUCT_VARIANT = self::BASE_URL . '/products/%s/variants/%s';
48
-    const GET_PRODUCTS = self::BASE_URL . '/products';
49
-    const DELETE_PRODUCTS = self::BASE_URL . '/products';
26
+    const POST_CATEGORY = self::BASE_URL.'/categories';
27
+    const GET_CATEGORY = self::BASE_URL.'/categories/%s';
28
+    const GET_CATEGORIES = self::BASE_URL.'/categories';
29
+
30
+    const POST_DISCOUNT = self::BASE_URL.'/discounts';
31
+    const GET_DISCOUNT = self::BASE_URL.'/discounts/%s';
32
+    const PUT_DISCOUNT = self::BASE_URL.'/discounts/%s';
33
+    const DELETE_DISCOUNT = self::BASE_URL.'/discounts/%s';
34
+    const GET_DISCOUNTS = self::BASE_URL.'/discounts';
35
+
36
+    const GET_EXPORT = self::BASE_URL.'/products/%s';
37
+    const GET_EXPORT_TEMPLATE = self::BASE_URL.'/products/%s/template';
38
+
39
+    const GET_LIBRARY = self::BASE_URL.'/library';
40
+
41
+    const POST_PRODUCT = self::BASE_URL.'/products';
42
+    const GET_PRODUCT = self::BASE_URL.'/products/%s';
43
+    const PUT_PRODUCT = self::BASE_URL.'/products/v2/%s';
44
+    const DELETE_PRODUCT = self::BASE_URL.'/products/%s';
45
+    const POST_PRODUCT_VARIANT = self::BASE_URL.'/products/%s/variants';
46
+    const PUT_PRODUCT_VARIANT = self::BASE_URL.'/products/%s/variants/%s';
47
+    const DELETE_PRODUCT_VARIANT = self::BASE_URL.'/products/%s/variants/%s';
48
+    const GET_PRODUCTS = self::BASE_URL.'/products';
49
+    const DELETE_PRODUCTS = self::BASE_URL.'/products';
50 50
 
51 51
     private $client;
52 52
     private $organizationUuid;
Please login to merge, or discard this patch.
src/Client/ImageClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 final class ImageClient
14 14
 {
15 15
     const BASE_URL = 'https://image.izettle.com/organizations/%s';
16
-    const POST_IMAGE = self::BASE_URL . '/products';
16
+    const POST_IMAGE = self::BASE_URL.'/products';
17 17
 
18 18
     private $client;
19 19
     private $organizationUuid = 'self';
Please login to merge, or discard this patch.