diff --git a/local/o365/classes/feature/calsync/form/element/calendar.php b/local/o365/classes/feature/calsync/form/element/calendar.php
index e7ac753a9..f303b66e8 100644
--- a/local/o365/classes/feature/calsync/form/element/calendar.php
+++ b/local/o365/classes/feature/calsync/form/element/calendar.php
@@ -31,6 +31,9 @@
require_once("$CFG->libdir/form/advcheckbox.php");
+// phpcs:disable moodle.NamingConventions.ValidVariableName.VariableNameLowerCase
+// phpcs:disable moodle.NamingConventions.ValidFunctionName.LowercaseMethod
+
/**
* Calendar form element. Provides checkbox to enable/disable calendar and options for sync behavior.
*/
@@ -112,7 +115,7 @@ public function setValue($value) {
*
* @return string html for help button
*/
- public function getHelpButton(){
+ public function getHelpButton() {
return $this->_helpbutton;
}
@@ -183,3 +186,6 @@ public function toHtml() {
return $html;
}
}
+
+// phpcs:enable moodle.NamingConventions.ValidVariableName.VariableNameLowerCase
+// phpcs:enable moodle.NamingConventions.ValidFunctionName.LowercaseMethod
diff --git a/local/o365/sso_end.php b/local/o365/sso_end.php
index b50f2765b..31c194436 100644
--- a/local/o365/sso_end.php
+++ b/local/o365/sso_end.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
echo "";
diff --git a/local/o365/sso_login.php b/local/o365/sso_login.php
index 34614234f..a7441985d 100644
--- a/local/o365/sso_login.php
+++ b/local/o365/sso_login.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
require_once($CFG->dirroot . '/local/o365/lib.php');
diff --git a/local/o365/sso_start.php b/local/o365/sso_start.php
index 4bce93923..6e010e8fc 100644
--- a/local/o365/sso_start.php
+++ b/local/o365/sso_start.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
echo "";
diff --git a/local/o365/teams_tab.php b/local/o365/teams_tab.php
index 52bbfe785..ca3347847 100644
--- a/local/o365/teams_tab.php
+++ b/local/o365/teams_tab.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
// Force theme.
diff --git a/local/o365/teams_tab_configuration.php b/local/o365/teams_tab_configuration.php
index cea7ae27d..e1bb4d18d 100644
--- a/local/o365/teams_tab_configuration.php
+++ b/local/o365/teams_tab_configuration.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
$url = new moodle_url('/local/o365/teams_tab_configuration.php');
diff --git a/local/o365/teams_tab_redirect.php b/local/o365/teams_tab_redirect.php
index 6a13e8005..97d9cc98e 100644
--- a/local/o365/teams_tab_redirect.php
+++ b/local/o365/teams_tab_redirect.php
@@ -23,6 +23,7 @@
* @copyright (C) 2018 onwards Microsoft, Inc. (http://microsoft.com/)
*/
+// phpcs:ignore moodle.Files.RequireLogin.Missing
require_once(__DIR__ . '/../../config.php');
unset($SESSION->theme);