@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Reads config from yaml file |
| 57 | - * @param null $configPath |
|
| 57 | + * @param string $configPath |
|
| 58 | 58 | * @throws \Exception |
| 59 | 59 | */ |
| 60 | 60 | public function loadFromConfigYaml($configPath = null) { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * Calls custom rule which can be an callback or private method |
| 208 | 208 | * @param $rule |
| 209 | - * @param $request |
|
| 209 | + * @param Request $request |
|
| 210 | 210 | * @return mixed |
| 211 | 211 | */ |
| 212 | 212 | protected function callCustomRules($rule, $request) { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * Calls requested element from fields array or creates it |
| 275 | 275 | * @param string $method |
| 276 | 276 | * @param mixed $args |
| 277 | - * @return mixed|Fields\FieldsInterface |
|
| 277 | + * @return Fields\FieldsInterface|null |
|
| 278 | 278 | * @throws \Exception |
| 279 | 279 | */ |
| 280 | 280 | public function __call($method, $args) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Code4\Forms\Fields; |
| 4 | 4 | |
| 5 | 5 | use Code4\Forms\Traits\checkedTrait; |
| 6 | -use Code4\Forms\Traits\groupFieldTrait; |
|
| 7 | 6 | |
| 8 | 7 | class onOffSwitch extends AbstractField { |
| 9 | 8 | |