mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Version 1.0.2 - Updated code standards to comply with Moodle CI Bot checks.
This commit is contained in:
@@ -57,7 +57,6 @@ class calendar {
|
||||
/**
|
||||
* Updates an event on the calendar based on this outage.
|
||||
* @param outage $outage Outage to be updated in the calendar.
|
||||
* @SuppressWarnings("comment") Allow this test to have as many tests as necessary.
|
||||
*/
|
||||
public static function update(outage $outage) {
|
||||
$event = self::load($outage->id);
|
||||
|
||||
@@ -48,7 +48,6 @@ abstract class baseform extends moodleform {
|
||||
* pass true here to override this behaviour
|
||||
*
|
||||
* @return bool true if form data valid
|
||||
* @SuppressWarnings(PHPMD) It is better to not refactor this method as it is linked to its parent functionality.
|
||||
*/
|
||||
public function validate_defined_fields($validateonnosubmit = false) {
|
||||
// One validation NOT is enough (if mocking). See parent method.
|
||||
|
||||
@@ -137,7 +137,7 @@ class outage {
|
||||
|
||||
// Load data from array.
|
||||
foreach ($data as $k => $v) {
|
||||
if (property_exists(self::class, $k)) {
|
||||
if (property_exists($this, $k)) {
|
||||
$this->$k = $v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user