Skip to content

Commit

Permalink
ignore phpcs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed Oct 24, 2024
1 parent ed85499 commit 7ac3314
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion local/o365/classes/feature/calsync/form/element/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -112,7 +115,7 @@ public function setValue($value) {
*
* @return string html for help button
*/
public function getHelpButton(){
public function getHelpButton() {
return $this->_helpbutton;
}

Expand Down Expand Up @@ -183,3 +186,6 @@ public function toHtml() {
return $html;
}
}

// phpcs:enable moodle.NamingConventions.ValidVariableName.VariableNameLowerCase
// phpcs:enable moodle.NamingConventions.ValidFunctionName.LowercaseMethod
1 change: 1 addition & 0 deletions local/o365/sso_end.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<script src=\"https://statics.teams.microsoft.com/sdk/v1.9.0/js/MicrosoftTeams.min.js\" crossorigin=\"anonymous\"></script>";
Expand Down
1 change: 1 addition & 0 deletions local/o365/sso_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
1 change: 1 addition & 0 deletions local/o365/sso_start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<script src=\"https://statics.teams.microsoft.com/sdk/v1.9.0/js/MicrosoftTeams.min.js\" crossorigin=\"anonymous\"></script>";
Expand Down
1 change: 1 addition & 0 deletions local/o365/teams_tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions local/o365/teams_tab_configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions local/o365/teams_tab_redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ac3314

Please sign in to comment.