:100644 100644 9f38869 0000000 M tests/JWTTest.php diff --git a/tests/JWTTest.php b/tests/JWTTest.php index 9f38869e826ce4fe74faedd6b68af5e8eb4add56..40ba043947d68f6e7beb86f60452885a1d5936db 100644 --- a/tests/JWTTest.php +++ b/tests/JWTTest.php @@ -227,15 +227,15 @@ class JWTTest extends \PHPUnit\Framework\TestCase { $jwt = new JWT('KEY', 'HS256', 10, 0); $token = $jwt->encode(['uid' => 1], [ - 'typ' => 'at+jwt' + 'typ' => 'at+jwt', ]); $this->assertIsString($token); - $segments = \explode('.', $token); + $segments = \explode('.', $token); $headerSegment = $segments[0]; - $headerJson = \base64_decode(\strtr($headerSegment, '-_', '+/')); - $header = \json_decode($headerJson, true); + $headerJson = \base64_decode(\strtr($headerSegment, '-_', '+/')); + $header = \json_decode($headerJson, true); $this->assertSame('at+jwt', $header['typ']); }