Conditions | 1 |
Paths | 1 |
Total Lines | 37 |
Code Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | protected function defineFieldDefinitions(array $params = []): void |
||
|
|||
12 | { |
||
13 | $this->fieldDefinitions = [ |
||
14 | 'id' => [ |
||
15 | 'label' => 'ID', |
||
16 | ], |
||
17 | 'path' => [ |
||
18 | 'label' => __('path'), |
||
19 | 'type' => 'text', |
||
20 | 'attributes' => ['class' => 'form-control'], |
||
21 | 'label_attributes' => ['class' => 'form-label'], |
||
22 | 'default' => '', |
||
23 | 'searchable' => true, |
||
24 | 'rules' => ['required'], |
||
25 | 'filter' => FILTER_SANITIZE_FULL_SPECIAL_CHARS, |
||
26 | 'template' => 'default', |
||
27 | 'group' => 'main', |
||
28 | 'fieldset_template' => 'forms/fieldset/flat.php', |
||
29 | ], |
||
30 | 'description' => [ |
||
31 | 'label' => __('description'), |
||
32 | 'description' => '', |
||
33 | 'type' => 'textarea', |
||
34 | 'attributes' => [ |
||
35 | 'class' => 'form-control', |
||
36 | 'rows' => '2' |
||
37 | ], |
||
38 | 'label_attributes' => ['class' => 'form-label'], |
||
39 | 'default' => '', |
||
40 | 'searchable' => true, |
||
41 | 'rules' => [ |
||
42 | ['lengthMin', 3] |
||
43 | ], |
||
44 | 'filter' => FILTER_UNSAFE_RAW, |
||
45 | 'template' => 'default', |
||
46 | 'group' => 'main', |
||
47 | 'fieldset_template' => 'forms/fieldset/flat.php', |
||
48 | ], |
||
52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.