-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from stronk7/code_cleanup_psr12
Define moodle-cs own standard, towards better coding
- Loading branch information
Showing
62 changed files
with
1,480 additions
and
1,371 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,10 +1,21 @@ | ||
vendor | ||
# Composer stuff | ||
composer.lock | ||
phpcs.xml | ||
composer.phar | ||
vendor | ||
|
||
# PHP_CodeSniffer | ||
.phpcs.xml | ||
phpcs.xml | ||
!phpcs.xml.dist | ||
|
||
# PHPUnit | ||
.phpunit.result.cache | ||
phpunit.xml | ||
.phplint-cache | ||
clover.xml | ||
.phpunit.cache | ||
|
||
# PHPlint | ||
.phplint.cache | ||
|
||
# IDEs and editors | ||
.vscode |
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
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). | ||
*/ | ||
|
Oops, something went wrong.