src/Widgets/MultiTextWidget.php
protected function validator($varInput)
    {
        if (is_array($varInput)) {
            $value = array();
            foreach ($varInput as $key => $input) {
                $value[$key] = parent::validator($input);
            }

            return $value;
        }

        return parent::validator(trim($varInput));
    }
protected function validator($varInput)
    {
        if (is_array($varInput)) {
            $value = array();
            foreach ($varInput as $key => $input) {
                $value[$key] = parent::validator($input);
            }

            return $value;
        }

        return parent::validator(trim($varInput));
    }
protected function validator ( $ varInput ) { if ( is_array ( $ varInput ) ) { $ value = array ( ) ; foreach ( $ varInput as $ key => $ input ) { $ value [ $ key ] = parent :: validator ( $ input ) ; } return $ value ; } return parent :: validator ( trim ( $ varInput ) ) ; }
Trim the values and validate them.

@param mixed $varInput The value to process.

@return mixed The processed value
Trim the values and validate them .