Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | */ |
||
11 | function app_id() |
||
12 | { |
||
13 | $identifier = AppIdentifier::get(); |
||
14 | |||
15 | if (func_num_args() > 0) { |
||
16 | return in_array($identifier, is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args()); |
||
17 | } |
||
18 | |||
19 | return $identifier; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | if (! function_exists('app_url')) { |
||
24 | /** |
||
25 | * Generate an absolute URL to the given path. |
||
49 |