src/Discovery/PathFinderContrib.php
protected function isWantedContrib(\SplFileInfo $dir) {
    $info_file = $this->cleanDirPath($dir->getPathName()) . DIRECTORY_SEPARATOR . $this->moduleName . '.info';
    return file_exists($info_file);
  }
protected function isWantedContrib(\SplFileInfo $dir) {
    $info_file = $this->cleanDirPath($dir->getPathName()) . DIRECTORY_SEPARATOR . $this->moduleName . '.info';
    return file_exists($info_file);
  }
protected function isWantedContrib ( \ SplFileInfo $ dir ) { $ info_file = $ this -> cleanDirPath ( $ dir -> getPathName ( ) ) . DIRECTORY_SEPARATOR . $ this -> moduleName . '.info' ; return file_exists ( $ info_file ) ; }
Checks if the passed directory is the contrib module we are looking for.

@param \SplFileInfo $dir
The info object about the directory.
@return bool
TRUE if the contrib is detected. FALSE otherwise.
Checks if the passed directory is the contrib module we are looking for .