Skip to content

Commit 7bb53d1

Browse files
committed
formatting
1 parent 66db2e7 commit 7bb53d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/ClientRepository.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public function activeForUser($userId)
7979
* Get the personal access token client for the application.
8080
*
8181
* @return \Laravel\Passport\Client
82-
* @throws RuntimeException
82+
*
83+
* @throws \RuntimeException
8384
*/
8485
public function personalAccessClient()
8586
{
@@ -90,7 +91,7 @@ public function personalAccessClient()
9091
$client = Passport::personalAccessClient();
9192

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

9697
return $client->orderBy($client->getKeyName(), 'desc')->first()->client;

tests/TokenGuardTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function test_users_may_be_retrieved_from_cookies()
106106
$encrypter->encrypt(JWT::encode([
107107
'sub' => 1, 'csrf' => 'token',
108108
'expiry' => Carbon::now()->addMinutes(10)->getTimestamp(),
109-
], str_repeat('a', 16)))
109+
], str_repeat('a', 16)), false)
110110
);
111111

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

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

0 commit comments

Comments
 (0)