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::author()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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