Skip to content

Commit

Permalink
Use GLOB_ONLYDIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 1, 2017
1 parent 96f00af commit 8c33203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/bin/horde-git-split-all
Expand Up @@ -56,14 +56,14 @@ while ($url) {

// Run through framework libraries and applications.
$directories = array_reverse(array_merge(
glob($base . '/bundles/[a-z]*'),
glob($base . '/[a-z]*'),
glob($base . '/[A-Z]*'),
glob($base . '/framework/[A-Z]*')
glob($base . '/bundles/[a-z]*', GLOB_ONLYDIR),
glob($base . '/[a-z]*', GLOB_ONLYDIR),
glob($base . '/[A-Z]*', GLOB_ONLYDIR),
glob($base . '/framework/[A-Z]*', GLOB_ONLYDIR)
));
foreach ($directories as $dir) {
$package = basename($dir);
if (!is_dir($dir) || $package == 'framework' || $package == 'bundles') {
if ($package == 'framework' || $package == 'bundles') {
continue;
}
$localPackage = $finalPackage = $package;
Expand Down

0 comments on commit 8c33203

Please sign in to comment.