1 | <?php |
||
13 | class PassportMultiauth |
||
14 | { |
||
15 | /** |
||
16 | * Set the current user for the application with the given scopes. |
||
17 | * |
||
18 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
19 | * @param array $scopes |
||
20 | * @return void |
||
21 | */ |
||
22 | 8 | public static function actingAs($user, $scopes = []) |
|
42 | |||
43 | /** |
||
44 | * Get the user provider on configs. |
||
45 | * |
||
46 | * @todo Move to class specialized in check auth configs. |
||
47 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
48 | * @return string|null |
||
49 | */ |
||
50 | 9 | public static function getUserProvider(Authenticatable $user) |
|
58 | |||
59 | /** |
||
60 | * Get the guard of specific provider to `passport` driver. |
||
61 | * |
||
62 | * @todo Move to class specialized in check auth configs. |
||
63 | * @param string $provider |
||
64 | * @return string |
||
65 | */ |
||
66 | 9 | public static function getProviderGuard($provider) |
|
74 | |||
75 | /** |
||
76 | * Get the user guard on provider with `passport` driver. |
||
77 | * |
||
78 | * @todo Move to class specialized in check auth configs. |
||
79 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
80 | * @return string|null |
||
81 | */ |
||
82 | 8 | public static function getUserGuard(Authenticatable $user) |
|
88 | |||
89 | /** |
||
90 | * If running unit test and try authenticate an user with actingAs($user) |
||
91 | * check the guards on request to authenticate or not the user. |
||
92 | * |
||
93 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
||
94 | */ |
||
95 | 7 | public static function userActing() |
|
101 | } |
||
102 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.