Total Complexity | 2 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class FormModelSelectOptionMultiple extends FormModel |
||
11 | { |
||
12 | /** |
||
13 | * Constructor injects with DI container. |
||
14 | * |
||
15 | * @param Anax\DI\DIInterface $di a service container |
||
|
|||
16 | */ |
||
17 | public function __construct(ContainerInterface $di) |
||
18 | { |
||
19 | parent::__construct($di); |
||
20 | $this->form->create( |
||
21 | [ |
||
22 | "id" => __CLASS__, |
||
23 | "legend" => "Legend" |
||
24 | ], |
||
25 | [ |
||
26 | "selectm" => [ |
||
27 | "type" => "select-multiple", |
||
28 | "label" => "Select one or more fruite:", |
||
29 | "description" => "Here you can place a description.", |
||
30 | "size" => 6, |
||
31 | "options" => [ |
||
32 | "tomato" => "tomato", |
||
33 | "potato" => "potato", |
||
34 | "apple" => "apple", |
||
35 | "pear" => "pear", |
||
36 | "banana" => "banana", |
||
37 | ], |
||
38 | "checked" => ["potato", "pear"], |
||
39 | ], |
||
40 | |||
41 | "submit" => [ |
||
42 | "type" => "submit", |
||
43 | "value" => "Submit", |
||
44 | "callback" => [$this, "callbackSubmit"] |
||
45 | ], |
||
46 | ] |
||
47 | ); |
||
48 | } |
||
49 | |||
50 | |||
51 | |||
52 | /** |
||
53 | * Callback for submit-button which should return true if it could |
||
54 | * carry out its work and false if something failed. |
||
55 | * |
||
56 | * @return boolean true if okey, false if something went wrong. |
||
57 | */ |
||
58 | public function callbackSubmit() |
||
70 | } |
||
71 | } |
||
72 |
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