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

Completed
Pull Request — master (#136)
by Owen
03:20
created

CheckUnique::withCheckUniqueString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 14
rs 9.4285
1
<?php
2
3
namespace Backpack\CRUD\Injectables;
4
5
use Route;
6
7
trait CheckUnique
8
{
9
    public function withCheckUniqueString()
10
    {
11
        Route::get($this->name.'/ajax/checkUniqueString', [
0 ignored issues
show
Bug introduced by
The property name does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
12
            'as' => 'crud.'.$this->name.'.checkUniqueString',
13
            'uses' => $this->controller.'@checkUniqueString',
0 ignored issues
show
Bug introduced by
The property controller does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
14
        ]);
15
16
        Route::post($this->name.'/ajax/checkUniqueString', [
17
            'as' => 'crud.'.$this->name.'.checkUniqueString',
18
            'uses' => $this->controller.'@checkUniqueString',
19
        ]);
20
21
        return $this;
22
    }
23
}
24