original_string: public function update(Schedule $schedule)
      {
          try {
              $schedule = execute(new UpdateScheduleCommand(
                  $schedule,
                  Binput::get('name'),
                  Binput::get('message'),
                  Binput::get('status'),
                  Binput::get('scheduled_at'),
                  Binput::get('completed_at'),
                  Binput::get('components', [])
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($schedule);
      }
code: public function update(Schedule $schedule)
      {
          try {
              $schedule = execute(new UpdateScheduleCommand(
                  $schedule,
                  Binput::get('name'),
                  Binput::get('message'),
                  Binput::get('status'),
                  Binput::get('scheduled_at'),
                  Binput::get('completed_at'),
                  Binput::get('components', [])
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($schedule);
      }
code_tokens: public function update ( Schedule $ schedule ) { try { $ schedule = execute ( new UpdateScheduleCommand ( $ schedule , Binput :: get ( 'name' ) , Binput :: get ( 'message' ) , Binput :: get ( 'status' ) , Binput :: get ( 'scheduled_at' ) , Binput :: get ( 'completed_at' ) , Binput :: get ( 'components' , [ ] ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ schedule ) ; }
docstring: Update a schedule.
  
  @param \CachetHQ\Cachet\Models\Schedule $schedule
  
  @return \Illuminate\Http\JsonResponse
docstring_tokens: Update a schedule .