Skip to content

Commit 08b1771

Browse files
Suppress unwanted PHPMD-warnings
1 parent 1ea80f6 commit 08b1771

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

classes/course_file.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ protected function get_file_download_url(): ?\moodle_url {
222222
* @param bool $insertitemid
223223
* @return \moodle_url
224224
* @throws \moodle_exception
225+
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
225226
*/
226227
protected function get_standard_file_download_url(bool $insertitemid = true): \moodle_url {
227228
$url = '/pluginfile.php/' . $this->file->contextid . '/' . $this->file->component . '/' . $this->file->filearea;

classes/licences.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class licences {
5050
*
5151
* @return string[]
5252
* @throws coding_exception
53+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5354
*/
5455
public static function get_available_licenses(): array {
5556
if (is_null(self::$licenses)) {

0 commit comments

Comments
 (0)