original_string: public function postUpdateComponent(Component $component)
      {
          try {
              execute(new UpdateComponentCommand(
                  $component,
                  $component->name,
                  $component->description,
                  Binput::get('status'),
                  $component->link,
                  $component->order,
                  $component->group_id,
                  $component->enabled,
                  $component->meta,
                  false
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($component);
      }
code: public function postUpdateComponent(Component $component)
      {
          try {
              execute(new UpdateComponentCommand(
                  $component,
                  $component->name,
                  $component->description,
                  Binput::get('status'),
                  $component->link,
                  $component->order,
                  $component->group_id,
                  $component->enabled,
                  $component->meta,
                  false
              ));
          } catch (QueryException $e) {
              throw new BadRequestHttpException();
          }
  
          return $this->item($component);
      }
code_tokens: public function postUpdateComponent ( Component $ component ) { try { execute ( new UpdateComponentCommand ( $ component , $ component -> name , $ component -> description , Binput :: get ( 'status' ) , $ component -> link , $ component -> order , $ component -> group_id , $ component -> enabled , $ component -> meta , false ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ component ) ; }
docstring: Updates a component with the entered info.
  
  @param \CachetHQ\Cachet\Models\Component $component
  
  @throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
  
  @return \CachetHQ\Cachet\Models\Component
docstring_tokens: Updates a component with the entered info .