Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 25, 2018
1 parent 66db2e7 commit 7bb53d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/ClientRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public function activeForUser($userId)
* Get the personal access token client for the application.
*
* @return \Laravel\Passport\Client
* @throws RuntimeException
*
* @throws \RuntimeException
*/
public function personalAccessClient()
{
Expand All @@ -90,7 +91,7 @@ public function personalAccessClient()
$client = Passport::personalAccessClient();

if (! $client->exists()) {
throw new RuntimeException('Personal access client not found. Please create one first.');
throw new RuntimeException('Personal access client not found. Please create one.');
}

return $client->orderBy($client->getKeyName(), 'desc')->first()->client;
Expand Down
4 changes: 2 additions & 2 deletions tests/TokenGuardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function test_users_may_be_retrieved_from_cookies()
$encrypter->encrypt(JWT::encode([
'sub' => 1, 'csrf' => 'token',
'expiry' => Carbon::now()->addMinutes(10)->getTimestamp(),
], str_repeat('a', 16)))
], str_repeat('a', 16)), false)
);

$userProvider->shouldReceive('retrieveById')->with(1)->andReturn($expectedUser = new TokenGuardTestUser);
Expand Down Expand Up @@ -181,7 +181,7 @@ public function test_csrf_check_can_be_disabled()
$encrypter->encrypt(JWT::encode([
'sub' => 1,
'expiry' => Carbon::now()->addMinutes(10)->getTimestamp(),
], str_repeat('a', 16)))
], str_repeat('a', 16)), false)
);

$userProvider->shouldReceive('retrieveById')->with(1)->andReturn($expectedUser = new TokenGuardTestUser);
Expand Down

0 comments on commit 7bb53d1

Please sign in to comment.