Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class ViewableuserInfoExtension extends Extension implements TemplateGlobalProvider |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * Returns logout link |
||
21 | * |
||
22 | * @return html |
||
|
|||
23 | */ |
||
24 | public static function getlogoutLink() |
||
25 | { |
||
26 | if (Security::getCurrentUser()) { |
||
27 | $html = DBHTMLText::create(); |
||
28 | $html->setValue("<a href='" . Security::logout_url() . "&BackURL=/'>Logout</a>"); |
||
29 | return $html; |
||
30 | } |
||
31 | return false; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Defines global accessible templates variables. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public static function get_template_global_variables() |
||
43 | ]; |
||
44 | } |
||
46 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths