PhpBrew\Utils::findIncludePath PHP Method

findIncludePath() public static method

Return the actual header file path from the lookup prefixes.
public static findIncludePath ( ) : string
return 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;
    }