Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait OrderTrait |
||
6 | { |
||
7 | /** @var Select */ |
||
|
|||
8 | private $query; |
||
9 | |||
10 | /** |
||
11 | * Ordena por um campo |
||
12 | * @param string $orderBy |
||
13 | * @return static |
||
14 | */ |
||
15 | public function orderBy($orderBy) |
||
16 | { |
||
17 | $this->query->orderBy->set($orderBy); |
||
18 | |||
19 | return $this; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Ordena pelos mais novos |
||
24 | * @return static |
||
25 | */ |
||
26 | public function newer() |
||
27 | { |
||
28 | $this->orderBy('id DESC'); |
||
29 | |||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Ordena pelos mais antigos |
||
35 | * @return static |
||
36 | */ |
||
37 | public function older() |
||
42 | } |
||
43 | } |
||
44 |
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