Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
20f46adbc4
commit
9596d88b48
@@ -8,12 +8,12 @@ use Symfony\Component\ClassLoader\ClassMapGenerator;
|
||||
/**
|
||||
* Class find/load related functionality. Is used to find
|
||||
* the award classes right now that might be in a module
|
||||
* @package App\Support
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
/**
|
||||
* @param $path
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getClassesInPath($path): array
|
||||
@@ -26,7 +26,7 @@ class ClassLoader
|
||||
$all_classes = array_keys(ClassMapGenerator::createMap($path));
|
||||
foreach ($all_classes as $cl) {
|
||||
try {
|
||||
$klass = new $cl;
|
||||
$klass = new $cl();
|
||||
} catch (\Exception $e) {
|
||||
Log::error('Error loading class: '.$e->getMessage());
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user