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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A withCheckUniqueString() 0 14 1
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