Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function init(): void |
||
32 | { |
||
33 | // Current table as source of grid |
||
34 | $adapter = new SelectSource(); |
||
35 | $adapter->setSource( |
||
36 | Table::select() |
||
37 | ->addSelect('users.login as login') |
||
38 | ->join('wallets', 'users', 'users', 'users.id = wallets.userId') |
||
39 | ); |
||
40 | |||
41 | $this->addAlias('users.id', 'user'); |
||
42 | $this->addAlias('users.login', 'login'); |
||
43 | $this->setAdapter($adapter); |
||
44 | $this->setDefaultLimit(25); |
||
45 | $this->setAllowFilters(['amount', 'blocked', 'users.id', 'users.login']); |
||
46 | $this->setAllowOrders(['amount', 'blocked', 'users.id', 'users.login', 'created']); |
||
47 | } |
||
49 |
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