Completed
Push — master ( 73b08b...9131b2 )
by Laurens
02:28
created
src/IzettleClientFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 final class IzettleClientFactory
28 28
 {
29
-    public static function getProductClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): ProductClient
29
+    public static function getProductClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : ProductClient
30 30
     {
31 31
         $categoryBuilder = new CategoryBuilder();
32 32
         $imageBuilder = new ImageBuilder();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         );
62 62
     }
63 63
 
64
-    public static function getFinanceClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): FinanceClient
64
+    public static function getFinanceClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : FinanceClient
65 65
     {
66 66
         return new FinanceClient(
67 67
             $client,
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         );
72 72
     }
73 73
 
74
-    public static function getImageClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null): ImageClient
74
+    public static function getImageClient(IzettleClientInterface $client, ?UuidInterface $organizationUuid = null) : ImageClient
75 75
     {
76 76
         return new ImageClient($client, $organizationUuid, new ImageBuilder());
77 77
     }
Please login to merge, or discard this patch.
src/API/Image.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API;
6 6
 
@@ -22,11 +22,11 @@  discard block
 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/Coordinates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Purchase;
6 6
 
Please login to merge, or discard this patch.
src/API/Purchase/Exception/InvalidLatitudeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Purchase\Exception;
6 6
 
Please login to merge, or discard this patch.
src/API/Purchase/PurchaseHistory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Purchase;
6 6
 
@@ -41,7 +41,7 @@  discard block
 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/API/Purchase/Payment/VippsPayment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Purchase\Payment;
6 6
 
Please login to merge, or discard this patch.
src/API/ImageCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API;
6 6
 
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /** @var Image[]  */
10 10
     private $collection = [];
11 11
 
12
-    public function __construct(?array $images = [])
12
+    public function __construct(? array $images = [])
13 13
     {
14 14
         foreach ($images as $image) {
15 15
             if ($image instanceof Image) {
Please login to merge, or discard this patch.
src/API/Finance/AccountTransaction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Finance;
6 6
 
Please login to merge, or discard this patch.
src/API/Finance/Enum/TransactionType.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LauLamanApps\IzettleApi\API\Finance\Enum;
6 6
 
@@ -8,26 +8,26 @@  discard block
 block discarded – undo
8 8
 
9 9
 final class TransactionType extends AbstractEnum
10 10
 {
11
-    const CARD_PAYMENT ='CARD_PAYMENT';
12
-    const CARD_REFUND ='CARD_REFUND';
13
-    const BANK_ACCOUNT_VERIFICATION ='BANK_ACCOUNT_VERIFICATION';
14
-    const PAYOUT ='PAYOUT';
15
-    const FAILED_PAYOUT ='FAILED_PAYOUT';
16
-    const CASH_BACK ='CASHBACK';
17
-    const CASH_BACK_PAYOUT ='CASHBACK_PAYOUT';
18
-    const VOUCHER_ACTIVATION ='VOUCHER_ACTIVATION';
19
-    const E_MONEY_TRANSFER ='EMONEY_TRANSFER';
20
-    const TELL_FRIEND ='TELL_FRIEND';
21
-    const FROZEN_FUNDS ='FROZEN_FUNDS';
22
-    const FEE_DISCOUNT_REVOCATION ='FEE_DISCOUNT_REVOCATION';
23
-    const CARD_PAYMENT_FEE ='CARD_PAYMENT_FEE';
24
-    const CARD_PAYMENT_FEE_REFUND ='CARD_PAYMENT_FEE_REFUND';
25
-    const ADVANCE ='ADVANCE';
26
-    const ADVANCE_FEE ='ADVANCE_FEE';
27
-    const ADVANCE_DOWN_PAYMENT ='ADVANCE_DOWNPAYMENT';
28
-    const ADVANCE_FEE_DOWN_PAYMENT ='ADVANCE_FEE_DOWNPAYMENT';
29
-    const SUBSCRIPTION_CHARGE ='SUBSCRIPTION_CHARGE';
30
-    const INVOICE_PAYMENT ='INVOICE_PAYMENT';
31
-    const INVOICE_PAYMENT_FEE ='INVOICE_PAYMENT_FEE';
32
-    const ADJUSTMENT ='ADJUSTMENT';
11
+    const CARD_PAYMENT = 'CARD_PAYMENT';
12
+    const CARD_REFUND = 'CARD_REFUND';
13
+    const BANK_ACCOUNT_VERIFICATION = 'BANK_ACCOUNT_VERIFICATION';
14
+    const PAYOUT = 'PAYOUT';
15
+    const FAILED_PAYOUT = 'FAILED_PAYOUT';
16
+    const CASH_BACK = 'CASHBACK';
17
+    const CASH_BACK_PAYOUT = 'CASHBACK_PAYOUT';
18
+    const VOUCHER_ACTIVATION = 'VOUCHER_ACTIVATION';
19
+    const E_MONEY_TRANSFER = 'EMONEY_TRANSFER';
20
+    const TELL_FRIEND = 'TELL_FRIEND';
21
+    const FROZEN_FUNDS = 'FROZEN_FUNDS';
22
+    const FEE_DISCOUNT_REVOCATION = 'FEE_DISCOUNT_REVOCATION';
23
+    const CARD_PAYMENT_FEE = 'CARD_PAYMENT_FEE';
24
+    const CARD_PAYMENT_FEE_REFUND = 'CARD_PAYMENT_FEE_REFUND';
25
+    const ADVANCE = 'ADVANCE';
26
+    const ADVANCE_FEE = 'ADVANCE_FEE';
27
+    const ADVANCE_DOWN_PAYMENT = 'ADVANCE_DOWNPAYMENT';
28
+    const ADVANCE_FEE_DOWN_PAYMENT = 'ADVANCE_FEE_DOWNPAYMENT';
29
+    const SUBSCRIPTION_CHARGE = 'SUBSCRIPTION_CHARGE';
30
+    const INVOICE_PAYMENT = 'INVOICE_PAYMENT';
31
+    const INVOICE_PAYMENT_FEE = 'INVOICE_PAYMENT_FEE';
32
+    const ADJUSTMENT = 'ADJUSTMENT';
33 33
 }
Please login to merge, or discard this patch.