| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ArticleQuery extends \yii\db\ActiveQuery |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @inheritdoc |
||
| 16 | * @return \carono\exchange1c\models\Article[] |
||
| 17 | */ |
||
| 18 | public function all($db = null) |
||
| 19 | { |
||
| 20 | return parent::all($db); |
||
| 21 | } |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | * @return \carono\exchange1c\models\Article |
||
| 27 | */ |
||
| 28 | public function one($db = null) |
||
| 29 | { |
||
| 30 | return parent::one($db); |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * @var mixed $filter |
||
| 36 | * @var array $options Options for ActiveDataProvider |
||
| 37 | * @return ActiveDataProvider |
||
| 38 | */ |
||
| 39 | public function search($filter = null, $options = []) |
||
| 40 | { |
||
| 41 | $query = clone $this; |
||
| 42 | $query->filter($filter); |
||
| 43 | $sort = new Sort(); |
||
| 44 | return new ActiveDataProvider( |
||
| 45 | array_merge([ |
||
| 46 | 'query' => $query, |
||
| 47 | 'sort' => $sort |
||
| 48 | ], $options) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | /** |
||
| 54 | * @var mixed $model |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function filter($model = null) |
||
| 63 | } |
||
| 64 | } |
||
| 65 |
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