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

LoginModification
Alexis 2 years ago
parent 2c84154d6e
commit 9da2e2df9a

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

Loading…
Cancel
Save