original_string: public function updateComponentGroupAction(ComponentGroup $group)
      {
          try {
              $group = execute(new UpdateComponentGroupCommand(
                  $group,
                  Binput::get('name'),
                  $group->order,
                  Binput::get('collapsed'),
                  Binput::get('visible')
              ));
          } catch (ValidationException $e) {
              return cachet_redirect('dashboard.components.groups.edit', [$group->id])
                  ->withInput(Binput::all())
                  ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.components.groups.edit.failure')))
                  ->withErrors($e->getMessageBag());
          }
  
          return cachet_redirect('dashboard.components.groups.edit', [$group->id])
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.edit.success')));
      }
code: public function updateComponentGroupAction(ComponentGroup $group)
      {
          try {
              $group = execute(new UpdateComponentGroupCommand(
                  $group,
                  Binput::get('name'),
                  $group->order,
                  Binput::get('collapsed'),
                  Binput::get('visible')
              ));
          } catch (ValidationException $e) {
              return cachet_redirect('dashboard.components.groups.edit', [$group->id])
                  ->withInput(Binput::all())
                  ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.components.groups.edit.failure')))
                  ->withErrors($e->getMessageBag());
          }
  
          return cachet_redirect('dashboard.components.groups.edit', [$group->id])
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.edit.success')));
      }
code_tokens: public function updateComponentGroupAction ( ComponentGroup $ group ) { try { $ group = execute ( new UpdateComponentGroupCommand ( $ group , Binput :: get ( 'name' ) , $ group -> order , Binput :: get ( 'collapsed' ) , Binput :: get ( 'visible' ) ) ) ; } catch ( ValidationException $ e ) { return cachet_redirect ( 'dashboard.components.groups.edit' , [ $ group -> id ] ) -> withInput ( Binput :: all ( ) ) -> withTitle ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.whoops' ) , trans ( 'dashboard.components.groups.edit.failure' ) ) ) -> withErrors ( $ e -> getMessageBag ( ) ) ; } return cachet_redirect ( 'dashboard.components.groups.edit' , [ $ group -> id ] ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.components.groups.edit.success' ) ) ) ; }
docstring: Updates a component group.
  
  @param \CachetHQ\Cachet\Models\ComponentGroup $group
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Updates a component group .