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

Comment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A commentable() 0 3 1
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 Comment 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\Comment: $identifiableAttribute, $Type, $fakeColumns
Loading history...
11
12
    /*
13
    |--------------------------------------------------------------------------
14
    | GLOBAL VARIABLES
15
    |--------------------------------------------------------------------------
16
    */
17
18
    protected $table = 'comments';
19
    protected $primaryKey = 'id';
20
    public $timestamps = true;
21
    protected $guarded = ['id'];
22
    // protected $hidden = [];
23
    // protected $dates = [];
24
25
    /*
26
    |--------------------------------------------------------------------------
27
    | FUNCTIONS
28
    |--------------------------------------------------------------------------
29
    */
30
31
    /*
32
    |--------------------------------------------------------------------------
33
    | RELATIONS
34
    |--------------------------------------------------------------------------
35
    */
36
37
    public function commentable()
38
    {
39
        return $this->morphTo();
40
    }
41
42
    /*
43
    |--------------------------------------------------------------------------
44
    | SCOPES
45
    |--------------------------------------------------------------------------
46
    */
47
48
    /*
49
    |--------------------------------------------------------------------------
50
    | ACCESSORS
51
    |--------------------------------------------------------------------------
52
    */
53
54
    /*
55
    |--------------------------------------------------------------------------
56
    | MUTATORS
57
    |--------------------------------------------------------------------------
58
    */
59
}
60