source/Core/Form/FormFieldsTrimmer.php
public function trim(EshopFormFields $fields)
    {
        $updatableFields = $fields->getUpdatableFields();

        array_walk_recursive($updatableFields, function (&$value) {
            $value = $this->isTrimmableField($value) ? $this->trimField($value) : $value;
        });

        return $updatableFields;
    }
public function trim(EshopFormFields $fields)
    {
        $updatableFields = $fields->getUpdatableFields();

        array_walk_recursive($updatableFields, function (&$value) {
            $value = $this->isTrimmableField($value) ? $this->trimField($value) : $value;
        });

        return $updatableFields;
    }
public function trim ( EshopFormFields $ fields ) { $ updatableFields = $ fields -> getUpdatableFields ( ) ; array_walk_recursive ( $ updatableFields , function ( & $ value ) { $ value = $ this -> isTrimmableField ( $ value ) ? $ this -> trimField ( $ value ) : $ value ; } ) ; return $ updatableFields ; }
Returns trimmed fields.

@param EshopFormFields $fields to trim.

@return array
Returns trimmed fields .