original_string: protected function addStore()
      {
          $this->controlAccess('store_add');
  
          if ($this->store->add($this->getSubmitted())) {
              $this->redirect('admin/settings/store', $this->text('Store has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Store has not been added'), 'warning');
      }
code: protected function addStore()
      {
          $this->controlAccess('store_add');
  
          if ($this->store->add($this->getSubmitted())) {
              $this->redirect('admin/settings/store', $this->text('Store has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Store has not been added'), 'warning');
      }
code_tokens: protected function addStore ( ) { $ this -> controlAccess ( 'store_add' ) ; if ( $ this -> store -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/settings/store' , $ this -> text ( 'Store has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Store has not been added' ) , 'warning' ) ; }
docstring: Adds a new store
docstring_tokens: Adds a new store