mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
update GitHub Community Health Files
This commit is contained in:
@@ -5,19 +5,16 @@ $shared = realpath(__DIR__.'/../.shared');
|
||||
|
||||
$resources = array(
|
||||
$shared,
|
||||
// __DIR__.'/../.github/ISSUE_TEMPLATE/',
|
||||
__DIR__.'/../.github/FUNDING.yml',
|
||||
// __DIR__.'/../README.md',
|
||||
__DIR__.'/../README.md',
|
||||
__DIR__.'/../LICENSE',
|
||||
);
|
||||
|
||||
$dirs = array(__DIR__.'/../packs', __DIR__.'/../src');
|
||||
|
||||
$packages = array();
|
||||
foreach ($dirs as $dir) {
|
||||
$packages = array_merge($packages, glob($dir.'/*/composer.json'));
|
||||
$packages = array_merge($packages, glob($dir.'/*/*/composer.json'));
|
||||
}
|
||||
$packages = array_reduce($dirs, function ($files, $dir) {
|
||||
return array_merge($files, glob("$dir/*/composer.json"), glob("$dir/*/*/composer.json"));
|
||||
}, array());
|
||||
|
||||
foreach ($packages as $package) {
|
||||
$package = realpath(dirname($package));
|
||||
|
||||
Reference in New Issue
Block a user