Skip to content

Commit

Permalink
Make codechecker happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 14, 2023
1 parent f9cce41 commit 644cca8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2023-10-14 - Make codechecker happy again
* 2023-10-10 - Updated Moodle Plugin CI to latest upstream recommendations

### v4.1-r2
Expand Down
8 changes: 4 additions & 4 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function atto_styles_params_for_js($elementid, $options, $fpoptions) {
// Nevertheless, we need a multidimensional array with the JSON object to proceed.
// So we create one here for this case.
if (!is_array($styles)) {
$new = array();
$new = [];
$new[] = $styles;
$styles = $new;
}
Expand All @@ -67,15 +67,15 @@ function atto_styles_params_for_js($elementid, $options, $fpoptions) {

$styles = json_encode($styles);

return array('styles' => $styles);
return ['styles' => $styles];
}

/**
* Get icon mapping for font-awesome.
*/
function atto_styles_get_fontawesome_icon_map() {
return [
'atto_styles:icon' => 'fa-tint'
'atto_styles:icon' => 'fa-tint',
];
}

Expand All @@ -85,5 +85,5 @@ function atto_styles_get_fontawesome_icon_map() {
function atto_styles_strings_for_js() {
global $PAGE;

$PAGE->requires->strings_for_js(array('inlinehint'), 'atto_styles');
$PAGE->requires->strings_for_js(['inlinehint'], 'atto_styles');
}

0 comments on commit 644cca8

Please sign in to comment.