@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * |
55 | - * @param type $type |
|
56 | - * @param type $props |
|
55 | + * @param string $type |
|
56 | + * @param type string |
|
57 | 57 | * @throws \RuntimeException |
58 | 58 | */ |
59 | 59 | private static function create_core_component( $type, $props ) |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * |
82 | - * @param type $type |
|
83 | - * @param type $props |
|
82 | + * @param string $type |
|
83 | + * @param type string |
|
84 | 84 | * @throws \RuntimeException |
85 | 85 | */ |
86 | 86 | private static function create_registered_component( $type, $props ) |
@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * |
125 | 125 | * @param type $args |
126 | - * @return type |
|
126 | + * @return AbstractComponent |
|
127 | 127 | */ |
128 | 128 | private function create_component( $args ) |
129 | 129 | { |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_composite |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | /** |
16 | 16 | * The list of child components. |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Component_checkbox |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface |
|
11 | + DisableableComponentInterface |
|
12 | 12 | { |
13 | 13 | public $name_template = '{{name}}[]'; |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Component_select |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface |
|
11 | + DisableableComponentInterface |
|
12 | 12 | { |
13 | 13 | public $component_type = 'select'; |
14 | 14 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_textarea |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'textarea'; |
16 | 16 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_number |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'number'; |
16 | 16 |
@@ -8,9 +8,9 @@ |
||
8 | 8 | class Component_text |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface, |
|
13 | - ValidatableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface, |
|
13 | + ValidatableComponentInterface |
|
14 | 14 | { |
15 | 15 | public $component_type = 'text'; |
16 | 16 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Component_radio |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface |
|
11 | + DisableableComponentInterface |
|
12 | 12 | { |
13 | 13 | public $component_type = 'radio'; |
14 | 14 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * handle this. |
44 | 44 | * |
45 | 45 | * @param [string] $v |
46 | - * @return void |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public function filter($v) |
49 | 49 | { |
@@ -8,8 +8,8 @@ |
||
8 | 8 | class Component_switch |
9 | 9 | extends AbstractComponent |
10 | 10 | implements ValueComponentInterface, |
11 | - DisableableComponentInterface, |
|
12 | - FilterableComponentInterface |
|
11 | + DisableableComponentInterface, |
|
12 | + FilterableComponentInterface |
|
13 | 13 | { |
14 | 14 | public $component_type = 'switch'; |
15 | 15 |