original_string: public function update(Metric $metric, MetricPoint $metricPoint)
      {
          $metricPoint = execute(new UpdateMetricPointCommand(
              $metricPoint,
              $metric,
              Binput::get('value'),
              Binput::get('timestamp')
          ));
  
          return $this->item($metricPoint);
      }
code: public function update(Metric $metric, MetricPoint $metricPoint)
      {
          $metricPoint = execute(new UpdateMetricPointCommand(
              $metricPoint,
              $metric,
              Binput::get('value'),
              Binput::get('timestamp')
          ));
  
          return $this->item($metricPoint);
      }
code_tokens: public function update ( Metric $ metric , MetricPoint $ metricPoint ) { $ metricPoint = execute ( new UpdateMetricPointCommand ( $ metricPoint , $ metric , Binput :: get ( 'value' ) , Binput :: get ( 'timestamp' ) ) ) ; return $ this -> item ( $ metricPoint ) ; }
docstring: Updates a metric point.
  
  @param \CachetHQ\Cachet\Models\Metric      $metric
  @param \CachetHQ\Cachet\Models\MetricPoint $metricPoint
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Updates a metric point .