original_string: public function onIndex(IndexEvent $event)
      {
          try {
              $this->searchManager->index($event->getSubject());
          } catch (MetadataNotFoundException $ex) {
              // no metadata found => do nothing
          }
      }
code: public function onIndex(IndexEvent $event)
      {
          try {
              $this->searchManager->index($event->getSubject());
          } catch (MetadataNotFoundException $ex) {
              // no metadata found => do nothing
          }
      }
code_tokens: public function onIndex ( IndexEvent $ event ) { try { $ this -> searchManager -> index ( $ event -> getSubject ( ) ) ; } catch ( MetadataNotFoundException $ ex ) { // no metadata found => do nothing } }
docstring: Index subject from event.
  
  @param IndexEvent $event
docstring_tokens: Index subject from event .