Cleanup array_merge call
This commit is contained in:
parent
1b1eb1539e
commit
64bee1b238
@ -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