| Total Complexity | 8 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DefaultRepository extends EntityRepository { |
||
| 11 | |||
| 12 | public function pagerfanta(Request $request) { |
||
| 13 | $sql = $this->createQueryBuilder('data'); |
||
| 14 | $sql->select('data'); |
||
| 15 | switch ($request->get('type', 'all')) { |
||
| 16 | case 'success': |
||
| 17 | $sql->where('data.status = 1 or data.status = 2'); |
||
| 18 | break; |
||
| 19 | case 'new': |
||
| 20 | $sql->where('data.status = 1'); |
||
| 21 | break; |
||
| 22 | case 'update': |
||
| 23 | $sql->where('data.status = 2'); |
||
| 24 | break; |
||
| 25 | case 'error': |
||
| 26 | $sql->where('data.status = 3'); |
||
| 27 | break; |
||
| 28 | } |
||
| 29 | return $sql->getQuery(); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function count(array $where = []) { |
||
| 43 | } |
||
| 44 | |||
| 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