Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public function getSlice($offset, $length) |
||
53 | { |
||
54 | $list = new LimitIterator( |
||
55 | $this->iterator, |
||
56 | $offset, |
||
57 | $length |
||
58 | ); |
||
59 | $result = []; |
||
60 | try { |
||
61 | foreach ($list as $file) { |
||
62 | /** @var SplFileInfo $file */ |
||
63 | $result[] = $this->dataLayer->retrieve($this->resourceClass, $file->getBasename(), $this->context); |
||
64 | |||
65 | } |
||
66 | } catch (OutOfBoundsException $outOfBoundsException) { |
||
67 | $outOfBoundsException->getMessage(); // ignore |
||
68 | } |
||
69 | return $result; |
||
70 | } |
||
72 |
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