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