Issues (584)

config/icons.php (6 issues)

Labels
Severity
1
<?php
2
3
function getIcons()
4
{
5
    $pathIcon16    = \Xmf\Module\Admin::iconUrl('', 16);
0 ignored issues
show
The type Xmf\Module\Admin 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...
6
    $moduleDirName = \basename(\dirname(__DIR__));
7
8
    return (object)[
9
        'name'  => \mb_strtoupper($moduleDirName) . ' IconConfigurator',
10
        'icons' => [
11
            'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
0 ignored issues
show
The constant _EDIT was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
12
            'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
0 ignored issues
show
The constant _DELETE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
13
            'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
0 ignored issues
show
The constant _CLONE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
14
            'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
0 ignored issues
show
The constant _PREVIEW was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
15
            'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
16
            'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
17
            'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
0 ignored issues
show
The constant _ADD was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
18
            '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
19
            '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
20
        ],
21
    ];
22
}
23