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.
* 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) {
if (isset($fulldir)) {
protected static function load_renamed_classes(?string $fulldir) {
if (is_null($fulldir)) {
return;
}
$file = $fulldir . '/db/renamedclasses.php';
if (is_readable($file)) {
$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).