Completed
Branch add-single-product-endpoint (3e130a)
by Laurens
05:53 queued 02:51
created
src/GuzzleIzettleClient.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $url = self::API_AUTHORIZE_USER_LOGIN_URL;
59 59
         $url .= '?response_type=code';
60
-        $url .= '&redirect_uri=' . $redirectUrl;
61
-        $url .= '&client_id=' . $this->clientId;
62
-        $url .= '&scope=' . $apiScope->getUrlParameters();
60
+        $url .= '&redirect_uri='.$redirectUrl;
61
+        $url .= '&client_id='.$this->clientId;
62
+        $url .= '&scope='.$apiScope->getUrlParameters();
63 63
         $url .= '&state=oauth2';
64 64
 
65 65
         return $url;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         return $this->accessToken;
109 109
     }
110 110
 
111
-    public function refreshAccessToken(?AccessToken $accessToken =  null): AccessToken
111
+    public function refreshAccessToken(?AccessToken $accessToken = null): AccessToken
112 112
     {
113 113
         $accessToken = $accessToken ?? $this->accessToken;
114 114
         $options = [
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     public function get(string $url, ?array $queryParameters = null): ResponseInterface
129 129
     {
130
-        $options =  array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
130
+        $options = array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
131 131
 
132 132
         try {
133 133
             $response = $this->guzzleClient->get($url, $options);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             ]
152 152
         );
153 153
 
154
-        $options =  array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]);
154
+        $options = array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]);
155 155
 
156 156
         try {
157 157
             return $this->guzzleClient->post($url, $options);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             ]
174 174
         );
175 175
 
176
-        $options =  array_merge(['headers' => $headers], ['body' => $jsonData]);
176
+        $options = array_merge(['headers' => $headers], ['body' => $jsonData]);
177 177
 
178 178
         try {
179 179
             $this->guzzleClient->put($url, $options);
Please login to merge, or discard this patch.