original_string: public function handle(RemoveComponentGroupCommand $command)
      {
          $group = $command->group;
  
          event(new ComponentGroupWasRemovedEvent($this->auth->user(), $group));
  
          // Remove the group id from all component.
          $group->components->map(function ($component) {
              $component->update(['group_id' => 0]);
          });
  
          $group->delete();
      }
code: public function handle(RemoveComponentGroupCommand $command)
      {
          $group = $command->group;
  
          event(new ComponentGroupWasRemovedEvent($this->auth->user(), $group));
  
          // Remove the group id from all component.
          $group->components->map(function ($component) {
              $component->update(['group_id' => 0]);
          });
  
          $group->delete();
      }
code_tokens: public function handle ( RemoveComponentGroupCommand $ command ) { $ group = $ command -> group ; event ( new ComponentGroupWasRemovedEvent ( $ this -> auth -> user ( ) , $ group ) ) ; // Remove the group id from all component. $ group -> components -> map ( function ( $ component ) { $ component -> update ( [ 'group_id' => 0 ] ) ; } ) ; $ group -> delete ( ) ; }
docstring: Handle the remove component group command.
  
  @param \CachetHQ\Cachet\Bus\Commands\ComponentGroup\RemoveComponentGroupCommand $command
  
  @return void
docstring_tokens: Handle the remove component group command .