original_string: protected function deleteStore()
      {
          $this->controlAccess('store_delete');
  
          if ($this->store->delete($this->data_store['store_id'])) {
              $this->redirect('admin/settings/store', $this->text('Store has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Store has not been deleted'), 'danger');
      }
code: protected function deleteStore()
      {
          $this->controlAccess('store_delete');
  
          if ($this->store->delete($this->data_store['store_id'])) {
              $this->redirect('admin/settings/store', $this->text('Store has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Store has not been deleted'), 'danger');
      }
code_tokens: protected function deleteStore ( ) { $ this -> controlAccess ( 'store_delete' ) ; if ( $ this -> store -> delete ( $ this -> data_store [ 'store_id' ] ) ) { $ this -> redirect ( 'admin/settings/store' , $ this -> text ( 'Store has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Store has not been deleted' ) , 'danger' ) ; }
docstring: Deletes a store
docstring_tokens: Deletes a store