public static function getDataFiles(array $names, $dataDir = null)
    {
        $dirs = ($dataDir === null) ? self::getDataDirs() : [$dataDir];

        return self::getRealFiles($dirs, $names);
    }
public static function getDataFiles(array $names, $dataDir = null)
    {
        $dirs = ($dataDir === null) ? self::getDataDirs() : [$dataDir];

        return self::getRealFiles($dirs, $names);
    }
public static function getDataFiles ( array $ names , $ dataDir = null ) { $ dirs = ( $ dataDir === null ) ? self :: getDataDirs ( ) : [ $ dataDir ] ; return self :: getRealFiles ( $ dirs , $ names ) ; }
Find real data files in config directories.

@param string[] $names   Config file names
@param string   $dataDir Optionally use a specific config directory

@return string[]
Find real data files in config directories .