Code Duplication    Length = 8-8 lines in 2 locations

ecrire/public/phraser_html.php 2 locations

@@ 882-889 (lines=8) @@
879
		$milieu = substr($texte, $pos_parent);
880
881
		// Regarder si on a une partie conditionnelle avant <B_xxx>
882
		if ($boucle['pos_precond'] !== false) {
883
884
			$pos_debut_boucle = $boucle['pos_precond'];
885
886
			$pos_avant = $boucle['pos_precond_inside'];
887
			$result->avant = substr($texte, $pos_avant, $pos_boucle - $pos_avant);
888
			$ligne_avant = $ligne +  public_compte_ligne($texte,0, $pos_avant);
889
		}
890
891
		// Regarder si on a une partie inconditionnelle avant <BB_xxx>
892
		if ($boucle['pos_preaff'] !== false) {
@@ 892-899 (lines=8) @@
889
		}
890
891
		// Regarder si on a une partie inconditionnelle avant <BB_xxx>
892
		if ($boucle['pos_preaff'] !== false) {
893
894
			$end_preaff = $pos_debut_boucle;
895
896
			$pos_preaff = $boucle['pos_preaff_inside'];
897
			$result->preaff = substr($texte, $pos_preaff, $end_preaff - $pos_preaff);
898
			$ligne_preaff = $ligne +  public_compte_ligne($texte,0, $pos_preaff);
899
		}
900
901
		$debut = substr($texte, 0, $boucle['debut_boucle']);
902