protected function getCountryFormatAddress()
    {
        $updating = $this->getUpdating();

        if (isset($updating['country_format'])) {
            return $updating['country_format'];
        }

        $field = 'country';
        $code = $this->getSubmitted($field);

        if (!isset($code)) {
            return $this->country->getDefaultFormat();
        }

        $country = $this->country->get($code);

        if (empty($country['format'])) {
            $this->setErrorUnavailable($field, $this->translation->text('Country'));
            return array();
        }

        return $country['format'];
    }
protected function getCountryFormatAddress()
    {
        $updating = $this->getUpdating();

        if (isset($updating['country_format'])) {
            return $updating['country_format'];
        }

        $field = 'country';
        $code = $this->getSubmitted($field);

        if (!isset($code)) {
            return $this->country->getDefaultFormat();
        }

        $country = $this->country->get($code);

        if (empty($country['format'])) {
            $this->setErrorUnavailable($field, $this->translation->text('Country'));
            return array();
        }

        return $country['format'];
    }
protected function getCountryFormatAddress ( ) { $ updating = $ this -> getUpdating ( ) ; if ( isset ( $ updating [ 'country_format' ] ) ) { return $ updating [ 'country_format' ] ; } $ field = 'country' ; $ code = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ code ) ) { return $ this -> country -> getDefaultFormat ( ) ; } $ country = $ this -> country -> get ( $ code ) ; if ( empty ( $ country [ 'format' ] ) ) { $ this -> setErrorUnavailable ( $ field , $ this -> translation -> text ( 'Country' ) ) ; return array ( ) ; } return $ country [ 'format' ] ; }
Returns the current country format
@return array
Returns the current country format