Skip to content

Commit c619ec1

Browse files
sl0wikStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent f0094f4 commit c619ec1

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

src/FirebaseAuthenticable.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ trait FirebaseAuthenticable
1515
* Get User by claim.
1616
*
1717
* @param array $claims
18+
*
1819
* @return self
1920
*/
2021
public function resolveByClaims(array $claims): object
@@ -29,8 +30,9 @@ public function resolveByClaims(array $claims): object
2930
/**
3031
* Update or create user.
3132
*
32-
* @param integer|string $id
33-
* @param array $attributes
33+
* @param int|string $id
34+
* @param array $attributes
35+
*
3436
* @return self
3537
*/
3638
public function updateOrCreateUser($id, array $attributes): object
@@ -54,6 +56,7 @@ public function updateOrCreateUser($id, array $attributes): object
5456
* Transform claims to attributes.
5557
*
5658
* @param array $claims
59+
*
5760
* @return array
5861
*/
5962
public function transformClaims(array $claims): array
@@ -134,4 +137,4 @@ public function getRememberTokenName()
134137
{
135138
throw new \Exception('No remember token support for Firebase User');
136139
}
137-
}
140+
}

src/FirebaseAuthenticationServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@ public function register()
3737
});
3838
}
3939
}
40-
41-

src/FirebaseGuard.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,28 @@
77

88
class FirebaseGuard
99
{
10-
/**
11-
* @var Firebase\Auth\Token\Verifier
12-
*/
10+
/**
11+
* @var Firebase\Auth\Token\Verifier
12+
*/
1313
protected $verifier;
1414

1515
/**
1616
* Constructor.
1717
*
1818
* @param Verifier $verifier
19+
*
1920
* @return void
2021
*/
2122
public function __construct(Verifier $verifier)
2223
{
23-
$this->verifier = $verifier;
24+
$this->verifier = $verifier;
2425
}
2526

2627
/**
2728
* Get User by request claims.
2829
*
2930
* @param Request $request
31+
*
3032
* @return mixed|null
3133
*/
3234
public function user(Request $request)
@@ -37,9 +39,8 @@ public function user(Request $request)
3739
$token = $this->verifier->verifyIdToken($token);
3840

3941
return app(config('auth.providers.users.model'))
40-
->resolveByClaims($token->getClaims());
41-
}
42-
catch (\Exception $e) {
42+
->resolveByClaims($token->getClaims());
43+
} catch (\Exception $e) {
4344
return;
4445
}
4546
}

0 commit comments

Comments
 (0)