original_string: protected function validateEditCity()
      {
          $this->setSubmitted('city');
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_city);
          $this->setSubmitted('country', $this->data_country['code']);
          $this->setSubmitted('state_id', $this->data_state['state_id']);
  
          $this->validateComponent('city');
  
          return !$this->hasErrors();
      }
code: protected function validateEditCity()
      {
          $this->setSubmitted('city');
          $this->setSubmittedBool('status');
          $this->setSubmitted('update', $this->data_city);
          $this->setSubmitted('country', $this->data_country['code']);
          $this->setSubmitted('state_id', $this->data_state['state_id']);
  
          $this->validateComponent('city');
  
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditCity ( ) { $ this -> setSubmitted ( 'city' ) ; $ this -> setSubmittedBool ( 'status' ) ; $ this -> setSubmitted ( 'update' , $ this -> data_city ) ; $ this -> setSubmitted ( 'country' , $ this -> data_country [ 'code' ] ) ; $ this -> setSubmitted ( 'state_id' , $ this -> data_state [ 'state_id' ] ) ; $ this -> validateComponent ( 'city' ) ; return ! $ this -> hasErrors ( ) ; }
docstring: Validates an array of submitted city data
  @return bool
docstring_tokens: Validates an array of submitted city data