Passed
Branch master (73b08b)
by Laurens
02:14
created
src/Client/FinanceClient.php 1 patch
Spacing   +7 added lines, -7 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\Client;
6 6
 
@@ -21,10 +21,10 @@  discard block
 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
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         DateTime $end,
68 68
         ?int $limit = null,
69 69
         ?int $offset = null
70
-    ): array {
70
+    ) : array {
71 71
         $url = sprintf(self::GET_ACCOUNT_TRANSACTIONS, $this->organizationUuid, $accountTypeGroup->getValue());
72 72
         $queryParams = [
73 73
             'start' => $start->format('Y-m-d'),
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         return $this->accountTransactionBuilder->buildFromJson($json);
87 87
     }
88 88
 
89
-    public function getBalanceInfo(AccountTypeGroup $accountTypeGroup, ?DateTime $at = null): Money
89
+    public function getBalanceInfo(AccountTypeGroup $accountTypeGroup, ?DateTime $at = null) : Money
90 90
     {
91 91
         $url = sprintf(self::GET_ACCOUNT_BALANCE, $this->organizationUuid, $accountTypeGroup->getValue());
92 92
         $response = $this->client->get($url, ['at' => $at ? $at->format('Y-m-d') : null]);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         return new Money($data['totalBalance'], $currency);
97 97
     }
98 98
 
99
-    public function getPayoutInfo(?DateTime $at = null): PayoutInfo
99
+    public function getPayoutInfo(?DateTime $at = null) : PayoutInfo
100 100
     {
101 101
         $url = sprintf(self::GET_PAYOUT_INFO, $this->organizationUuid);
102 102
         $json = $this->client->getJson(
Please login to merge, or discard this patch.
src/Client/ImageClient.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\Client;
6 6
 
@@ -13,7 +13,7 @@  discard block
 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.
src/Client/Product/VariantBuilder.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Product/LibraryBuilder.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Product/ProductBuilderInterface.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Product/CategoryBuilder.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Product/DiscountBuilder.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Product/ProductBuilder.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\Client\Product;
6 6
 
Please login to merge, or discard this patch.
src/Client/Image/Exceptions/ImageIsToSmallException.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\Client\Image\Exceptions;
6 6
 
Please login to merge, or discard this patch.