protected function prepareFiles(array $ids, array $libraries)
    {
        $prepared = array();

        foreach ($ids as $id) {
            if (!empty($libraries[$id]['files'])) {
                $prepared = array_merge($prepared, $libraries[$id]['files']);
            }
        }

        return $prepared;
    }
protected function prepareFiles(array $ids, array $libraries)
    {
        $prepared = array();

        foreach ($ids as $id) {
            if (!empty($libraries[$id]['files'])) {
                $prepared = array_merge($prepared, $libraries[$id]['files']);
            }
        }

        return $prepared;
    }
protected function prepareFiles ( array $ ids , array $ libraries ) { $ prepared = array ( ) ; foreach ( $ ids as $ id ) { if ( ! empty ( $ libraries [ $ id ] [ 'files' ] ) ) { $ prepared = array_merge ( $ prepared , $ libraries [ $ id ] [ 'files' ] ) ; } } return $ prepared ; }
Prepares files of the given libraries
@param array $ids
@param array $libraries
@return array
Prepares files of the given libraries