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

Passed
Pull Request — main (#4529)
by Cristian
29:21 queued 14:43
created

UserCrudController::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
    protected function create()
31
    {
32
        return response('create');
33
    }
34
}
35