original_string: public function update(Incident $incident, IncidentUpdate $update)
      {
          try {
              $update = execute(new UpdateIncidentUpdateCommand(
                  $update,
                  Binput::get('status'),
                  Binput::get('message'),
                  Auth::user()
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($update);
      }
code: public function update(Incident $incident, IncidentUpdate $update)
      {
          try {
              $update = execute(new UpdateIncidentUpdateCommand(
                  $update,
                  Binput::get('status'),
                  Binput::get('message'),
                  Auth::user()
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($update);
      }
code_tokens: public function update ( Incident $ incident , IncidentUpdate $ update ) { try { $ update = execute ( new UpdateIncidentUpdateCommand ( $ update , Binput :: get ( 'status' ) , Binput :: get ( 'message' ) , Auth :: user ( ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ update ) ; }
docstring: Update an incident update.
  
  @param \CachetHQ\Cachet\Models\Incident       $incident
  @param \CachetHQ\Cachet\Models\IncidentUpdate $update
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Update an incident update .