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/Exception/NotFoundException.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\Exception;
6 6
 
Please login to merge, or discard this patch.
src/Exception/IzettleApiException.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\Exception;
6 6
 
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/AbstractPayment.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/Purchase.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.