@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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'; |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |