Passed
Push — main ( 94cc2d...6ae869 )
by smiley
02:00
created
src/GuildWars2/GuildWars2.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
  * @method \Psr\Http\Message\ResponseInterface wvwUpgrades(array $params = ['lang'])
238 238
  * @method \Psr\Http\Message\ResponseInterface wvwUpgradesId(string $id, array $params = ['lang'])
239 239
  */
240
-class GuildWars2 extends OAuth2Provider{
240
+class GuildWars2 extends OAuth2Provider {
241 241
 
242 242
 	public const SCOPE_ACCOUNT     = 'account';
243 243
 	public const SCOPE_INVENTORIES = 'inventories';
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 	 */
268 268
 	public function storeGW2Token(string $access_token):AccessToken{
269 269
 
270
-		if(!preg_match('/^[a-f\d\-]{72}$/i', $access_token)){
270
+		if (!preg_match('/^[a-f\d\-]{72}$/i', $access_token)) {
271 271
 			throw new ProviderException('invalid token');
272 272
 		}
273 273
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
 		$tokeninfo = get_json($this->http->sendRequest($request));
279 279
 
280
-		if(isset($tokeninfo->id) && strpos($access_token, $tokeninfo->id) === 0){
280
+		if (isset($tokeninfo->id) && strpos($access_token, $tokeninfo->id) === 0) {
281 281
 
282 282
 			$token = new AccessToken;
283 283
 
Please login to merge, or discard this patch.