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

Completed
Push — development ( e2aa6f...cf846e )
by José
02:52
created

Post   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 31
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A author() 0 4 1
1
<?php
2
3
namespace DoeSangue\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Post extends Model
8
{
9
    /**
10
     * Tabela usada pelo model Post.
11
     *
12
     * @var string
13
     */
14
    protected $table = 'posts';
15
16
    /**
17
     * Campos da tabela 'posts' que serão diretamente usados pelo Model.
18
     *
19
     * @var array
20
     */
21
    protected $filliable = [
22
        'user_id',
23
        'title',
24
        'content',
25
        'image'
26
    ];
27
28
    /**
29
     * Related
30
     *
31
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
32
     */
33
    public function author()
34
    {
35
        return $this->belongsTo(User::class, 'user_id');
36
    }
37
}
38