Passed
Branch master (73b08b)
by Laurens
02:14
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/GuzzleIzettleClient.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;
6 6
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         return $this->accessToken;
66 66
     }
67 67
 
68
-    public function refreshAccessToken(?AccessToken $accessToken =  null): AccessToken
68
+    public function refreshAccessToken(?AccessToken $accessToken = null) : AccessToken
69 69
     {
70 70
         $accessToken = $accessToken ?? $this->accessToken;
71 71
         $options = [
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
         return $this->accessToken;
83 83
     }
84 84
 
85
-    public function get(string $url, ?array $queryParameters = null): ResponseInterface
85
+    public function get(string $url, ? array $queryParameters = null) : ResponseInterface
86 86
     {
87
-        $options =  array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
87
+        $options = array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
88 88
 
89 89
         try {
90 90
             $response = $this->guzzleClient->get($url, $options);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             ]
106 106
         );
107 107
 
108
-        $options =  array_merge(['headers' => $headers], ['body' => $jsonData]);
108
+        $options = array_merge(['headers' => $headers], ['body' => $jsonData]);
109 109
 
110 110
         return $this->guzzleClient->post($url, $options);
111 111
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             ]
121 121
         );
122 122
 
123
-        $options =  array_merge(['headers' => $headers], ['body' => $jsonData]);
123
+        $options = array_merge(['headers' => $headers], ['body' => $jsonData]);
124 124
 
125 125
         $this->guzzleClient->put($url, $options);
126 126
     }
Please login to merge, or discard this patch.
src/Client/Universal/ImageBuilder.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\Universal;
6 6
 
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/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.
src/Client/Image/Exceptions/MaximumImageFileSizeExcededException.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.
src/Client/Image/Exceptions/FileIsNotAnImageException.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.
src/Client/Image/Exceptions/ImageTypeNotAllowedException.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.
src/Client/Image/ImageFileUpload.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;
6 6
 
Please login to merge, or discard this patch.