From 8b67cd7230115d4864ea9e7ea223648e2962ec74 Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 18 Apr 2024 00:04:44 +0200 Subject: [PATCH] :shower: --- examples/get-token/_flow-oauth1.php | 2 +- tests/Providers/Unit/LastFMTest.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/get-token/_flow-oauth1.php b/examples/get-token/_flow-oauth1.php index 30e2e98..dc075cf 100644 --- a/examples/get-token/_flow-oauth1.php +++ b/examples/get-token/_flow-oauth1.php @@ -24,7 +24,7 @@ header('Location: '.$provider->getAuthorizationURL($PARAMS)); } // step 3: receive the access token -elseif(isset($_GET['oauth_token']) && isset($_GET['oauth_verifier'])){ +elseif(isset($_GET['oauth_token'], $_GET['oauth_verifier'])){ $token = $provider->getAccessToken($_GET['oauth_token'], $_GET['oauth_verifier']); // save the token [...] diff --git a/tests/Providers/Unit/LastFMTest.php b/tests/Providers/Unit/LastFMTest.php index 708ce65..f1225e6 100644 --- a/tests/Providers/Unit/LastFMTest.php +++ b/tests/Providers/Unit/LastFMTest.php @@ -98,7 +98,6 @@ public function testParseTokenResponseNoTokenException():void{ * access token */ - public function testGetAccessToken():void{ $this->setMockResponse($this->streamFactory->createStream($this::TEST_TOKEN)); @@ -106,7 +105,6 @@ public function testGetAccessToken():void{ $this->assertSame('sk', $token->accessToken); $this::assertSame('lfm-user', $token->extraParams['session']['name']); - } public function testGetAccessTokenRequestBodyParams():void{