Code Duplication    Length = 8-8 lines in 2 locations

ecrire/public/phraser_html.php 2 locations

@@ 1036-1043 (lines=8) @@
1033
		$pos_milieu = $pos_parent;
1034
1035
		// Regarder si on a une partie conditionnelle avant <B_xxx>
1036
		if ($boucle['pos_precond'] !== false) {
1037
1038
			$pos_debut_boucle = $boucle['pos_precond'];
1039
1040
			$pos_avant = $boucle['pos_precond_inside'];
1041
			$result->avant = substr($texte, $pos_avant, $pos_courante - $pos_avant);
1042
			$ligne_avant = $ligne_debut_texte +  public_compte_ligne($texte, $pos_debut_texte, $pos_avant);
1043
		}
1044
1045
		// Regarder si on a une partie inconditionnelle avant <BB_xxx>
1046
		if ($boucle['pos_preaff'] !== false) {
@@ 1046-1053 (lines=8) @@
1043
		}
1044
1045
		// Regarder si on a une partie inconditionnelle avant <BB_xxx>
1046
		if ($boucle['pos_preaff'] !== false) {
1047
1048
			$end_preaff = $pos_debut_boucle;
1049
1050
			$pos_preaff = $boucle['pos_preaff_inside'];
1051
			$result->preaff = substr($texte, $pos_preaff, $end_preaff - $pos_preaff);
1052
			$ligne_preaff = $ligne_debut_texte +  public_compte_ligne($texte, $pos_debut_texte, $pos_preaff);
1053
		}
1054
1055
		$result->id_boucle = $id_boucle;
1056