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 — master (#3410)
by
unknown
12:56
created

User   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 39
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A accountDetails() 0 3 1
A roles() 0 3 1
A articles() 0 3 1
A getNameComposedAttribute() 0 3 1
A article() 0 3 1
1
<?php
2
3
namespace Backpack\CRUD\Tests\Unit\Models;
4
5
use Backpack\CRUD\app\Models\Traits\CrudTrait;
6
use Illuminate\Database\Eloquent\Model;
7
8
class User 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\Unit\Models\User: $fakeColumns, $identifiableAttribute, $Type
Loading history...
11
12
    protected $table = 'users';
13
    protected $fillable = ['name', 'email', 'password', 'article_id'];
14
15
    /**
16
     * Get the account details associated with the user.
17
     */
18
    public function accountDetails()
19
    {
20
        return $this->hasOne('Backpack\CRUD\Tests\Unit\Models\AccountDetails');
21
    }
22
23
    public function article()
24
    {
25
        return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\Article');
26
    }
27
28
    /**
29
     * Get the articles for this user.
30
     */
31
    public function articles()
32
    {
33
        return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Article');
34
    }
35
36
    /**
37
     * Get the user roles.
38
     */
39
    public function roles()
40
    {
41
        return $this->belongsToMany('Backpack\CRUD\Tests\Unit\Models\Role', 'user_role');
42
    }
43
44
    public function getNameComposedAttribute()
45
    {
46
        return $this->name.'++';
47
    }
48
}
49