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