| Total Complexity | 7 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class SpacecraftNfsIterator implements Iterator |
||
| 16 | { |
||
| 17 | private int $position = 0; |
||
| 18 | |||
| 19 | /** @param array<TSpacecraftItemInterface> $spacecrafts */ |
||
| 20 | 1 | public function __construct(private array $spacecrafts, private int $userId) {} |
|
| 21 | |||
| 22 | 1 | #[Override] |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | #[Override] |
|
| 29 | public function current(): SpacecraftNfsItem |
||
| 30 | { |
||
| 31 | 1 | return new SpacecraftNfsItem($this->spacecrafts[$this->position], $this->userId); |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | #[Override] |
|
| 35 | public function key(): int |
||
| 36 | { |
||
| 37 | 1 | return $this->position; |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | #[Override] |
|
| 41 | public function next(): void |
||
| 42 | { |
||
| 43 | 1 | ++$this->position; |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | #[Override] |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | public function count(): int |
|
| 55 | } |
||
| 56 | } |
||
| 57 |
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