mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-72292 core: add param type and polishing
This commit is contained in:
parent
8583feb724
commit
b20cca2690
1 changed files with 13 additions and 11 deletions
|
@ -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).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue