MDL-81919 core: Minor fixes

* Typo in Jerome Mouneyrac's name.
* Remove other trailing commas in inline arrays.
This commit is contained in:
Jun Pataleta 2024-06-10 13:17:11 +08:00
parent c40f85eb6e
commit 9c706bb48b
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
5 changed files with 5 additions and 5 deletions

View File

@ -197,7 +197,7 @@ final class category_controller_test extends \advanced_testcase {
// Create the category.
$params = ['component' => 'core_course', 'area' => 'course', 'itemid' => 0, 'name' => 'Cat1',
'contextid' => \context_system::instance()->id, ];
'contextid' => \context_system::instance()->id];
$c1 = category_controller::create(0, (object)$params);
$c1->save();
$this->assertNotEmpty($c1->get('id'));

View File

@ -130,7 +130,7 @@ final class data_controller_test extends \advanced_testcase {
$field = $this->get_generator()->create_field(['categoryid' => $category->get('id')]);
$course = $this->getDataGenerator()->create_course();
$data = data_controller::create(0, (object)['instanceid' => $course->id,
'contextid' => \context_course::instance($course->id)->id, ], $field);
'contextid' => \context_course::instance($course->id)->id], $field);
$data->save();
$datarecord = $DB->get_record(\core_customfield\data::TABLE, ['id' => $data->get('id')], '*', MUST_EXIST);

View File

@ -233,7 +233,7 @@ final class field_controller_test extends \advanced_testcase {
$category = $lpg->create_category();
$configdata = ['a' => 'b', 'c' => ['d', 'e']];
$field = field_controller::create(0, (object)['type' => 'text',
'configdata' => json_encode($configdata), 'shortname' => 'a', 'name' => 'a', ], $category);
'configdata' => json_encode($configdata), 'shortname' => 'a', 'name' => 'a'], $category);
$field->save();
// Retrieve field and check configdata.

View File

@ -24,7 +24,7 @@ namespace core\exception;
*
* @package core
* @subpackage exception
* @copyright Jerome Mounerac
* @copyright Jerome Mouneyrac
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class invalid_response_exception extends moodle_exception {

View File

@ -23,7 +23,7 @@ namespace core\exception;
* The error string is gotten from webservice.php
* @package core
* @subpackage exception
* @copyright Jerome Mounerac
* @copyright Jerome Mouneyrac
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class webservice_parameter_exception extends moodle_exception {