bluzphp /
skeleton
| 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
|
|||||
| 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
Loading history...
|
|||||
| 30 | }; |
||||
| 31 |
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