mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-71807 cleanup: Replace deprecated codingStandardsIgnore annotations
The PHP_CodeSniffer @codingStandardsIgnore annotations are deprecated and, since version 3.x, the new // phpcs:ignore comments should be used instead. This commits just reviews all the uses in core, replacing them for the better new candidate, or removing when no longer needed.
This commit is contained in:
parent
01eb6d2e9b
commit
a5c91474ee
21 changed files with 30 additions and 57 deletions
|
@ -27,9 +27,7 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreStart
|
||||
require('../config.php');
|
||||
// @codingStandardsIgnoreEnd
|
||||
require('../config.php'); // phpcs:ignore
|
||||
|
||||
$context = context_system::instance();
|
||||
$title = get_string('pagenotexisttitle', 'error');
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreStart
|
||||
// phpcs:ignoreFile
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html <?php echo $htmllang ?>>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue