original_string: public function update(ComponentGroup $group)
      {
          try {
              $group = execute(new UpdateComponentGroupCommand(
                  $group,
                  Binput::get('name'),
                  Binput::get('order'),
                  Binput::get('collapsed'),
                  Binput::get('visible')
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($group);
      }
code: public function update(ComponentGroup $group)
      {
          try {
              $group = execute(new UpdateComponentGroupCommand(
                  $group,
                  Binput::get('name'),
                  Binput::get('order'),
                  Binput::get('collapsed'),
                  Binput::get('visible')
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($group);
      }
code_tokens: public function update ( ComponentGroup $ group ) { try { $ group = execute ( new UpdateComponentGroupCommand ( $ group , Binput :: get ( 'name' ) , Binput :: get ( 'order' ) , Binput :: get ( 'collapsed' ) , Binput :: get ( 'visible' ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ group ) ; }
docstring: Update an existing group.
  
  @param \CachetHQ\Cachet\Models\ComponentGroup $group
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Update an existing group .