original_string: public function countryCode(array $condition, array $data, $key)
      {
          // Check form fields
          if (!empty($data['data']['address']['country'])) {
              $country = $data['data']['address']['country'];
              return $this->compare($country, $condition['value'], $condition['operator']);
          }
  
          if (empty($data['data']['order'][$key])) {
              return false;
          }
  
          $address = $this->address->get($data['data']['order'][$key]);
  
          if (empty($address['country'])) {
              return false;
          }
  
          return $this->compare($address['country'], $condition['value'], $condition['operator']);
      }
code: public function countryCode(array $condition, array $data, $key)
      {
          // Check form fields
          if (!empty($data['data']['address']['country'])) {
              $country = $data['data']['address']['country'];
              return $this->compare($country, $condition['value'], $condition['operator']);
          }
  
          if (empty($data['data']['order'][$key])) {
              return false;
          }
  
          $address = $this->address->get($data['data']['order'][$key]);
  
          if (empty($address['country'])) {
              return false;
          }
  
          return $this->compare($address['country'], $condition['value'], $condition['operator']);
      }
code_tokens: public function countryCode ( array $ condition , array $ data , $ key ) { // Check form fields if ( ! empty ( $ data [ 'data' ] [ 'address' ] [ 'country' ] ) ) { $ country = $ data [ 'data' ] [ 'address' ] [ 'country' ] ; return $ this -> compare ( $ country , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; } if ( empty ( $ data [ 'data' ] [ 'order' ] [ $ key ] ) ) { return false ; } $ address = $ this -> address -> get ( $ data [ 'data' ] [ 'order' ] [ $ key ] ) ; if ( empty ( $ address [ 'country' ] ) ) { return false ; } return $ this -> compare ( $ address [ 'country' ] , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
docstring: Whether the country condition is met
  @param array $condition
  @param array $data
  @param string $key
  @return boolean
docstring_tokens: Whether the country condition is met