Cleanup array_merge call
This commit is contained in:
parent
2f2eb2e5b2
commit
6816c77845
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user