MDL-72292 core: add param type and polishing

This commit is contained in:
Simey Lameze 2022-06-17 09:50:38 +08:00
parent 8583feb724
commit b20cca2690

View file

@ -1203,10 +1203,13 @@ $cache = '.var_export($cache, true).';
* and the value is the new class name. * and the value is the new class name.
* It is only included when we are populating the component cache. After that is not needed. * It is only included when we are populating the component cache. After that is not needed.
* *
* @param string $fulldir * @param string|null $fulldir The directory to the renamed classes.
*/ */
protected static function load_renamed_classes($fulldir) { protected static function load_renamed_classes(?string $fulldir) {
if (isset($fulldir)) { if (is_null($fulldir)) {
return;
}
$file = $fulldir . '/db/renamedclasses.php'; $file = $fulldir . '/db/renamedclasses.php';
if (is_readable($file)) { if (is_readable($file)) {
$renamedclasses = null; $renamedclasses = null;
@ -1218,7 +1221,6 @@ $cache = '.var_export($cache, true).';
} }
} }
} }
}
/** /**
* Returns a list of frankenstyle component names and their paths, for all components (plugins and subsystems). * Returns a list of frankenstyle component names and their paths, for all components (plugins and subsystems).