Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | final class FuseFillDir implements TypedCDataInterface |
||
24 | { |
||
25 | /** @var \Fuse\FuseFillDirCData */ |
||
26 | private CData $cdata; |
||
27 | |||
28 | public function __invoke(FuseReadDirBuffer $buf, string $name, ?Stat $stbuf, int $off): int |
||
29 | { |
||
30 | if (!is_null($stbuf)) { |
||
31 | $stbuf = $stbuf->toCData($stbuf->newCData()); |
||
32 | } |
||
33 | /** @var int */ |
||
34 | return ($this->cdata)($buf->toCData(null), $name, $stbuf, $off); |
||
35 | } |
||
36 | |||
37 | public static function getCTypeName(): string |
||
38 | { |
||
39 | return 'fuse_fill_dir_t'; |
||
40 | } |
||
41 | |||
42 | /** @param \Fuse\FuseFillDirCData $cdata */ |
||
43 | public function __construct(CData $cdata) |
||
44 | { |
||
45 | $this->cdata = $cdata; |
||
46 | } |
||
47 | |||
48 | /** @return static */ |
||
49 | public static function fromCData(CData $cdata): self |
||
50 | { |
||
51 | /** @var \Fuse\FuseFillDirCData $cdata */ |
||
52 | return new self($cdata); |
||
53 | } |
||
54 | |||
55 | public function toCData(CData $cdata): CData |
||
56 | { |
||
57 | return $cdata; |
||
58 | } |
||
59 | |||
60 | public static function newCData(): CData |
||
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