From fe0a8ba83b9610d8fc47c129b98dc49c6754918c Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sat, 1 May 2021 22:54:37 +0200 Subject: [PATCH] Remove obsolete phpcs exclusions --- src/MD_STD.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/MD_STD.php b/src/MD_STD.php index 82e9694..05bc79d 100644 --- a/src/MD_STD.php +++ b/src/MD_STD.php @@ -413,9 +413,7 @@ final class MD_STD { foreach ($accepted_languages as $accepted_language) { // Alle Infos über diese Sprache rausholen - // phpcs:disable Generic.Strings.UnnecessaryStringConcat $res = \preg_match('/^([a-z]{1,8}(?:-[a-z]{1,8})*)(?:;\s*q=(0(?:\.[0-9]{1,3})?|1(?:\.0{1,3})?))?$/i', $accepted_language, $matches); - // phpcs:enable // war die Syntax gültig? if (!$res) { @@ -437,9 +435,7 @@ final class MD_STD { } // Bis der Sprachcode leer ist... - // phpcs:disable Squiz.PHP.DisallowSizeFunctionsInLoops while (!empty($lang_code)) { - // phpcs:enable // mal sehen, ob der Sprachcode angeboten wird if (\in_array(\strtolower(\join('-', $lang_code)), $allowed_languages, true)) { // Qualität anschauen