Skip to content

Commit 9ba3a93

Browse files
committed
codechecker issues
1 parent 10454d2 commit 9ba3a93

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

classes/local/manager/delayed_courses_manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static function get_delayed_courses_for_workflow($workflowid) {
101101
* Creates an instance of a delayed course.
102102
* @param int $courseid id of the course
103103
* @param int $duration number of seconds
104-
* @param int $type 1 for rollback, 2 for finish
104+
* @param int $delaytype 1 for rollback, 2 for finish
105105
* @throws \dml_exception
106106
*/
107107
public static function set_course_delayed($courseid, $duration, $delaytype = 0) {

db/upgrade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function tool_lifecycle_fix_workflow_sortindex() {
4545
* @param string $dir
4646
* @return void
4747
*/
48-
function tool_lifecycle_upgrade_removeDir(string $dir): void {
48+
function tool_lifecycle_upgrade_removedir(string $dir): void {
4949
$it = new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS);
5050
$files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
5151
foreach($files as $file) {
@@ -594,11 +594,11 @@ function xmldb_tool_lifecycle_upgrade($oldversion) {
594594
}
595595

596596
if ($dir = core_component::get_plugin_directory('lifecycletrigger', 'sitecourse')) {
597-
tool_lifecycle_upgrade_removeDir($dir);
597+
tool_lifecycle_upgrade_removedir($dir);
598598
}
599599

600600
if ($dir = core_component::get_plugin_directory('lifecycletrigger', 'delayedcourses')) {
601-
tool_lifecycle_upgrade_removeDir($dir);
601+
tool_lifecycle_upgrade_removedir($dir);
602602
}
603603

604604
upgrade_plugin_savepoint(true, 2025041600, 'tool', 'lifecycle');

workflowoverview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
$delayed = optional_param('delayed', null, PARAM_INT);
5353
$used = optional_param('used', null, PARAM_INT);
5454
$search = optional_param('search', null, PARAM_RAW);
55-
$showdetails = optional_param('showdetails', 0,PARAM_INT);
55+
$showdetails = optional_param('showdetails', 0, PARAM_INT);
5656

5757
$workflow = workflow_manager::get_workflow($workflowid);
5858
$iseditable = workflow_manager::is_editable($workflow->id);

0 commit comments

Comments
 (0)