MDL-81872 book: Fix coding style

This commit is contained in:
Sara Arjona 2024-05-14 12:37:49 +02:00
parent 727e167946
commit dd5a82ede7
No known key found for this signature in database

View File

@ -143,7 +143,7 @@ function book_reset_userdata($data) {
if (!empty($data->reset_book_tags)) {
// Loop through the books and remove the tags from the chapters.
if ($books = $DB->get_records('book', array('course' => $data->courseid))) {
if ($books = $DB->get_records('book', ['course' => $data->courseid])) {
foreach ($books as $book) {
if (!$cm = get_coursemodule_from_instance('book', $book->id)) {
continue;
@ -154,11 +154,10 @@ function book_reset_userdata($data) {
}
}
$status[] = [
'component' => get_string('modulenameplural', 'book'),
'item' => get_string('tagsdeleted', 'book'),
'error' => false
'error' => false,
];
}