diff --git a/src/Two/AbstractProvider.php b/src/Two/AbstractProvider.php index 8924e2ad..3ac6cae4 100644 --- a/src/Two/AbstractProvider.php +++ b/src/Two/AbstractProvider.php @@ -489,7 +489,7 @@ protected function getCodeChallenge() } /** - * Returns the hash method used to calculate the PKCE code challenge + * Returns the hash method used to calculate the PKCE code challenge. * * @return string */ diff --git a/tests/Fixtures/OAuthTwoWithPKCETestProviderStub.php b/tests/Fixtures/OAuthTwoWithPKCETestProviderStub.php index 5e1824f8..2b5789a2 100644 --- a/tests/Fixtures/OAuthTwoWithPKCETestProviderStub.php +++ b/tests/Fixtures/OAuthTwoWithPKCETestProviderStub.php @@ -2,7 +2,7 @@ namespace Laravel\Socialite\Tests\Fixtures; -class OAuthTwoWithPKCETestProviderStub extends OAuthTwoTestProviderStub +class OAuthTwoWithPKCETestProviderStub extends OAuthTwoTestProviderStub { protected $usesPKCE = true; } diff --git a/tests/OAuthTwoTest.php b/tests/OAuthTwoTest.php index 13fb3dd8..81297f6e 100644 --- a/tests/OAuthTwoTest.php +++ b/tests/OAuthTwoTest.php @@ -31,7 +31,7 @@ public function testRedirectGeneratesTheProperIlluminateRedirectResponseWithoutP $request->setLaravelSession($session = m::mock(Session::class)); $state = null; - $closure = function($name, $stateInput) use (&$state) { + $closure = function ($name, $stateInput) use (&$state) { if ($name === 'state') { $state = $stateInput; @@ -58,7 +58,7 @@ public function testRedirectGeneratesTheProperIlluminateRedirectResponseWithPKCE $request->setLaravelSession($session = m::mock(Session::class)); $state = null; - $sessionPutClosure = function($name, $value) use (&$state) { + $sessionPutClosure = function ($name, $value) use (&$state) { if ($name === 'state') { $state = $value; @@ -72,7 +72,7 @@ public function testRedirectGeneratesTheProperIlluminateRedirectResponseWithPKCE return false; }; - $sessionPullClosure = function($name) { + $sessionPullClosure = function ($name) { if ($name === 'code_verifier') { return self::$codeVerifier; }