original_string: protected function addUserRole()
      {
          $this->controlAccess('user_role_add');
  
          if ($this->role->add($this->getSubmitted())) {
              $this->redirect('admin/user/role', $this->text('Role has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Role has not been added'), 'warning');
      }
code: protected function addUserRole()
      {
          $this->controlAccess('user_role_add');
  
          if ($this->role->add($this->getSubmitted())) {
              $this->redirect('admin/user/role', $this->text('Role has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Role has not been added'), 'warning');
      }
code_tokens: protected function addUserRole ( ) { $ this -> controlAccess ( 'user_role_add' ) ; if ( $ this -> role -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/user/role' , $ this -> text ( 'Role has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Role has not been added' ) , 'warning' ) ; }
docstring: Adds a new user role
docstring_tokens: Adds a new user role