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

Test Failed
Pull Request — master (#3410)
by
unknown
13:49
created

AccountDetails   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 8
dl 0
loc 28
rs 10
c 1
b 1
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A user() 0 3 1
A addresses() 0 3 1
A getNicknameComposedAttribute() 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 AccountDetails 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\AccountDetails: $fakeColumns, $identifiableAttribute, $Type
Loading history...
11
12
    protected $table = 'account_details';
13
    protected $fillable = ['user_id', 'nickname', 'profile_picture', 'article_id'];
14
15
    /**
16
     * Get the user for the account details.
17
     */
18
    public function user()
19
    {
20
        return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\User');
21
    }
22
23
    public function addresses()
24
    {
25
        return $this->hasMany('Backpack\CRUD\Tests\Unit\Models\Address');
26
    }
27
28
    public function article()
29
    {
30
        return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\Article');
31
    }
32
33
    public function getNicknameComposedAttribute()
34
    {
35
        return $this->nickname.'++';
36
    }
37
}
38