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 | * @return void |
||
18 | */ |
||
19 | 7 | public static function actingAs($user, $scopes = []) |
|
35 | |||
36 | /** |
||
37 | * Get the user provider on configs. |
||
38 | * |
||
39 | * @todo Move to class specialized in check auth configs. |
||
40 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
41 | * @return string|null |
||
42 | */ |
||
43 | 8 | public static function getUserProvider(Authenticatable $user) |
|
51 | |||
52 | /** |
||
53 | * Get the guard of specific provider to `passport` driver. |
||
54 | * |
||
55 | * @todo Move to class specialized in check auth configs. |
||
56 | * @param string $provider |
||
57 | * @return string |
||
58 | */ |
||
59 | 8 | public static function getProviderGuard($provider) |
|
67 | |||
68 | /** |
||
69 | * Get the user guard on provider with `passport` driver. |
||
70 | * |
||
71 | * @todo Move to class specialized in check auth configs. |
||
72 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
73 | * @return string|null |
||
74 | */ |
||
75 | 7 | public static function getUserGuard(Authenticatable $user) |
|
81 | |||
82 | /** |
||
83 | * If running unit test and try authenticate an user with actingAs($user) |
||
84 | * check the guards on request to authenticate or not the user. |
||
85 | * |
||
86 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
||
87 | */ |
||
88 | 7 | public static function userActing() |
|
94 | } |
||
95 |
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.