| Total Complexity | 8 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class PropelCriteriaReadStream implements StreamInterface, ReadStreamInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Propel\Runtime\ActiveQuery\ModelCriteria |
||
| 18 | */ |
||
| 19 | protected $modelCriteria; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \Propel\Runtime\Collection\CollectionIterator |
||
| 23 | */ |
||
| 24 | protected $iterator; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \Propel\Runtime\ActiveQuery\ModelCriteria $modelCriteria |
||
| 28 | */ |
||
| 29 | public function __construct(ModelCriteria $modelCriteria) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function read() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function get() |
||
| 46 | { |
||
| 47 | $item = $this->iterator |
||
| 48 | ->current(); |
||
| 49 | $this->iterator->next(); |
||
| 50 | |||
| 51 | return $item; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function open(): bool |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return bool |
||
| 68 | */ |
||
| 69 | public function close(): bool |
||
| 70 | { |
||
| 71 | unset($this->iterator); |
||
| 72 | |||
| 73 | return true; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param int $offset |
||
| 78 | * @param int $whence |
||
| 79 | * |
||
| 80 | * @return int |
||
| 81 | */ |
||
| 82 | public function seek(int $offset, int $whence): int |
||
| 83 | { |
||
| 84 | if ($whence === SEEK_SET) { |
||
| 85 | $this->iterator->seek($offset); |
||
| 86 | |||
| 87 | return 0; |
||
| 88 | } |
||
| 89 | |||
| 90 | return -1; |
||
| 91 | } |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return bool |
||
| 95 | */ |
||
| 96 | public function eof(): bool |
||
| 99 | } |
||
| 100 | } |
||
| 101 |
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