original_string: protected function deletePriceRule()
      {
          $this->controlAccess('price_rule_delete');
  
          if ($this->price_rule->delete($this->data_rule['price_rule_id'])) {
              $this->redirect('admin/sale/price', $this->text('Price rule has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Price rule has not been deleted'), 'warning');
      }
code: protected function deletePriceRule()
      {
          $this->controlAccess('price_rule_delete');
  
          if ($this->price_rule->delete($this->data_rule['price_rule_id'])) {
              $this->redirect('admin/sale/price', $this->text('Price rule has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Price rule has not been deleted'), 'warning');
      }
code_tokens: protected function deletePriceRule ( ) { $ this -> controlAccess ( 'price_rule_delete' ) ; if ( $ this -> price_rule -> delete ( $ this -> data_rule [ 'price_rule_id' ] ) ) { $ this -> redirect ( 'admin/sale/price' , $ this -> text ( 'Price rule has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Price rule has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a price rule
docstring_tokens: Deletes a price rule