Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
36 | 66 | protected static function resolveUser() |
|
37 | { |
||
38 | 66 | $userResolver = \Config::get('audit.resolver.user'); |
|
39 | |||
40 | 66 | if (is_subclass_of($userResolver, \OwenIt\Auditing\Contracts\UserResolver::class)) { |
|
41 | 66 | return call_user_func([$userResolver, 'resolve']); |
|
42 | } |
||
43 | |||
44 | throw new AuditingException('Invalid UserResolver implementation'); |
||
45 | } |
||
47 |