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

Role::title()   A
last analyzed

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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Mark
5
 * Date: 05/08/2016
6
 * Time: 13:45.
7
 */
8
9
namespace App\Model;
10
11
use Illuminate\Database\Eloquent\SoftDeletes;
12
use Illuminate\Database\Eloquent\Model as EloquentModel;
13
14
/**
15
 * Class Role.
16
 */
17
class Role extends EloquentModel
18
{
19
    use SoftDeletes;
20
21
    protected $table = 'roles';
22
23
    // DEFINE VALUES FOR ROLES.
24
    const SUPERUSER = 1;
25
    const ADMINISTRATOR = 2;
26
    const CONTENT_CREATOR = 3;
27
28
    protected $softDeletes = true;
29
30
    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
31
32
    public function id()
33
    {
34
        return $this->getAttribute('id');
35
    }
36
37
    public function title()
38
    {
39
        return $this->getAttribute('title');
40
    }
41
42
    public function setTitle($string)
43
    {
44
        $this->setAttribute('title', $string);
45
46
        return $this;
47
    }
48
49
    public function description()
50
    {
51
        return $this->getAttribute('description');
52
    }
53
54
    public function setDescription($string)
55
    {
56
        $this->setAttribute('description', $string);
57
58
        return $this;
59
    }
60
61
    public function updatedAt()
62
    {
63
        return $this->getAttribute('updated_at');
64
    }
65
66
    public function createdAt()
67
    {
68
        return $this->getAttribute('created_at');
69
    }
70
71
    public function deletedAt()
72
    {
73
        return $this->getAttribute('deleted_at');
74
    }
75
76
    public function permissions()
77
    {
78
        return $this->hasMany(Permission::class, 'role_id', 'id');
0 ignored issues
show
Bug introduced by
The type App\Model\Permission was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
79
    }
80
}
81