We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 9 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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() |
||
| 64 | } |
||
| 65 | |||
| 66 | public function createdAt() |
||
| 69 | } |
||
| 70 | |||
| 71 | public function deletedAt() |
||
| 74 | } |
||
| 75 | |||
| 76 | public function permissions() |
||
| 79 | } |
||
| 80 | } |
||
| 81 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths