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
Push — main ( cd321d...fe0ac3 )
by Pedro
42:03 queued 27:11
created

AccountDetails::article()   A

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 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\Config\Models\AccountDetails: $fakeColumns, $identifiableAttribute, $Type
Loading history...
11
12
    protected $table = 'account_details';
13
    protected $fillable = ['user_id', 'nickname', 'profile_picture', 'article_id', 'start_date', 'end_date'];
14
15
    public function identifiableAttribute()
16
    {
17
        return 'nickname';
18
    }
19
20
    /**
21
     * Get the user for the account details.
22
     */
23
    public function user()
24
    {
25
        return $this->belongsTo('Backpack\CRUD\Tests\config\Models\User');
26
    }
27
28
    public function addresses()
29
    {
30
        return $this->hasMany('Backpack\CRUD\Tests\config\Models\Address');
31
    }
32
33
    public function getNicknameComposedAttribute()
34
    {
35
        return $this->nickname.'++';
36
    }
37
38
    public function article()
39
    {
40
        return $this->belongsTo('Backpack\CRUD\Tests\config\Models\Article');
41
    }
42
43
    public function bangs()
44
    {
45
        return $this->belongsToMany('Backpack\CRUD\Tests\config\Models\Bang');
46
    }
47
48
    public function bangsPivot()
49
    {
50
        return $this->belongsToMany('Backpack\CRUD\Tests\config\Models\Bang', 'account_details_bangs_pivot')->withPivot('pivot_field');
51
    }
52
}
53