| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class DBM_MongoMenuItem extends Model |
||
| 9 | { |
||
| 10 | use Relationships; |
||
| 11 | |||
| 12 | protected $collection = 'menu_items'; |
||
| 13 | // |
||
| 14 | protected $fillable = [ |
||
| 15 | 'title', |
||
| 16 | 'slug', |
||
| 17 | 'order', |
||
| 18 | 'parent_id', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | protected $cast = [ |
||
| 22 | 'params' => 'array', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | public function children() |
||
| 26 | { |
||
| 27 | return $this->hasMany(self::class, 'parent_id')->orderBy('order', 'asc'); |
||
| 28 | } |
||
| 29 | |||
| 30 | // recursive, loads all descendants |
||
| 31 | public function childrens() |
||
| 32 | { |
||
| 33 | return $this->children()->with('childrens'); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function settings() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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