original_string: public function handle(UpdateMetricCommand $command)
      {
          $metric = $command->metric;
  
          $metric->update($this->filter($command));
  
          event(new MetricWasUpdatedEvent($this->auth->user(), $metric));
  
          return $metric;
      }
code: public function handle(UpdateMetricCommand $command)
      {
          $metric = $command->metric;
  
          $metric->update($this->filter($command));
  
          event(new MetricWasUpdatedEvent($this->auth->user(), $metric));
  
          return $metric;
      }
code_tokens: public function handle ( UpdateMetricCommand $ command ) { $ metric = $ command -> metric ; $ metric -> update ( $ this -> filter ( $ command ) ) ; event ( new MetricWasUpdatedEvent ( $ this -> auth -> user ( ) , $ metric ) ) ; return $ metric ; }
docstring: Handle the update metric command.
  
  @param \CachetHQ\Cachet\Bus\Commands\Metric\UpdateMetricCommand $command
  
  @return \CachetHQ\Cachet\Models\Metric
docstring_tokens: Handle the update metric command .