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

Role::getRoleNameAttribute()   A
last analyzed

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\Config\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
8
class Role extends Model
9
{
10
    use CrudTrait;
0 ignored issues
show
introduced by
The trait Backpack\CRUD\app\Models\Traits\CrudTrait requires some properties which are not provided by Backpack\CRUD\Tests\Config\Models\Role: $identifiableAttribute, $Type, $fakeColumns
Loading history...
11
12
    protected $table = 'roles';
13
    protected $fillable = ['name'];
14
15
    /**
16
     * Get the user for the account details.
17
     */
18
    public function user()
19
    {
20
        return $this->belongsToMany('Backpack\CRUD\Tests\config\Models\User', 'user_role');
21
    }
22
23
    public function getRoleNameAttribute()
24
    {
25
        return $this->name.'++';
26
    }
27
28
    public function identifiableAttribute()
29
    {
30
        return 'name';
31
    }
32
}
33