source/Application/Component/UserComponent.php
private function trimAddress($address)
    {
        if (is_array($address)) {
            $fields  = oxNew(FormFields::class, $address);
            $trimmer = oxNew(FormFieldsTrimmer::class);

            $address = (array)$trimmer->trim($fields);
        }

        return $address;
    }
private function trimAddress($address)
    {
        if (is_array($address)) {
            $fields  = oxNew(FormFields::class, $address);
            $trimmer = oxNew(FormFieldsTrimmer::class);

            $address = (array)$trimmer->trim($fields);
        }

        return $address;
    }
private function trimAddress ( $ address ) { if ( is_array ( $ address ) ) { $ fields = oxNew ( FormFields :: class , $ address ) ; $ trimmer = oxNew ( FormFieldsTrimmer :: class ) ; $ address = ( array ) $ trimmer -> trim ( $ fields ) ; } return $ address ; }
Returns trimmed address.

@param array $address

@return array
Returns trimmed address .