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 Cristian
25:46 queued 10:50
created

Article   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A user() 0 3 1
A getContentComposedAttribute() 0 3 1
A address() 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 Article 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\Article: $fakeColumns, $identifiableAttribute, $Type
Loading history...
11
12
    protected $table = 'articles';
13
    protected $fillable = ['user_id', 'content', 'address_id', 'metas', 'tags', 'extras', 'cast_metas', 'cast_tags', 'cast_extras'];
14
    protected $casts = [
15
        'cast_metas'  => 'object',
16
        'cast_tags'   => 'object',
17
        'cast_extras' => 'object',
18
    ];
19
20
    /**
21
     * Get the author for the article.
22
     */
23
    public function user()
24
    {
25
        return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\User');
26
    }
27
28
    public function address()
29
    {
30
        return $this->belongsTo('Backpack\CRUD\Tests\Unit\Models\Address');
31
    }
32
33
    public function getContentComposedAttribute()
34
    {
35
        return $this->content.'++';
36
    }
37
}
38