Skip to content

Commit 622f930

Browse files
committed
Make codechecker happy again
1 parent ae85d79 commit 622f930

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes
66

77
### Unreleased
88

9+
* 2025-10-15 - Make codechecker happy again
910
* 2025-10-15 - Tests: Switch Github actions workflows to reusable workflows by Moodle an Hochschulen e.V.
1011

1112
### v5.0-r1

classes/privacy/provider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
3434
class provider implements \core_privacy\local\metadata\null_provider {
35-
3635
/**
3736
* Get the language string identifier with the component's language
3837
* file to explain why this plugin stores no data.

flushdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
require_capability('moodle/site:config', context_system::instance());
3838

3939
// Include Valkey Stats Flush DB.
40-
require_once($CFG->dirroot.'/'.$CFG->admin.'/tool/redis/lib/valkey-stats/flushdb.php.inc');
40+
require_once($CFG->dirroot . '/' . $CFG->admin . '/tool/redis/lib/valkey-stats/flushdb.php.inc');

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424

2525
require(__DIR__ . '/../../../config.php');
26-
require_once($CFG->libdir.'/adminlib.php');
27-
require_once($CFG->dirroot.'/'.$CFG->admin.'/tool/redis/locallib.php');
26+
require_once($CFG->libdir . '/adminlib.php');
27+
require_once($CFG->dirroot . '/' . $CFG->admin . '/tool/redis/locallib.php');
2828
global $CFG;
2929

3030
// Set up the plugin's main page as external admin page.
@@ -71,7 +71,7 @@
7171
$redisstylescode = tool_redis_get_prefixed_css($redisstylescode, $cssprefix);
7272

7373
// Add the Redis Stats styles to the page.
74-
$CFG->additionalhtmlhead .= '<style>'.$redisstylescode.'</style>';
74+
$CFG->additionalhtmlhead .= '<style>' . $redisstylescode . '</style>';
7575

7676
// Page setup.
7777
echo $OUTPUT->header();

locallib.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function tool_redis_get_prefixed_css($css, $prefix) {
4646
} else {
4747
$partdetails = explode('{', $part);
4848
if (substr_count($part, "{") == 2) {
49-
$mediaquery = $partdetails[0]."{";
49+
$mediaquery = $partdetails[0] . "{";
5050
$partdetails[0] = $partdetails[1];
5151
$mediaquerystarted = true;
5252
}
@@ -61,13 +61,13 @@ function tool_redis_get_prefixed_css($css, $prefix) {
6161
}
6262

6363
if (substr_count($part, "{") == 2) {
64-
$part = $mediaquery."\n".implode(', ', $subparts)."{".$partdetails[2];
64+
$part = $mediaquery . "\n" . implode(', ', $subparts) . "{" . $partdetails[2];
6565
} else if (empty($part[0]) && $mediaquerystarted) {
6666
$mediaquerystarted = false;
67-
$part = implode(', ', $subparts)."{".$partdetails[2]."}\n";
67+
$part = implode(', ', $subparts) . "{" . $partdetails[2] . "}\n";
6868
} else {
6969
if (isset($partdetails[1])) {
70-
$part = implode(', ', $subparts)."{".$partdetails[1];
70+
$part = implode(', ', $subparts) . "{" . $partdetails[1];
7171
}
7272
}
7373

settings.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626

2727
if ($hassiteconfig) {
2828
// Add the plugin's main page to the server settings category.
29-
$settingspage = new admin_externalpage('tool_redis', new \core\lang_string('pluginname', 'tool_redis'),
30-
new \core\url('/'.$CFG->admin.'/tool/redis/index.php'), 'moodle/site:config');
29+
$settingspage = new admin_externalpage(
30+
'tool_redis',
31+
new \core\lang_string('pluginname', 'tool_redis'),
32+
new \core\url('/' . $CFG->admin . '/tool/redis/index.php'),
33+
'moodle/site:config'
34+
);
3135
$ADMIN->add('server', $settingspage);
3236
}

0 commit comments

Comments
 (0)