Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public static function parseUserNick($userId = null, $onEmpty = 'guest'): ?string |
||
22 | { |
||
23 | if (!Any::isInt($userId)) { |
||
24 | return \App::$Security->strip_tags($onEmpty); |
||
25 | } |
||
26 | |||
27 | // try to find user active record as object |
||
28 | $identity = App::$User->identity($userId); |
||
29 | if (!$identity) { |
||
30 | return \App::$Security->strip_tags($onEmpty); |
||
31 | } |
||
32 | |||
33 | // return user nickname from profile |
||
34 | return $identity->profile->getNickname(); |
||
35 | } |
||
55 |
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