Cleanup array_merge call

This commit is contained in:
Nabeel Shahzad 2019-04-07 17:35:55 -05:00
parent 2f2eb2e5b2
commit 6816c77845
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) {

View File

@ -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);