Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public static function resolve(Auditable $auditable): string |
||
13 | { |
||
14 | 15 | if (! empty($auditable->preloadedResolverData['url'] ?? null)) { |
|
|
|||
15 | return $auditable->preloadedResolverData['url'] ?? ''; |
||
16 | 15 | } |
|
17 | 15 | ||
18 | if (App::runningInConsole()) { |
||
19 | return self::resolveCommandLine(); |
||
20 | 15 | } |
|
21 | 13 | ||
22 | return Request::fullUrl(); |
||
23 | } |
||
35 |