1 | <?php |
||
10 | class PassportMultiauth |
||
11 | { |
||
12 | /** |
||
13 | * Set the current user for the application with the given scopes. |
||
14 | * |
||
15 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
16 | * @param array $scopes |
||
17 | * @param string $guard |
||
|
|||
18 | * @return void |
||
19 | */ |
||
20 | 7 | public static function actingAs($user, $scopes = []) |
|
36 | |||
37 | /** |
||
38 | * Get the user provider on configs. |
||
39 | * |
||
40 | * @todo Move to class specialized in check auth configs. |
||
41 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
42 | * @return string|null |
||
43 | */ |
||
44 | 8 | public static function getUserProvider(Authenticatable $user) |
|
52 | |||
53 | /** |
||
54 | * Get the guard of specific provider to `passport` driver. |
||
55 | * |
||
56 | * @todo Move to class specialized in check auth configs. |
||
57 | * @param string $provider |
||
58 | * @return string |
||
59 | */ |
||
60 | 8 | public static function getProviderGuard($provider) |
|
68 | |||
69 | /** |
||
70 | * Get the user guard on provider with `passport` driver. |
||
71 | * |
||
72 | * @todo Move to class specialized in check auth configs. |
||
73 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
74 | * @return string|null |
||
75 | */ |
||
76 | 7 | public static function getUserGuard(Authenticatable $user) |
|
82 | |||
83 | /** |
||
84 | * If running unit test and try authenticate an user with actingAs($user) |
||
85 | * check the guards on request to authenticate or not the user. |
||
86 | * |
||
87 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
||
88 | */ |
||
89 | 7 | public static function hasUserActing() |
|
95 | } |
||
96 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.