Skip to content

Commit

Permalink
fix: remove even more PARAM_RAWs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorrph committed Jul 5, 2024
1 parent 530bc86 commit 7b02e51
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/data/assignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class assignment {
* @param int|null $courseid The ID of the course
* @throws dml_exception
*/
public function __construct(mixed $moduleinfo, int $courseid = null) {
public function __construct(mixed $moduleinfo, ?int $courseid = null) {
global $DB, $USER, $COURSE;
$this->modinfo = $moduleinfo;
$this->id = $moduleinfo->instance;
Expand Down
1 change: 1 addition & 0 deletions classes/learningdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics;

use block_disealytics\data\course;
Expand Down
4 changes: 3 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*
*/
class provider implements core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider {
class provider implements core_userlist_provider,
\core_privacy\local\metadata\provider,
\core_privacy\local\request\plugin\provider {
/**
* Get the list of metadata.
*
Expand Down
4 changes: 1 addition & 3 deletions classes/view/activity_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics\view;
defined('MOODLE_INTERNAL') || die();
global $CFG;
Expand Down Expand Up @@ -154,9 +155,6 @@ private function get_course_output(stdClass $course, bool $global = false): arra
'Saturday',
'Sunday',
]));
// Reference: $chart->get_xaxis(0, true);.
// Reference: $chart->get_yaxis(0, true)->set_label("Minuten");.

$output['maincharts'][] = ['chartdata' => json_encode($chart1), 'withtable' => true,
'uniqid' => uniqid('block_disealytics_')];
$dates = learningdata::get_current_halfyear_dates();
Expand Down
1 change: 1 addition & 0 deletions classes/view/learning_goals_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics\view;

use block_disealytics\data\course;
Expand Down
1 change: 1 addition & 0 deletions classes/view/planner_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics\view;

use block_disealytics\data\course;
Expand Down
1 change: 1 addition & 0 deletions classes/view/progress_bar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics\view;

use block_disealytics\data\course;
Expand Down
1 change: 1 addition & 0 deletions classes/view/success_chance_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace block_disealytics\view;

use block_disealytics\data\assignment;
Expand Down
1 change: 1 addition & 0 deletions db/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Settings for block_disealytics database uninstalls.
*
Expand Down
1 change: 1 addition & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Settings for block_disealytics database upgrades.
*
Expand Down
1 change: 1 addition & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

/**
* Settings for block_disealytics
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@

$plugin->component = 'block_disealytics';
$plugin->release = '0.2.4';
$plugin->version = 2024070500;
$plugin->version = 2024070502;
$plugin->requires = 2021051700;

0 comments on commit 7b02e51

Please sign in to comment.