src/Textpattern/Composer/Installer/Textpattern/Find.php
protected function isConfig($file)
    {
        if (basename($file) === 'config.php' && is_file($file) && is_readable($file)) {
            $contents = file_get_contents($file);

            if ($contents && strpos($contents, 'txpcfg') !== false && file_exists(dirname($file) . '/publish.php')) {
                return dirname($file);
            }
        }

        return false;
    }
protected function isConfig($file)
    {
        if (basename($file) === 'config.php' && is_file($file) && is_readable($file)) {
            $contents = file_get_contents($file);

            if ($contents && strpos($contents, 'txpcfg') !== false && file_exists(dirname($file) . '/publish.php')) {
                return dirname($file);
            }
        }

        return false;
    }
protected function isConfig ( $ file ) { if ( basename ( $ file ) === 'config.php' && is_file ( $ file ) && is_readable ( $ file ) ) { $ contents = file_get_contents ( $ file ) ; if ( $ contents && strpos ( $ contents , 'txpcfg' ) !== false && file_exists ( dirname ( $ file ) . '/publish.php' ) ) { return dirname ( $ file ) ; } } return false ; }
Whether the file is a config.php.

@param  string      $file The filename
@return string|bool Path to the directory, or FALSE
Whether the file is a config . php .