Commit 6fc3085a authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Correction de bug : les INSEE Corses ne passaient pas la validation de la clé était buggée

parent 47e34ecf
Pipeline #7139 failed with stages
in 17 seconds
......@@ -60,7 +60,9 @@ class NumeroINSEE extends AbstractValidator
return false;
}
$numero = (int) str_replace(array('A', 'B'), '0', $numero);
$numero = str_replace('2A', '19', $numero);
$numero = str_replace('2B', '18', $numero);
$numero = (int) $numero;
$cle = (int) $cle;
$reste = bcmod($numero, 97);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment