public function getSanitizedValues(&$values = [])
    {
        array_walk($this->fields, function ($field, $index) use (&$values) {
            if (is_array($field)) {
                return $this->sanitizeConditionalValues($values, $field, $index);
            }

            return $this->sanitizeValues($values[$field->getSlug()], $field);
        });

        return $values;
    }
public function getSanitizedValues(&$values = [])
    {
        array_walk($this->fields, function ($field, $index) use (&$values) {
            if (is_array($field)) {
                return $this->sanitizeConditionalValues($values, $field, $index);
            }

            return $this->sanitizeValues($values[$field->getSlug()], $field);
        });

        return $values;
    }
public function getSanitizedValues ( & $ values = [ ] ) { array_walk ( $ this -> fields , function ( $ field , $ index ) use ( & $ values ) { if ( is_array ( $ field ) ) { return $ this -> sanitizeConditionalValues ( $ values , $ field , $ index ) ; } return $ this -> sanitizeValues ( $ values [ $ field -> getSlug ( ) ] , $ field ) ; } ) ; return $ values ; }
Sanitize values.

@param  mixed &$values

@return mixed
Sanitize values .