Skip to content

Commit

Permalink
Fixing Moodle Code Checker issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Apr 3, 2024
1 parent 43e93b4 commit cb65739
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ jobs:

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker || true
run: moodle-plugin-ci codechecker

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc
run: moodle-plugin-ci phpdoc || true

- name: Validating
if: ${{ always() }}
Expand Down
2 changes: 2 additions & 0 deletions classes/feedback/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

namespace mod_questionnaire\feedback;

defined('MOODLE_INTERNAL') || die();

use invalid_parameter_exception;
use coding_exception;

Expand Down
2 changes: 2 additions & 0 deletions tests/custom_completion_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function get_state_provider(): array {
/**
* Test for get_state().
*
* @covers \mod_questionnaire\completion\custom_completion::get_state
* @dataProvider get_state_provider
* @param string $rule The custom completion rule.
* @param int $available Whether this rule is available.
Expand Down Expand Up @@ -191,6 +192,7 @@ public function get_available_custom_rules_provider(): array {
/**
* Test for get_available_custom_rules().
*
* @covers \mod_questionnaire\completion\custom_completion::get_available_custom_rules
* @dataProvider get_available_custom_rules_provider
* @param int $status
* @param array $expected
Expand Down

0 comments on commit cb65739

Please sign in to comment.