original_string: public function scanFilesInPath($sourcePath)
      {
          $filePattern = $this->filePattern;
          if (strpos($sourcePath, str_replace('*', null, $filePattern))) {
              $filePattern = $this->coverFishHelper->getFileNameFromPath($sourcePath);
          }
  
          $facade = new FinderFacade(
              array($sourcePath),
              $this->filePatternExclude,
              array($filePattern)
          );
  
          return $this->removeExcludedPath($facade->findFiles(), $this->testExcludePath);
      }
code: public function scanFilesInPath($sourcePath)
      {
          $filePattern = $this->filePattern;
          if (strpos($sourcePath, str_replace('*', null, $filePattern))) {
              $filePattern = $this->coverFishHelper->getFileNameFromPath($sourcePath);
          }
  
          $facade = new FinderFacade(
              array($sourcePath),
              $this->filePatternExclude,
              array($filePattern)
          );
  
          return $this->removeExcludedPath($facade->findFiles(), $this->testExcludePath);
      }
code_tokens: public function scanFilesInPath ( $ sourcePath ) { $ filePattern = $ this -> filePattern ; if ( strpos ( $ sourcePath , str_replace ( '*' , null , $ filePattern ) ) ) { $ filePattern = $ this -> coverFishHelper -> getFileNameFromPath ( $ sourcePath ) ; } $ facade = new FinderFacade ( array ( $ sourcePath ) , $ this -> filePatternExclude , array ( $ filePattern ) ) ; return $ this -> removeExcludedPath ( $ facade -> findFiles ( ) , $ this -> testExcludePath ) ; }
docstring: scan all files by given path recursively, if one php file will be provided within given path,
  this file will be returned in finder format
  
  @param string $sourcePath
  
  @return array
docstring_tokens: scan all files by given path recursively if one php file will be provided within given path this file will be returned in finder format