original_string: protected function addCategoryGroup()
      {
          $this->controlAccess('category_group_add');
  
          if ($this->category_group->add($this->getSubmitted())) {
              $this->redirect('admin/content/category-group', $this->text('Category group has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Category group has not been added'), 'warning');
      }
code: protected function addCategoryGroup()
      {
          $this->controlAccess('category_group_add');
  
          if ($this->category_group->add($this->getSubmitted())) {
              $this->redirect('admin/content/category-group', $this->text('Category group has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Category group has not been added'), 'warning');
      }
code_tokens: protected function addCategoryGroup ( ) { $ this -> controlAccess ( 'category_group_add' ) ; if ( $ this -> category_group -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/content/category-group' , $ this -> text ( 'Category group has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Category group has not been added' ) , 'warning' ) ; }
docstring: Adds a new category group
docstring_tokens: Adds a new category group