original_string: protected function discover()
      {
          /** @var File $file */
          foreach ($this->fileset as $file) {
              $rst = new Document($this, $file);
              $rst->options->xhtmlVisitor = 'phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\Visitors\Discover';
  
              if ($this->getLogger()) {
                  $this->getLogger()->info('Scanning file "' . $file->getRealPath() . '"');
              }
  
              try {
                  $rst->getAsXhtml();
              } catch (\Exception $e) {
                  continue;
              }
          }
      }
code: protected function discover()
      {
          /** @var File $file */
          foreach ($this->fileset as $file) {
              $rst = new Document($this, $file);
              $rst->options->xhtmlVisitor = 'phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\Visitors\Discover';
  
              if ($this->getLogger()) {
                  $this->getLogger()->info('Scanning file "' . $file->getRealPath() . '"');
              }
  
              try {
                  $rst->getAsXhtml();
              } catch (\Exception $e) {
                  continue;
              }
          }
      }
code_tokens: protected function discover ( ) { /** @var File $file */ foreach ( $ this -> fileset as $ file ) { $ rst = new Document ( $ this , $ file ) ; $ rst -> options -> xhtmlVisitor = 'phpDocumentor\Plugin\Scrybe\Converter\RestructuredText\Visitors\Discover' ; if ( $ this -> getLogger ( ) ) { $ this -> getLogger ( ) -> info ( 'Scanning file "' . $ file -> getRealPath ( ) . '"' ) ; } try { $ rst -> getAsXhtml ( ) ; } catch ( \ Exception $ e ) { continue ; } } }
docstring: Discovers the data that is spanning all files.
  
  This method tries to find any data that needs to be collected before the actual creation and substitution
  phase begins.
  
  Examples of data that needs to be collected during an initial phase is a table of contents, list of document
  titles for references, assets and more.
  
  @see manual://internals#build_cycle for more information regarding the build process.
  
  @return void
docstring_tokens: Discovers the data that is spanning all files .