Completed
Push — master ( 73b08b...9131b2 )
by Laurens
02:28
created
src/Client/ApiScope.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -71,19 +71,19 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $scope = [];
73 73
         if (!is_null($this->finance)) {
74
-            $scope[] = self::FINANCE . ':' . $this->finance->getValue();
74
+            $scope[] = self::FINANCE.':'.$this->finance->getValue();
75 75
         }
76 76
         if (!is_null($this->purchase)) {
77
-            $scope[] = self::PURCHASE . ':' . $this->purchase->getValue();
77
+            $scope[] = self::PURCHASE.':'.$this->purchase->getValue();
78 78
         }
79 79
         if (!is_null($this->product)) {
80
-            $scope[] = self::PRODUCT . ':' . $this->product->getValue();
80
+            $scope[] = self::PRODUCT.':'.$this->product->getValue();
81 81
         }
82 82
         if (!is_null($this->inventory)) {
83
-            $scope[] = self::INVENTORY . ':' . $this->inventory->getValue();
83
+            $scope[] = self::INVENTORY.':'.$this->inventory->getValue();
84 84
         }
85 85
         if (!is_null($this->image)) {
86
-            $scope[] = self::IMAGE . ':' . $this->image->getValue();
86
+            $scope[] = self::IMAGE.':'.$this->image->getValue();
87 87
         }
88 88
 
89 89
         return implode(' ', $scope);
Please login to merge, or discard this patch.
src/API/Product/Category.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\Product;
6 6
 
Please login to merge, or discard this patch.
src/IzettleClientInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 interface IzettleClientInterface
11 11
 {
12 12
     const API_BASE_URL = 'https://oauth.izettle.net';
13
-    const API_AUTHORIZE_USER_LOGIN_URL = self::API_BASE_URL . '/authorize';
13
+    const API_AUTHORIZE_USER_LOGIN_URL = self::API_BASE_URL.'/authorize';
14 14
 
15
-    const API_ACCESS_TOKEN_REQUEST_URL = self::API_BASE_URL . '/token';
15
+    const API_ACCESS_TOKEN_REQUEST_URL = self::API_BASE_URL.'/token';
16 16
     const API_ACCESS_TOKEN_PASSWORD_GRANT = 'password';
17
-    const API_ACCESS_TOKEN_REFRESH_TOKEN_URL = self::API_BASE_URL . '/token';
17
+    const API_ACCESS_TOKEN_REFRESH_TOKEN_URL = self::API_BASE_URL.'/token';
18 18
     const API_ACCESS_TOKEN_REFRESH_TOKEN_GRANT = 'refresh_token';
19 19
 
20 20
     public function setAccessToken(AccessToken $accessToken): void;
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function getAccessTokenFromUserLogin(string $username, string $password): AccessToken;
25 25
 
26
-    public function refreshAccessToken(?AccessToken $accessToken =  null): AccessToken;
26
+    public function refreshAccessToken(?AccessToken $accessToken = null) : AccessToken;
27 27
 
28
-    public function get(string $url, ?array $queryParameters = null): ResponseInterface;
28
+    public function get(string $url, ? array $queryParameters = null) : ResponseInterface;
29 29
 
30 30
     public function post(string $url, IzettlePostable $object): ResponseInterface;
31 31
 
Please login to merge, or discard this patch.
src/API/Universal/IzettlePostable.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\Universal;
6 6
 
Please login to merge, or discard this patch.
src/Client/Exception/InvalidGrant/InvalidUsernameOrPasswordException.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\Exception\InvalidGrant;
6 6
 
Please login to merge, or discard this patch.
src/Client/Exception/InvalidClient/InvalidClientIdException.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\Exception\InvalidClient;
6 6
 
Please login to merge, or discard this patch.
src/Client/Purchase/Exception/PaymentTypeNotConfiguredException.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\Purchase\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Client/Purchase/Exception/PurchaseNotFoundException.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\Purchase\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Client/Exception/InvalidGrant/TooManyFailedAttemptsException.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\Exception\InvalidGrant;
6 6
 
Please login to merge, or discard this patch.