| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FilestoragePager implements AdapterInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var FileStorageDataLayer |
||
| 17 | */ |
||
| 18 | private $dataLayer; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Iterator |
||
| 22 | */ |
||
| 23 | private $iterator; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $resourceClass; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | private $context; |
||
| 34 | |||
| 35 | public function __construct(FileStorageDataLayer $dataLayer, Iterator $iterator, string $resourceClass, array $context) |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getNbResults() |
||
| 44 | { |
||
| 45 | $count = 0; |
||
| 46 | for ($this->iterator->rewind(); $this->iterator->valid(); $this->iterator->next()) { |
||
| 47 | $count++; |
||
| 48 | } |
||
| 49 | return $count; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getSlice($offset, $length) |
||
| 70 | } |
||
| 71 | } |
||
| 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