Skip to content

Commit

Permalink
Suppress unwanted PHPMD-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixDiLenarda committed Aug 22, 2024
1 parent 1ea80f6 commit 08b1771
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/course_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected function get_file_download_url(): ?\moodle_url {
* @param bool $insertitemid
* @return \moodle_url
* @throws \moodle_exception
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*/
protected function get_standard_file_download_url(bool $insertitemid = true): \moodle_url {
$url = '/pluginfile.php/' . $this->file->contextid . '/' . $this->file->component . '/' . $this->file->filearea;
Expand Down
1 change: 1 addition & 0 deletions classes/licences.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class licences {
*
* @return string[]
* @throws coding_exception
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public static function get_available_licenses(): array {
if (is_null(self::$licenses)) {
Expand Down

0 comments on commit 08b1771

Please sign in to comment.