| Total Complexity | 2 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FormModelCheckboxMultiple 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 | "items" => [ |
||
| 27 | "type" => "checkbox-multiple", |
||
| 28 | "values" => ["tomato", "potato", "apple", "pear", "banana"], |
||
| 29 | "checked" => ["potato", "pear"], |
||
| 30 | ], |
||
| 31 | "submit" => [ |
||
| 32 | "type" => "submit", |
||
| 33 | "callback" => [$this, "callbackSubmit"], |
||
| 34 | ], |
||
| 35 | ] |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | |||
| 40 | |||
| 41 | /** |
||
| 42 | * Callback for submit-button which should return true if it could |
||
| 43 | * carry out its work and false if something failed. |
||
| 44 | * |
||
| 45 | * @return boolean true if okey, false if something went wrong. |
||
| 46 | */ |
||
| 47 | public function callbackSubmit() |
||
| 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