original_string: protected function deleteZone()
      {
          $this->controlAccess('zone_delete');
  
          if ($this->zone->delete($this->data_zone['zone_id'])) {
              $this->redirect('admin/settings/zone', $this->text('Zone has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Zone has not been deleted'), 'danger');
      }
code: protected function deleteZone()
      {
          $this->controlAccess('zone_delete');
  
          if ($this->zone->delete($this->data_zone['zone_id'])) {
              $this->redirect('admin/settings/zone', $this->text('Zone has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Zone has not been deleted'), 'danger');
      }
code_tokens: protected function deleteZone ( ) { $ this -> controlAccess ( 'zone_delete' ) ; if ( $ this -> zone -> delete ( $ this -> data_zone [ 'zone_id' ] ) ) { $ this -> redirect ( 'admin/settings/zone' , $ this -> text ( 'Zone has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Zone has not been deleted' ) , 'danger' ) ; }
docstring: Deletes a zone
docstring_tokens: Deletes a zone