Issues (400)

application/layouts/helpers/Username.php (2 issues)

Labels
Severity
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link      https://github.com/bluzphp/skeleton
6
 */
7
8
/**
9
 * @namespace
10
 */
11
12
namespace Application\Layout\Helper;
13
14
use Bluz\Proxy\Auth;
0 ignored issues
show
The type Bluz\Proxy\Auth was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
16
return
17
    /**
18
     * Get current user name
19
     *
20
     * @return string
21
     */
22
    function () {
23
        /**
24
         * @var \Application\Users\Row $user
25
         */
26
        if ($user = Auth::getIdentity()) {
27
            return $user->login;
28
        }
29
        return __('Guest');
0 ignored issues
show
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
        return /** @scrutinizer ignore-call */ __('Guest');
Loading history...
30
    };
31