Completed
Push — master ( b72ee4...c33233 )
by Laurens
10:45
created
src/GuzzleIzettleClient.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $url = self::API_AUTHORIZE_USER_LOGIN_URL;
58 58
         $url .= '?response_type=code';
59
-        $url .= '&redirect_uri=' . $redirectUrl;
60
-        $url .= '&client_id=' . $this->clientId;
61
-        $url .= '&scope=' . $apiScope->getUrlParameters();
59
+        $url .= '&redirect_uri='.$redirectUrl;
60
+        $url .= '&client_id='.$this->clientId;
61
+        $url .= '&scope='.$apiScope->getUrlParameters();
62 62
         $url .= '&state=oauth2';
63 63
 
64 64
         return $url;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         return $this->accessToken;
108 108
     }
109 109
 
110
-    public function refreshAccessToken(?AccessToken $accessToken =  null): AccessToken
110
+    public function refreshAccessToken(?AccessToken $accessToken = null): AccessToken
111 111
     {
112 112
         $accessToken = $accessToken ?? $this->accessToken;
113 113
         $options = [
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
     public function get(string $url, ?array $queryParameters = null): ResponseInterface
128 128
     {
129
-        $options =  array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
129
+        $options = array_merge(['headers' => $this->getAuthorizationHeader()], ['query' => $queryParameters]);
130 130
 
131 131
         try {
132 132
             $response = $this->guzzleClient->get($url, $options);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             ]
151 151
         );
152 152
 
153
-        $options =  array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]);
153
+        $options = array_merge(['headers' => $headers], ['body' => $postable->getPostBodyData()]);
154 154
         try {
155 155
             return $this->guzzleClient->post($url, $options);
156 156
         } catch (ClientException $exception) {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             ]
172 172
         );
173 173
 
174
-        $options =  array_merge(['headers' => $headers], ['body' => $jsonData]);
174
+        $options = array_merge(['headers' => $headers], ['body' => $jsonData]);
175 175
 
176 176
         try {
177 177
             $this->guzzleClient->put($url, $options);
Please login to merge, or discard this patch.