Total Complexity | 6 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Order implements OrderInterface |
||
15 | { |
||
16 | protected $key; |
||
17 | |||
18 | protected $builder; |
||
19 | |||
20 | protected $order = 'asc'; |
||
21 | |||
22 | protected $query; |
||
23 | |||
24 | public function __construct(Query $query, Builder $builder, $key) |
||
25 | { |
||
26 | $this->query = $query; |
||
27 | |||
28 | $this->builder = $builder; |
||
29 | |||
30 | $this->key = $key; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Sets the order in ascending. |
||
35 | * |
||
36 | * @return \Rougin\Windstorm\QueryInterface |
||
37 | */ |
||
38 | public function ascending() |
||
39 | { |
||
40 | $this->order = 'asc'; |
||
41 | |||
42 | return $this; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Sets the order in descending. |
||
47 | * |
||
48 | * @return \Rougin\Windstorm\QueryInterface |
||
49 | */ |
||
50 | public function descending() |
||
51 | { |
||
52 | $this->order = 'desc'; |
||
53 | |||
54 | return $this; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Calls a method from a QueryInterface instance. |
||
59 | * |
||
60 | * @param string $method |
||
61 | * @param array $parameters |
||
62 | * @return \Rougin\Windstorm\QueryInterface |
||
63 | */ |
||
64 | public function __call($method, $parameters) |
||
65 | { |
||
66 | return call_user_func_array(array($this->set(), $method), $parameters); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * Calls a __toString() from a QueryInterface instance. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function __toString() |
||
77 | } |
||
78 | |||
79 | protected function set() |
||
84 | } |
||
85 | } |
||
86 |
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