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

application/modules/acl/controllers/roles.php (9 issues)

Labels
Severity
1
<?php
2
/**
3
 * @author   Anton Shevchuk
4
 * @created  04.09.12 11:21
5
 */
6
7
/**
8
 * @namespace
9
 */
10
11
namespace Application;
12
13
use Application\Roles;
14
use Bluz\Common\Exception\CommonException;
0 ignored issues
show
The type Bluz\Common\Exception\CommonException 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\Common\Exception\ComponentException;
0 ignored issues
show
The type Bluz\Common\Exception\ComponentException 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...
16
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...
17
use Bluz\Controller\ControllerException;
0 ignored issues
show
The type Bluz\Controller\ControllerException 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...
18
use Bluz\Controller\Mapper\Crud;
0 ignored issues
show
The type Bluz\Controller\Mapper\Crud 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...
19
use Bluz\Http\Exception\ForbiddenException;
0 ignored issues
show
The type Bluz\Http\Exception\ForbiddenException 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...
20
use Bluz\Http\Exception\NotAcceptableException;
0 ignored issues
show
The type Bluz\Http\Exception\NotAcceptableException 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...
21
use Bluz\Http\Exception\NotAllowedException;
0 ignored issues
show
The type Bluz\Http\Exception\NotAllowedException 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...
22
use Bluz\Http\Exception\NotImplementedException;
0 ignored issues
show
The type Bluz\Http\Exception\NotImplementedException 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...
23
use ReflectionException;
24
25
/**
26
 * @accept    HTML
27 1
 * @accept    JSON
28
 * @privilege Management
29 1
 *
30 1
 * @return Controller
31 1
 * @throws CommonException
32 1
 * @throws ComponentException
33
 * @throws ControllerException
34 1
 * @throws ForbiddenException
35 40
 * @throws NotAcceptableException
36
 * @throws NotAllowedException
37
 * @throws NotImplementedException
38
 * @throws ReflectionException
39
 */
40
return function () {
41
    /**
42
     * @var Controller $this
43
     */
44
    $crud = new Crud(Roles\Crud::getInstance());
45
46
    $crud->get('system', 'crud/get');
47
    $crud->post('system', 'crud/post');
48
    $crud->put('system', 'crud/put');
49
    $crud->delete('system', 'crud/delete');
50
51
    return $crud->run();
52
};
53