SonarQube code smells resolve #34
continuous-integration/drone/push Build is passing Details

LoginModification
Alexis 2 years ago
parent 2c84154d6e
commit 9da2e2df9a

@ -22,8 +22,8 @@ class Autoload
{
if (null !== self::$instance) {
if(!spl_autoload_unregister(array(self::$instance, 'autoloader'))) {
throw new RuntimeException('Could not stop the autoload');
if (!spl_autoload_unregister(array(self::$instance, 'autoloader'))) {
throw RuntimeException('Could not stop the autoload');
}
self::$instance = null;
@ -43,8 +43,6 @@ class Autoload
}
$fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
include_once $folder.$fileName;
require_once $folder.$fileName;
}
}
?>

Loading…
Cancel
Save