Commit b20cca26 authored by Simey Lameze's avatar Simey Lameze
Browse files

MDL-72292 core: add param type and polishing

parent 8583feb7
......@@ -1203,18 +1203,20 @@ $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)) {
$file = $fulldir . '/db/renamedclasses.php';
if (is_readable($file)) {
$renamedclasses = null;
require($file);
if (is_array($renamedclasses)) {
foreach ($renamedclasses as $oldclass => $newclass) {
self::$classmaprenames[(string)$oldclass] = (string)$newclass;
}
protected static function load_renamed_classes(?string $fulldir) {
if (is_null($fulldir)) {
return;
}
$file = $fulldir . '/db/renamedclasses.php';
if (is_readable($file)) {
$renamedclasses = null;
require($file);
if (is_array($renamedclasses)) {
foreach ($renamedclasses as $oldclass => $newclass) {
self::$classmaprenames[(string)$oldclass] = (string)$newclass;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment