Skip to content

Commit

Permalink
WR421526:Removed MOODLE_INTERNAL_CHECKS for standards compliance
Browse files Browse the repository at this point in the history
Coding standards changed and these checks were cluttering
the ci linting, making it hard to see "real" issues.
  • Loading branch information
catalyst-marcus-green committed Dec 18, 2023
1 parent 3ba6987 commit a6ac198
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 39 deletions.
2 changes: 0 additions & 2 deletions classes/event/event_processed.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace local_assessfreq\event;

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

/**
* Event class.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/all_participants_inprogress.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\quiz;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for all participant summary card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/assess_by_activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\frequency;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for assessments by activity card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/assess_by_month.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\frequency;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for assessments due by month card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/assess_by_month_student.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\frequency;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for assessments due by month student card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/inprogress_participant_summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace local_assessfreq\output;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for participant summary card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/participant_summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\quiz;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for participant summary card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/participant_trend.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\quiz;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for participant trend card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

use local_assessfreq\quiz;

defined('MOODLE_INTERNAL') || die;

use plugin_renderer_base;
use local_assessfreq\frequency;

Expand Down
2 changes: 0 additions & 2 deletions classes/output/upcomming_quizzes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use local_assessfreq\quiz;

defined('MOODLE_INTERNAL') || die;

/**
* Renderable for upcomming quizzes card.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace local_assessfreq\privacy;

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

use core_privacy\local\metadata\collection;
use core_privacy\local\request\contextlist;
use core_privacy\local\request\approved_contextlist;
Expand Down
2 changes: 0 additions & 2 deletions classes/quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@

use mod_quiz\question\bank\qbank_helper;

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

/**
* Quiz data class.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/task/data_process.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

use core\task\scheduled_task;

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

/**
* A scheduled task to generate data used in plugin reports.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/task/history_process.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

use core\task\adhoc_task;

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

/**
* Adhoc task to process historical data used in plugin.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/task/quiz_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

use core\task\scheduled_task;

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

/**
* A scheduled task to track the process of quizzes in the system.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace local_assessfreq;

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

/**
* Utils class.
*
Expand Down
2 changes: 0 additions & 2 deletions db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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

/**
* Generate ad-hoc task on install.
*/
Expand Down
2 changes: 0 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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


/**
* Returns the name of the user preferences as well as the details this plugin uses.
Expand Down
2 changes: 0 additions & 2 deletions tests/external_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace local_assessfreq;

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

use assign;
use context_module;
use external_api;
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$plugin->component = 'local_assessfreq';
$plugin->release = '2023102700';
$plugin->version = 2023102700;
$plugin->requires = 2023042400; // Requires 4.2
$plugin->requires = 2023042400; // Requires 4.2.
$plugin->supports = [402, 402];
$plugin->maturity = MATURITY_STABLE;

0 comments on commit a6ac198

Please sign in to comment.