Cleanup array_merge call

This commit is contained in:
Nabeel Shahzad
2019-04-07 17:35:55 -05:00
parent 1b1eb1539e
commit 64bee1b238
2 changed files with 5 additions and 2 deletions

View File

@@ -29,7 +29,10 @@ class AwardService extends Service
foreach (Module::all() as $module) {
$path = $module->getExtraPath('Awards');
$classes = ClassLoader::getClassesInPath($path);
$awards = array_merge($awards, $classes);
foreach ($classes as $class) {
$awards[] = $class;
}
}
foreach ($awards as $award) {