We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public static function field(string|array|SmartComponentInterface $input) |
||
30 | { |
||
31 | $fieldRepository = new CollectionRepository( |
||
32 | function () { |
||
33 | return self::page()->getOperationSetting('fields') ?? collect(); |
||
34 | }, |
||
35 | function ($collection) { |
||
36 | return self::page()->setOperationSetting('fields', $collection); |
||
37 | } |
||
38 | ); |
||
39 | |||
40 | if ($input instanceof SmartComponentInterface) { |
||
41 | $attributes = new AttributeCollection($input->attributes(), $fieldRepository); |
||
42 | |||
43 | return $input::makeOf($attributes); |
||
44 | } |
||
45 | |||
46 | $input = new AttributeCollection($input, $fieldRepository); |
||
47 | |||
48 | return new Field($input); |
||
49 | } |
||
51 |
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