original_string: 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'];
      }
code: 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'];
      }
code_tokens: 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' ] ; }
docstring: Returns the current country format
  @return array
docstring_tokens: Returns the current country format