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:
Eloy Lafuente (stronk7) 2022-01-29 23:52:19 +01:00
parent 01eb6d2e9b
commit a5c91474ee
21 changed files with 30 additions and 57 deletions

View file

@ -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');

View file

@ -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 ?>>