original_string: protected function deleteCategory()
      {
          $this->controlAccess('category_delete');
  
          if ($this->category->delete($this->data_category['category_id'])) {
              $url = "admin/content/category/{$this->data_category_group['category_group_id']}";
              $this->redirect($url, $this->text('Category has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Category has not been deleted'), 'warning');
      }
code: protected function deleteCategory()
      {
          $this->controlAccess('category_delete');
  
          if ($this->category->delete($this->data_category['category_id'])) {
              $url = "admin/content/category/{$this->data_category_group['category_group_id']}";
              $this->redirect($url, $this->text('Category has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Category has not been deleted'), 'warning');
      }
code_tokens: protected function deleteCategory ( ) { $ this -> controlAccess ( 'category_delete' ) ; if ( $ this -> category -> delete ( $ this -> data_category [ 'category_id' ] ) ) { $ url = "admin/content/category/{$this->data_category_group['category_group_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'Category has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Category has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a category
docstring_tokens: Deletes a category