Total Complexity | 8 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
11 | class Page extends Eloquent implements Sortable |
||
12 | { |
||
13 | use SortableTrait; |
||
14 | use HasTranslations; |
||
15 | |||
16 | public $sortable = [ |
||
17 | 'order_column_name' => 'order', |
||
18 | 'sort_when_creating' => true, |
||
19 | ]; |
||
20 | |||
21 | public function template() |
||
22 | { |
||
23 | return $this->belongsTo('Chuckbe\Chuckcms\Models\Template'); |
||
24 | } |
||
25 | |||
26 | public function page_blocks() |
||
27 | { |
||
28 | return $this->hasMany('Chuckbe\Chuckcms\Models\PageBlock')->orderBy('order'); |
||
29 | } |
||
30 | |||
31 | public function getById($id) |
||
32 | { |
||
33 | return $this->where('id', $id)->first(); |
||
34 | } |
||
35 | |||
36 | public function getByIdWithBlocks($id) |
||
39 | } |
||
40 | |||
41 | public static function getUrl($id) |
||
42 | { |
||
44 | } |
||
45 | |||
46 | public function deleteById($id) |
||
58 | } |
||
59 | } |
||
60 | |||
61 | public $translatable = ['title', 'slug']; |
||
62 | |||
63 | protected $casts = [ |
||
64 | 'meta' => 'array', |
||
65 | ]; |
||
66 | |||
67 | /** |
||
68 | * The attributes that are mass assignable. |
||
69 | * |
||
70 | * @var array |
||
71 | */ |
||
72 | protected $fillable = [ |
||
73 | 'order_column', |
||
74 | ]; |
||
76 |
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