diff --git a/app/Services/AwardService.php b/app/Services/AwardService.php index 9c4657e6..c1684350 100644 --- a/app/Services/AwardService.php +++ b/app/Services/AwardService.php @@ -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) { diff --git a/app/Support/ICAO.php b/app/Support/ICAO.php index 49186a2f..511eb1f8 100644 --- a/app/Support/ICAO.php +++ b/app/Support/ICAO.php @@ -17,7 +17,7 @@ class ICAO * * @return string */ - public static function createHexCode($country = null) + public static function createHexCode($country = null): string { $bytes = random_bytes(4); return bin2hex($bytes);