1053,29 → 1053,31 |
private function testerEpitheteInfraSpSyntaxe() { |
$noms_erreur = array(); |
foreach ($this->noms as &$nom) { |
if ($nom['epithete_infra_sp'] != '') { |
$mots = explode(' ', $nom['epithete_infra_sp']); |
$hybride_contient_abbreviation_infra_sp = false; |
$formule_hybridite = (strpos($nom['epithete_infra_sp'], ' x ') !== false); |
foreach ($mots as $mot) { |
if($formule_hybridite && $this->verifierEstAbbreviationInfraSp($mot)) { |
$hybride_contient_abbreviation_infra_sp = true; |
if ($nom["rang"] != 450) { |
if ($nom['epithete_infra_sp'] != '') { |
$mots = explode(' ', $nom['epithete_infra_sp']); |
$hybride_contient_abbreviation_infra_sp = false; |
$formule_hybridite = (strpos($nom['epithete_infra_sp'], ' x ') !== false); |
foreach ($mots as $mot) { |
if($formule_hybridite && $this->verifierEstAbbreviationInfraSp($mot)) { |
$hybride_contient_abbreviation_infra_sp = true; |
} |
$formule_hybridite_valide = $this->verifierEpitheteGenre($mot) || $this->verifierEpitheteSp($mot) || $hybride_contient_abbreviation_infra_sp; |
if (!(preg_match('/^[+x]$/', $mot) || $this->verifierTypeEpithete($mot) || $this->verifierEpitheteSp($mot) || |
$formule_hybridite_valide)) { |
$epithete_traite = $this->repererEspace($nom['epithete_infra_sp']); |
$noms_erreur[] = array($nom['num_nom'], $epithete_traite, $nom['exclure_taxref']); |
$this->ajouterNumNomErreursTest($nom['num_nom']); |
break; |
} |
} |
$formule_hybridite_valide = $this->verifierEpitheteGenre($mot) || $this->verifierEpitheteSp($mot) || $hybride_contient_abbreviation_infra_sp; |
if (!(preg_match('/^[+x]$/', $mot) || $this->verifierTypeEpithete($mot) || $this->verifierEpitheteSp($mot) || |
$formule_hybridite_valide)) { |
|
if($formule_hybridite && !$hybride_contient_abbreviation_infra_sp) { |
$epithete_traite = $this->repererEspace($nom['epithete_infra_sp']); |
$noms_erreur[] = array($nom['num_nom'], $epithete_traite, $nom['exclure_taxref']); |
$this->ajouterNumNomErreursTest($nom['num_nom']); |
break; |
} |
} |
|
if($formule_hybridite && !$hybride_contient_abbreviation_infra_sp) { |
$epithete_traite = $this->repererEspace($nom['epithete_infra_sp']); |
$noms_erreur[] = array($nom['num_nom'], $epithete_traite, $nom['exclure_taxref']); |
$this->ajouterNumNomErreursTest($nom['num_nom']); |
} |
} |
} |
return $noms_erreur; |
1687,6 → 1689,34 |
/** |
* Test #79 |
*/ |
private function testerNomSupPourSynonyme() { |
$noms_erreur = array(); |
foreach ($this->noms as &$nom) { |
if ($nom['num_nom_retenu'] = $nom['num_nom'] && $nom['num_nom_sup'] != '') { |
$noms_erreur[] = array($nom['num_nom'], $nom['num_nom_sup'], $nom['exclure_taxref']); |
$this->ajouterNumNomErreursTest($nom['num_nom']); |
} |
} |
return $noms_erreur; |
} |
|
/** |
* Test #80 |
*/ |
private function testerExistenceNomSuperieur() { |
$noms_erreur = array(); |
foreach ($this->noms as &$nom) { |
if ($nom['num_nom_sup'] != 0 && !isset($this->noms[$nom['num_nom_sup']])) { |
$noms_erreur[] = array($nom['num_nom'], $nom['num_nom_sup'], $nom['exclure_taxref']); |
$this->ajouterNumNomErreursTest($nom['num_nom']); |
} |
} |
return $noms_erreur; |
} |
|
/** |
* Test #81 |
*/ |
private function testerExclureTaxRefPresence() { |
$noms_erreur = array(); |
foreach ($this->noms as &$nom) { |