| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 10 | trait Modelable |
||
| 11 | { |
||
| 12 | public $model; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Child class should always implements at least a model method and return a class name |
||
| 16 | * |
||
| 17 | * @return mixed |
||
| 18 | */ |
||
| 19 | abstract public function model(); |
||
| 20 | |||
| 21 | public function getModel() |
||
| 22 | { |
||
| 23 | return $this->model; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param mixed $model |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function setModel($model) |
||
| 31 | { |
||
| 32 | $this->model = $model; |
||
| 33 | return $this; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return \Illuminate\Database\Eloquent\Builder |
||
|
|
|||
| 38 | */ |
||
| 39 | public function makeModel() { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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