This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
17
{
18
return array(
19
'name' => '',
20
'id' => '',
21
'disabled' => false,
22
'readonly' => false,
23
'default' => 'off',
24
'filter' => array( $this, 'filter' ),
25
'show' => null
26
);
27
}
28
29
public function required_arguments()
30
{
31
return array('name');
32
}
33
34
public function get_template_path()
35
{
36
return __DIR__.'/template.phtml';
37
}
38
39
/**
40
* This filter is needed when the form is submitted without $.amarkalUIForm,
41
* since the value of the checkbox becomes NULL when it is unchecked. When using
42
* $.amarkalUIForm to submit the form, the component's getValue/setValue will
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.