| Total Complexity | 6 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Group extends Model implements Searchable |
||
| 13 | { |
||
| 14 | use SoftDeletes; |
||
| 15 | use UccelloModule; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The table associated with the model. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $table = 'groups'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The attributes that should be mutated to dates. |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $dates = [ 'deleted_at' ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The attributes that are mass assignable. |
||
| 33 | * |
||
| 34 | * @var array |
||
| 35 | */ |
||
| 36 | protected $fillable = [ |
||
| 37 | 'name', |
||
| 38 | 'description', |
||
| 39 | 'parent_id', |
||
| 40 | 'domain_id' |
||
| 41 | ]; |
||
| 42 | |||
| 43 | public $searchableType = 'group'; |
||
| 44 | |||
| 45 | public $searchableColumns = [ |
||
| 46 | 'name' |
||
| 47 | ]; |
||
| 48 | |||
| 49 | public function getSearchResult(): SearchResult |
||
| 50 | { |
||
| 51 | return new SearchResult( |
||
| 52 | $this, |
||
| 53 | $this->recordLabel |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | |||
| 57 | protected function initTablePrefix() |
||
| 58 | { |
||
| 59 | $this->tablePrefix = env('UCCELLO_TABLE_PREFIX', 'uccello_'); |
||
| 60 | } |
||
| 61 | |||
| 62 | public function parentGroups() |
||
| 65 | } |
||
| 66 | |||
| 67 | public function childrenGroups() |
||
| 70 | } |
||
| 71 | |||
| 72 | public function users() |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Returns record label |
||
| 79 | * |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getRecordLabelAttribute() : string |
||
| 85 | } |
||
| 86 | } |
||
| 87 |
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