Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Setup Failed
Push — master ( 82f512...2f1651 )
by Cristian
13:55 queued 02:59
created

UserCrudController   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
A update() 0 3 1
A edit() 0 3 1
A setup() 0 4 1
1
<?php
2
3
namespace Backpack\CRUD\Tests\Unit\Http\Controllers;
4
5
use Backpack\CRUD\app\Http\Controllers\CrudController;
6
7
class UserCrudController extends CrudController
8
{
9
    public function setup()
10
    {
11
        $this->crud->setModel(User::class);
12
        $this->crud->setRoute('users');
13
    }
14
15
    protected function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    protected function edit(/** @scrutinizer ignore-unused */ $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        return response('edit');
18
    }
19
20
    protected function update($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    protected function update(/** @scrutinizer ignore-unused */ $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        return response('update');
23
    }
24
25
    protected function index()
26
    {
27
        return response('index');
28
    }
29
}
30