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 Feb 24, 2024
1 parent d62b19b commit e5c0ccb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 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
11 changes: 0 additions & 11 deletions tests/privacy_provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,10 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Privacy test for the mod questionnaire.
*
* @package mod_questionnaire
* @copyright 2019, onwards Poet
* @author Mike Churchward
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace mod_questionnaire;

use \mod_questionnaire\privacy\provider;

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

/**
* Privacy test for the mod questionnaire.
*
Expand Down

0 comments on commit e5c0ccb

Please sign in to comment.