Total Complexity | 8 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SuperAttributeAkeneoApiReadStream extends AbstractAkeneoApiReadStream |
||
11 | { |
||
12 | /** |
||
13 | * @var \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursor |
||
|
|||
14 | */ |
||
15 | protected $cursorVariants; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected const KEY_CODE = 'code'; |
||
21 | |||
22 | /** |
||
23 | * @return bool |
||
24 | */ |
||
25 | public function open(): bool |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return array |
||
35 | */ |
||
36 | public function get(): array |
||
37 | { |
||
38 | if (($this->cursorVariants !== null) && $this->cursorVariants->valid()) { |
||
39 | return $this->cursorVariants->current(); |
||
40 | } |
||
41 | |||
42 | $family = $this->cursor->current(); |
||
43 | $this->cursor->next(); |
||
44 | |||
45 | $this->cursorVariants = $this->akeneoPimService->getFamilyVariants($family[static::KEY_CODE]); |
||
46 | |||
47 | return $this->cursorVariants->valid() ? $this->cursorVariants->current() : []; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function eof(): bool |
||
63 | } |
||
64 | } |
||
65 |
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