PhpBrew\Utils::findIncludePath PHP Метод

findIncludePath() публичный статический Метод

Return the actual header file path from the lookup prefixes.
public static findIncludePath ( ) : string
Результат string full qualified header file path
    public static function findIncludePath()
    {
        $files = func_get_args();
        $prefixes = self::getLookupPrefixes();
        foreach ($prefixes as $prefix) {
            foreach ($files as $file) {
                $path = $prefix . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . $file;
                if (file_exists($path)) {
                    return $prefix;
                }
            }
        }
        return;
    }