| Conditions | 1 |
| Paths | 1 |
| Total Lines | 35 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct(ContainerInterface $di) |
||
| 18 | { |
||
| 19 | parent::__construct($di); |
||
| 20 | |||
| 21 | $license = "You must accept the <a href=http://opensource.org/licenses/GPL-3.0>license agreement</a>."; |
||
| 22 | |||
| 23 | $this->form->create( |
||
| 24 | [ |
||
| 25 | "id" => __CLASS__, |
||
| 26 | "legend" => "Legend" |
||
| 27 | ], |
||
| 28 | [ |
||
| 29 | "accept_mail" => [ |
||
| 30 | "type" => "checkbox", |
||
| 31 | "label" => "It´s great if you send me product information by mail.", |
||
| 32 | "checked" => false, |
||
| 33 | ], |
||
| 34 | |||
| 35 | "accept_phone" => [ |
||
| 36 | "type" => "checkbox", |
||
| 37 | "label" => "You may call me to try and sell stuff.", |
||
| 38 | "checked" => true, |
||
| 39 | ], |
||
| 40 | |||
| 41 | "accept_agreement" => [ |
||
| 42 | "type" => "checkbox", |
||
| 43 | "label" => $license, |
||
| 44 | "required" => true, |
||
| 45 | "validation" => ["must_accept"], |
||
| 46 | ], |
||
| 47 | |||
| 48 | "submit" => [ |
||
| 49 | "type" => "submit", |
||
| 50 | "value" => "Submit", |
||
| 51 | "callback" => [$this, "callbackSubmit"] |
||
| 52 | ], |
||
| 84 |
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