Total Complexity | 7 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Field extends Component |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public $name; |
||
14 | |||
15 | /** |
||
16 | * @var true\mixed |
||
|
|||
17 | */ |
||
18 | public $label; |
||
19 | |||
20 | /** |
||
21 | * @var false|mixed |
||
22 | */ |
||
23 | public $required; |
||
24 | /** |
||
25 | * @var Repository |
||
26 | */ |
||
27 | private $config; |
||
28 | |||
29 | public function __construct(Repository $config, string $name, $required = false, $label = true) |
||
35 | } |
||
36 | |||
37 | public function highlightsRequired() |
||
38 | { |
||
39 | return $this->config->get('form.highlights_requirement') === 'required' && $this->required; |
||
40 | } |
||
41 | |||
42 | public function highlightsOptional() |
||
45 | } |
||
46 | |||
47 | public function highlightsLabel() |
||
51 | } |
||
52 | |||
53 | public function render() |
||
58 |
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