@@ -93,7 +93,7 @@ |
||
| 93 | 93 | */ |
| 94 | 94 | protected function buildAuthHeader($accessToken = "") |
| 95 | 95 | { |
| 96 | - return ['Authorization' => 'Bearer '. $accessToken]; |
|
| 96 | + return ['Authorization' => 'Bearer ' . $accessToken]; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | 'state' => $state, |
| 116 | 116 | ], $params); |
| 117 | 117 | |
| 118 | - if(!is_null($redirectUri)) { |
|
| 118 | + if (!is_null($redirectUri)) { |
|
| 119 | 119 | $params['redirect_uri'] = $redirectUri; |
| 120 | 120 | } |
| 121 | 121 | |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | $body = $this->getBody(); |
| 158 | 158 | |
| 159 | 159 | if (isset($this->headers['Content-Type']) && in_array('application/json', $this->headers['Content-Type'])) { |
| 160 | - $this->decodedBody = json_decode((string)$body, true); |
|
| 160 | + $this->decodedBody = json_decode((string) $body, true); |
|
| 161 | 161 | } else { |
| 162 | 162 | $this->decodedBody = $this->body; |
| 163 | 163 | } |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * Get the Request Params |
|
| 116 | - * |
|
| 117 | - * @return array |
|
| 118 | - */ |
|
| 115 | + * Get the Request Params |
|
| 116 | + * |
|
| 117 | + * @return array |
|
| 118 | + */ |
|
| 119 | 119 | public function getParams() |
| 120 | 120 | { |
| 121 | 121 | return $this->params; |
@@ -196,12 +196,12 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * Set the Request Params |
|
| 200 | - * |
|
| 201 | - * @param array |
|
| 202 | - * |
|
| 203 | - * @return \Kunnu\Dropbox\DropboxRequest |
|
| 204 | - */ |
|
| 199 | + * Set the Request Params |
|
| 200 | + * |
|
| 201 | + * @param array |
|
| 202 | + * |
|
| 203 | + * @return \Kunnu\Dropbox\DropboxRequest |
|
| 204 | + */ |
|
| 205 | 205 | public function setParams(array $params = []) |
| 206 | 206 | { |
| 207 | 207 | //Process Params |