Total Complexity | 1 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class KnockoutTextField extends TextField |
||
14 | { |
||
15 | use \AntonyThorpe\Knockout\Common; |
||
16 | |||
17 | /** |
||
18 | * bindingType |
||
19 | * |
||
20 | * KnockoutTextField needs either 'value' or 'textInput' as a key for the 'data-bind' HTML attribute |
||
21 | * |
||
22 | * @var string data-bind attribute key |
||
23 | * @example data-bind="input: name, valueUpdate: 'input'" - the binding type is: input. |
||
24 | */ |
||
25 | protected $bindingType = "textInput"; |
||
26 | |||
27 | /** |
||
28 | * casting of variables for security purposes |
||
29 | * |
||
30 | * @see http://docs.silverstripe.org/en/3.1/developer_guides/security/secure_coding/ |
||
31 | */ |
||
32 | protected $casting = array( |
||
33 | "Observable" => "Varchar", |
||
34 | "BindingType" => "Varchar", |
||
35 | "OtherBindings" => "Varchar", |
||
36 | "HasFocus" => "Boolean" |
||
37 | ); |
||
38 | |||
39 | /** |
||
40 | * Constructor |
||
41 | * |
||
42 | * @param string $name |
||
43 | * @param null|string $title |
||
44 | * @param string $value |
||
45 | * @param null|int $maxLength |
||
46 | * @param null|Form $form |
||
|
|||
47 | */ |
||
48 | public function __construct($name, $title = null, $value = '', $maxLength = null, $form = null) |
||
54 |
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