getIcons()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 17
rs 9.7998
cc 1
nc 1
nop 0
1
<?php
2
3
function getIcons()
4
{
5
    $pathIcon16    = \Xmf\Module\Admin::iconUrl('', '16');
0 ignored issues
show
Bug introduced by
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
Bug introduced by
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
Bug introduced by
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
Bug introduced by
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
Bug introduced by
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
Bug introduced by
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