Total Complexity | 6 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace Mbh\Collection\Traits\Sequenceable\LinkedList; |
||
13 | trait Iterator |
||
14 | { |
||
15 | protected $current; |
||
16 | protected $offset = -1; |
||
17 | |||
18 | /** |
||
19 | * @link http://php.net/manual/en/iterator.current.php |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function current() |
||
23 | { |
||
24 | return $this->current->value(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @link http://php.net/manual/en/iterator.next.php |
||
29 | * @return void |
||
30 | */ |
||
31 | public function next() |
||
32 | { |
||
33 | $this->forward(); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return void |
||
38 | */ |
||
39 | public function prev() |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @link http://php.net/manual/en/iterator.key.php |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function key() |
||
49 | { |
||
50 | return $this->offset; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @link http://php.net/manual/en/iterator.valid.php |
||
55 | * @return boolean |
||
56 | */ |
||
57 | public function valid() |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @link http://php.net/manual/en/iterator.rewind.php |
||
64 | * @return void |
||
65 | */ |
||
66 | public function rewind() |
||
71 | } |
||
72 | |||
73 | abstract protected function backward(); |
||
74 | |||
75 | abstract protected function forward(); |
||
76 | } |
||
77 |
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