Apply fixes from StyleCI

This commit is contained in:
Nabeel Shahzad
2018-08-26 16:40:04 +00:00
committed by StyleCI Bot
parent 20f46adbc4
commit 9596d88b48
407 changed files with 4032 additions and 3286 deletions

View File

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