@@ -289,14 +289,17 @@ |
||
289 | 289 | */ |
290 | 290 | private function getAccessTokenByRefreshToken() |
291 | 291 | { |
292 | - if (!isset($this->authCredentials['client_id'])) |
|
293 | - throw new \Exception('OAuth 2.0 client ID is not set'); |
|
292 | + if (!isset($this->authCredentials['client_id'])) { |
|
293 | + throw new \Exception('OAuth 2.0 client ID is not set'); |
|
294 | + } |
|
294 | 295 | |
295 | - if (!isset($this->authCredentials['client_secret'])) |
|
296 | - throw new \Exception('OAuth 2.0 client secret is not set'); |
|
296 | + if (!isset($this->authCredentials['client_secret'])) { |
|
297 | + throw new \Exception('OAuth 2.0 client secret is not set'); |
|
298 | + } |
|
297 | 299 | |
298 | - if (!isset($this->authCredentials['refresh_token'])) |
|
299 | - throw new \Exception('Refresh token is not set'); |
|
300 | + if (!isset($this->authCredentials['refresh_token'])) { |
|
301 | + throw new \Exception('Refresh token is not set'); |
|
302 | + } |
|
300 | 303 | |
301 | 304 | $clientId = $this->authCredentials['client_id']; |
302 | 305 | $clientSecret = $this->authCredentials['client_secret']; |
@@ -91,8 +91,9 @@ |
||
91 | 91 | // Remove options with empty values |
92 | 92 | $cleanedOptions = array(); |
93 | 93 | foreach ($options as $name=>$value) { |
94 | - if ($value!==null) |
|
95 | - $cleanedOptions[$name] = $value; |
|
94 | + if ($value!==null) { |
|
95 | + $cleanedOptions[$name] = $value; |
|
96 | + } |
|
96 | 97 | } |
97 | 98 | |
98 | 99 | return $cleanedOptions; |
@@ -112,8 +112,9 @@ |
||
112 | 112 | // Remove options with empty values |
113 | 113 | $cleanedOptions = array(); |
114 | 114 | foreach ($options as $name=>$value) { |
115 | - if ($value!==null) |
|
116 | - $cleanedOptions[$name] = $value; |
|
115 | + if ($value!==null) { |
|
116 | + $cleanedOptions[$name] = $value; |
|
117 | + } |
|
117 | 118 | } |
118 | 119 | |
119 | 120 | return $cleanedOptions; |
@@ -153,8 +153,9 @@ |
||
153 | 153 | // Remove options with empty values |
154 | 154 | $cleanedOptions = array(); |
155 | 155 | foreach ($options as $name=>$value) { |
156 | - if ($value!==null) |
|
157 | - $cleanedOptions[$name] = $value; |
|
156 | + if ($value!==null) { |
|
157 | + $cleanedOptions[$name] = $value; |
|
158 | + } |
|
158 | 159 | } |
159 | 160 | |
160 | 161 | return $cleanedOptions; |
@@ -88,8 +88,9 @@ |
||
88 | 88 | // Remove options with empty values |
89 | 89 | $cleanedOptions = array(); |
90 | 90 | foreach ($options as $name=>$value) { |
91 | - if ($value!==null) |
|
92 | - $cleanedOptions[$name] = $value; |
|
91 | + if ($value!==null) { |
|
92 | + $cleanedOptions[$name] = $value; |
|
93 | + } |
|
93 | 94 | } |
94 | 95 | |
95 | 96 | return $cleanedOptions; |
@@ -142,8 +142,9 @@ |
||
142 | 142 | // Remove options with empty values |
143 | 143 | $cleanedOptions = array(); |
144 | 144 | foreach ($options as $name=>$value) { |
145 | - if ($value!==null) |
|
146 | - $cleanedOptions[$name] = $value; |
|
145 | + if ($value!==null) { |
|
146 | + $cleanedOptions[$name] = $value; |
|
147 | + } |
|
147 | 148 | } |
148 | 149 | |
149 | 150 | return $cleanedOptions; |
@@ -59,8 +59,9 @@ |
||
59 | 59 | // Remove options with empty values |
60 | 60 | $cleanedOptions = array(); |
61 | 61 | foreach ($options as $name=>$value) { |
62 | - if ($value!==null) |
|
63 | - $cleanedOptions[$name] = $value; |
|
62 | + if ($value!==null) { |
|
63 | + $cleanedOptions[$name] = $value; |
|
64 | + } |
|
64 | 65 | } |
65 | 66 | |
66 | 67 | return $cleanedOptions; |
@@ -122,8 +122,9 @@ |
||
122 | 122 | // Remove options with empty values |
123 | 123 | $cleanedOptions = array(); |
124 | 124 | foreach ($options as $name=>$value) { |
125 | - if ($value!==null) |
|
126 | - $cleanedOptions[$name] = $value; |
|
125 | + if ($value!==null) { |
|
126 | + $cleanedOptions[$name] = $value; |
|
127 | + } |
|
127 | 128 | } |
128 | 129 | |
129 | 130 | return $cleanedOptions; |
@@ -128,8 +128,9 @@ |
||
128 | 128 | // Remove options with empty values |
129 | 129 | $cleanedOptions = array(); |
130 | 130 | foreach ($options as $name=>$value) { |
131 | - if ($value!==null) |
|
132 | - $cleanedOptions[$name] = $value; |
|
131 | + if ($value!==null) { |
|
132 | + $cleanedOptions[$name] = $value; |
|
133 | + } |
|
133 | 134 | } |
134 | 135 | |
135 | 136 | return $cleanedOptions; |