original_string: public function getFiles(Finder $finder)
      {
          $finder->files()->in($this->directory)->ignoreUnreadableDirs();
  
          // Ignore third party libraries.
          foreach ($this->getThirdPartyLibraryPaths() as $libPath) {
              $finder->notPath($libPath);
          }
  
          // Extra ignores for CI.
          $ignores = $this->getIgnores();
  
          if (!empty($ignores['notPaths'])) {
              foreach ($ignores['notPaths'] as $notPath) {
                  $finder->notPath($notPath);
              }
          }
          if (!empty($ignores['notNames'])) {
              foreach ($ignores['notNames'] as $notName) {
                  $finder->notName($notName);
              }
          }
  
          $files = [];
          foreach ($finder as $file) {
              /* @var \SplFileInfo $file */
              $files[] = $file->getRealPath();
          }
  
          return $files;
      }
code: public function getFiles(Finder $finder)
      {
          $finder->files()->in($this->directory)->ignoreUnreadableDirs();
  
          // Ignore third party libraries.
          foreach ($this->getThirdPartyLibraryPaths() as $libPath) {
              $finder->notPath($libPath);
          }
  
          // Extra ignores for CI.
          $ignores = $this->getIgnores();
  
          if (!empty($ignores['notPaths'])) {
              foreach ($ignores['notPaths'] as $notPath) {
                  $finder->notPath($notPath);
              }
          }
          if (!empty($ignores['notNames'])) {
              foreach ($ignores['notNames'] as $notName) {
                  $finder->notName($notName);
              }
          }
  
          $files = [];
          foreach ($finder as $file) {
              /* @var \SplFileInfo $file */
              $files[] = $file->getRealPath();
          }
  
          return $files;
      }
code_tokens: public function getFiles ( Finder $ finder ) { $ finder -> files ( ) -> in ( $ this -> directory ) -> ignoreUnreadableDirs ( ) ; // Ignore third party libraries. foreach ( $ this -> getThirdPartyLibraryPaths ( ) as $ libPath ) { $ finder -> notPath ( $ libPath ) ; } // Extra ignores for CI. $ ignores = $ this -> getIgnores ( ) ; if ( ! empty ( $ ignores [ 'notPaths' ] ) ) { foreach ( $ ignores [ 'notPaths' ] as $ notPath ) { $ finder -> notPath ( $ notPath ) ; } } if ( ! empty ( $ ignores [ 'notNames' ] ) ) { foreach ( $ ignores [ 'notNames' ] as $ notName ) { $ finder -> notName ( $ notName ) ; } } $ files = [ ] ; foreach ( $ finder as $ file ) { /* @var \SplFileInfo $file */ $ files [ ] = $ file -> getRealPath ( ) ; } return $ files ; }
docstring: Get a list of plugin files.
  
  @param Finder $finder The finder to use, can be pre-configured
  
  @return array Of files
docstring_tokens: Get a list of plugin files .