original_string: protected function deleteCity()
      {
          $this->controlAccess('city_delete');
  
          if ($this->city->delete($this->data_city['city_id'])) {
              $url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}";
              $this->redirect($url, $this->text('City has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('City has not been deleted'), 'warning');
      }
code: protected function deleteCity()
      {
          $this->controlAccess('city_delete');
  
          if ($this->city->delete($this->data_city['city_id'])) {
              $url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}";
              $this->redirect($url, $this->text('City has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('City has not been deleted'), 'warning');
      }
code_tokens: protected function deleteCity ( ) { $ this -> controlAccess ( 'city_delete' ) ; if ( $ this -> city -> delete ( $ this -> data_city [ 'city_id' ] ) ) { $ url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'City has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'City has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a city
docstring_tokens: Deletes a city