From 6ba44edbed63bf87b8156234f9a045df4b06e658 Mon Sep 17 00:00:00 2001 From: JamesRezo <james@rezo.net> Date: Sun, 20 Feb 2022 11:40:35 +0100 Subject: [PATCH] =?UTF-8?q?r=C3=A9duction=20de=20la=20baseline=20phpstan:?= =?UTF-8?q?=20doublon=20dans=20la=20globale=20GLOBALS['CHARSET']['translit?= =?UTF-8?q?']?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/charsets/translit.php | 9 ++++----- phpstan-baseline.neon | 15 --------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/ecrire/charsets/translit.php b/ecrire/charsets/translit.php index 0bd64c2f57..b8dcd7165b 100644 --- a/ecrire/charsets/translit.php +++ b/ecrire/charsets/translit.php @@ -102,8 +102,6 @@ $GLOBALS['CHARSET']['translit'] = [ 287 => 'g', 304 => 'I', 305 => 'i', - 350 => 'S', - 351 => 's', // esperanto 264 => 'Cx', @@ -169,11 +167,13 @@ $GLOBALS['CHARSET']['translit'] = [ //roumain 258 => 'A', 259 => 'a', - 350 => 'S', - 351 => 's', 354 => 'T', 355 => 't', +//turc & roumain + 350 => 'S', + 351 => 's', + // cyrillique 1026 => 'D%', 1027 => 'G%', @@ -198,7 +198,6 @@ $GLOBALS['CHARSET']['translit'] = [ 8221 => '"', 8226 => ' o ', 8211 => '-', - 8212 => '--', 8212 => '~', 8482 => '(TM)', 1113 => 'lj', diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 3303b6b78f..eb4ef58861 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,21 +5,6 @@ parameters: count: 1 path: ecrire/action/inscrire_auteur.php - - - message: "#^Array has 2 duplicate keys with value 350 \\(350, 350\\)\\.$#" - count: 1 - path: ecrire/charsets/translit.php - - - - message: "#^Array has 2 duplicate keys with value 351 \\(351, 351\\)\\.$#" - count: 1 - path: ecrire/charsets/translit.php - - - - message: "#^Array has 2 duplicate keys with value 8212 \\(8212, 8212\\)\\.$#" - count: 1 - path: ecrire/charsets/translit.php - - message: "#^Function fichier_copie_locale\\(\\) should return string but return statement is missing\\.$#" count: 1 -- GitLab