Remove obsolete phpcs exclusions
This commit is contained in:
parent
3b5f20aa96
commit
fe0a8ba83b
|
@ -413,9 +413,7 @@ final class MD_STD {
|
||||||
foreach ($accepted_languages as $accepted_language) {
|
foreach ($accepted_languages as $accepted_language) {
|
||||||
|
|
||||||
// Alle Infos über diese Sprache rausholen
|
// 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);
|
$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?
|
// war die Syntax gültig?
|
||||||
if (!$res) {
|
if (!$res) {
|
||||||
|
@ -437,9 +435,7 @@ final class MD_STD {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bis der Sprachcode leer ist...
|
// Bis der Sprachcode leer ist...
|
||||||
// phpcs:disable Squiz.PHP.DisallowSizeFunctionsInLoops
|
|
||||||
while (!empty($lang_code)) {
|
while (!empty($lang_code)) {
|
||||||
// phpcs:enable
|
|
||||||
// mal sehen, ob der Sprachcode angeboten wird
|
// mal sehen, ob der Sprachcode angeboten wird
|
||||||
if (\in_array(\strtolower(\join('-', $lang_code)), $allowed_languages, true)) {
|
if (\in_array(\strtolower(\join('-', $lang_code)), $allowed_languages, true)) {
|
||||||
// Qualität anschauen
|
// Qualität anschauen
|
||||||
|
|
Loading…
Reference in New Issue
Block a user