Version 1.0.2 - Updated code standards to comply with Moodle CI Bot checks.

This commit is contained in:
Daniel Thee Roperto
2016-10-12 15:04:30 +11:00
parent c7b0cc2410
commit 50689c3b4c
18 changed files with 99 additions and 114 deletions

View File

@@ -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);

View File

@@ -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.

View File

@@ -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;
}
}