MDL-83412 core: Coding style fixes

This commit is contained in:
Jun Pataleta
2024-11-28 11:55:15 +08:00
parent cdbc789fd8
commit 2cc40431cb
4 changed files with 17 additions and 5 deletions
+10 -3
View File
@@ -17,14 +17,13 @@
namespace core\tests;
/**
* A string manager which supports mocking individaul strings.
* A string manager which supports mocking individual strings.
*
* @package core
* @copyright Andrew Lyons <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class mocking_string_manager extends \core_string_manager_standard {
class mocking_string_manager extends \core_string_manager_standard {
/** @var array<string, string> The list of strings */
private $strings = [];
@@ -37,6 +36,14 @@ namespace core\tests;
return parent::get_string($identifier, $component, $a, $lang);
}
/**
* Mock a string.
*
* @param string $identifier
* @param string $component
* @param string $value
* @return void
*/
public function mock_string(
string $identifier,
string $component,