Failed Conditions
Pull Request — master (#321)
by Anton
23:35 queued 08:33
created

application/modules/users/controllers/grid.php (3 issues)

1
<?php
2
/**
3
 * Grid of users
4
 *
5
 * @return closure
6
 * @author   Anton Shevchuk
7
 * @created  02.08.12 18:39
8
 */
9
10
namespace Application;
11
12
use Application\Users;
13
use Bluz\Controller\Controller;
0 ignored issues
show
The type Bluz\Controller\Controller 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...
14
use Bluz\Proxy\Db;
0 ignored issues
show
The type Bluz\Proxy\Db 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
use Bluz\Proxy\Layout;
16
17
/**
18
 * @privilege Management
19
 * @return \closure
20
 */
21
return function () {
22
    /**
23
     * @var Controller $this
24
     */
25 1
    Layout::setTemplate('dashboard.phtml');
26 1
    Layout::breadCrumbs(
27
        [
28 1
            Layout::ahref('Dashboard', ['dashboard', 'index']),
29 1
            __('Users')
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
            /** @scrutinizer ignore-call */ 
30
            __('Users')
Loading history...
30
        ]
31
    );
32
33 1
    $grid = new Users\Grid();
34 1
    $grid->setModule($this->module);
35 1
    $grid->setController($this->controller);
36
37 1
    $this->assign('roles', Db::fetchAll('SELECT * FROM acl_roles'));
38 1
    $this->assign('grid', $grid);
39
};
40