forked from moodlehq/moodle-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the whole codebase compliant with our configuration
Apart from fixing all the errors and warnings, this commit also: - Changes all http occurrences in comments to https. - Removes all the @Package and @category tags, not much useful. - Removes all the phpcs:disable moodle.NamingConventions, not needed. TODO: On purpose, to be able to go testing everything while advancing with this commit, I've not changed our testing API methods on purpose (MoodleCSBaseTestCase). That comes in the next commit.
- Loading branch information
Showing
57 changed files
with
1,008 additions
and
964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
// This file is part of Moodle - http://moodle.org/ | ||
|
||
// This file is part of Moodle - https://moodle.org/ | ||
// | ||
// Moodle is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
|
@@ -12,12 +13,10 @@ | |
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
// along with Moodle. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
namespace MoodleHQ\MoodleCS\moodle\Sniffs\Commenting; | ||
|
||
// phpcs:disable moodle.NamingConventions | ||
|
||
use MoodleHQ\MoodleCS\moodle\Util\MoodleUtil; | ||
use MoodleHQ\MoodleCS\moodle\Util\Docblocks; | ||
use PHP_CodeSniffer\Sniffs\Sniff; | ||
|
@@ -27,10 +26,10 @@ | |
* Checks that all test classes and global functions have appropriate @package tags. | ||
* | ||
* @copyright 2024 Andrew Lyons <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class CategorySniff implements Sniff { | ||
|
||
class CategorySniff implements Sniff | ||
{ | ||
/** | ||
* Register for open tag (only process once per file). | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.