original_string: protected function getProgressBar(InputInterface $input)
      {
          $progress = parent::getProgressBar($input);
          if (!$progress) {
              return null;
          }
  
          $this->getService('event_dispatcher')->addListener(
              'parser.file.pre',
              function (PreFileEvent $event) use ($progress) {
                  $progress->advance();
              }
          );
  
          return $progress;
      }
code: protected function getProgressBar(InputInterface $input)
      {
          $progress = parent::getProgressBar($input);
          if (!$progress) {
              return null;
          }
  
          $this->getService('event_dispatcher')->addListener(
              'parser.file.pre',
              function (PreFileEvent $event) use ($progress) {
                  $progress->advance();
              }
          );
  
          return $progress;
      }
code_tokens: protected function getProgressBar ( InputInterface $ input ) { $ progress = parent :: getProgressBar ( $ input ) ; if ( ! $ progress ) { return null ; } $ this -> getService ( 'event_dispatcher' ) -> addListener ( 'parser.file.pre' , function ( PreFileEvent $ event ) use ( $ progress ) { $ progress -> advance ( ) ; } ) ; return $ progress ; }
docstring: Adds the parser.file.pre event to the advance the progressbar.
  
  @param InputInterface $input
  
  @return \Symfony\Component\Console\Helper\HelperInterface|null
docstring_tokens: Adds the parser . file . pre event to the advance the progressbar .