From 62c52d7b73cf583bfb1a6f1f18ee485f1c333493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rancoud?= Date: Thu, 24 Apr 2025 02:39:20 +0200 Subject: [PATCH] chore: remove comments about phpcs --- .gitattributes | 1 - .php-cs-fixer.php | 2 +- tests/SecurityTest.php | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 1b6bd34..1054419 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,5 +5,4 @@ /.gitattributes export-ignore /.gitignore export-ignore /.php-cs-fixer.php export-ignore -/phpcs.xml export-ignore /phpunit.xml export-ignore diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index a7a1467..b02589b 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -111,7 +111,7 @@ 'no_empty_comment' => true, 'no_trailing_whitespace_in_comment' => true, 'single_line_comment_spacing' => true, - 'single_line_comment_style' => ['comment_types' => ['asterisk', 'hash']] + 'single_line_comment_style' => ['comment_types' => ['hash']] ]; $constantNotationRules = [ diff --git a/tests/SecurityTest.php b/tests/SecurityTest.php index d98e072..b19732f 100644 --- a/tests/SecurityTest.php +++ b/tests/SecurityTest.php @@ -162,7 +162,7 @@ public static function provideEscAttrDataCases(): iterable yield 'russian' => ['привет', 'привет']; - yield 'arabic' => ['صباح الخير', 'صباح الخير']; // phpcs:ignore + yield 'arabic' => ['صباح الخير', 'صباح الخير']; yield 'cypriot' => ['𐠀', '𐠀']; @@ -170,7 +170,7 @@ public static function provideEscAttrDataCases(): iterable yield 'ideo2' => ['金', '金']; - yield 'ideo3' => ['숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜', '숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜']; // phpcs:ignore + yield 'ideo3' => ['숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜', '숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜']; yield 'empty' => ['', '']; } @@ -246,7 +246,7 @@ public static function provideEscJSDataCases(): iterable yield 'russian' => ['привет', '\\u043F\\u0440\\u0438\\u0432\\u0435\\u0442']; - yield 'arabic' => ['صباح الخير', '\\u0635\\u0628\\u0627\\u062D\\x20\\u0627\\u0644\\u062E\\u064A\\u0631']; // phpcs:ignore + yield 'arabic' => ['صباح الخير', '\\u0635\\u0628\\u0627\\u062D\\x20\\u0627\\u0644\\u062E\\u064A\\u0631']; yield 'cypriot' => ['𐠀', '\\uD802\\uDC00']; @@ -254,7 +254,7 @@ public static function provideEscJSDataCases(): iterable yield 'ideo2' => ['金', '\\u91D1']; - yield 'ideo3' => ['숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜', '\\uC20D\\u8A0A\\u6631\\u7A7F\\u5237\\u5944\\u5254\\u33C6\\u7A7D\\u4F98\\u320A\\uC11E\\u660C\\u4F84\\u5F9E\\uC49C']; // phpcs:ignore + yield 'ideo3' => ['숍訊昱穿刷奄剔㏆穽侘㈊섞昌侄從쒜', '\\uC20D\\u8A0A\\u6631\\u7A7F\\u5237\\u5944\\u5254\\u33C6\\u7A7D\\u4F98\\u320A\\uC11E\\u660C\\u4F84\\u5F9E\\uC49C']; yield 'empty' => ['', '']; }