Completed
Push — master ( 5c55d7...79e99a )
by Fèvre
28s queued 15s
created

RoleController::showUpdateForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 13
nc 1
nop 2
dl 0
loc 20
rs 9.8333
c 1
b 0
f 0
1
<?php
2
namespace Xetaravel\Http\Controllers\Admin\Role;
3
4
use Illuminate\Http\RedirectResponse;
5
use Illuminate\Http\Request;
6
use Illuminate\View\View;
7
use Xetaravel\Http\Controllers\Admin\Controller;
8
use Xetaravel\Models\Permission;
9
use Xetaravel\Models\Repositories\RoleRepository;
0 ignored issues
show
Bug introduced by
The type Xetaravel\Models\Repositories\RoleRepository 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...
10
use Xetaravel\Models\Role;
11
use Xetaravel\Models\Validators\RoleValidator;
0 ignored issues
show
Bug introduced by
The type Xetaravel\Models\Validators\RoleValidator 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...
12
13
class RoleController extends Controller
14
{
15
    /**
16
     * Show all the roles.
17
     *
18
     * @return \Illuminate\View\View
19
     */
20
    public function index(): View
21
    {
22
        $breadcrumbs = $this->breadcrumbs->addCrumb(
23
            '<i class="fa-solid fa-user-tie mr-2"></i> Manage Roles',
24
            route('admin.role.role.index')
25
        );
26
27
        return view('Admin::Role.role.index', compact('breadcrumbs'));
28
    }
29
}
30