Skip to content

Commit

Permalink
Apply fixes from StyleCI (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Feb 11, 2021
1 parent bf8bc4a commit 78463b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Two/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/OAuthTwoWithPKCETestProviderStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Laravel\Socialite\Tests\Fixtures;

class OAuthTwoWithPKCETestProviderStub extends OAuthTwoTestProviderStub
class OAuthTwoWithPKCETestProviderStub extends OAuthTwoTestProviderStub
{
protected $usesPKCE = true;
}
6 changes: 3 additions & 3 deletions tests/OAuthTwoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -72,7 +72,7 @@ public function testRedirectGeneratesTheProperIlluminateRedirectResponseWithPKCE
return false;
};

$sessionPullClosure = function($name) {
$sessionPullClosure = function ($name) {
if ($name === 'code_verifier') {
return self::$codeVerifier;
}
Expand Down

0 comments on commit 78463b7

Please sign in to comment.