Code Duplication    Length = 9-9 lines in 2 locations

ecrire/inc/filtres_images_mini.php 2 locations

@@ 404-412 (lines=9) @@
401
		$taille_y = $taille_x;
402
	}
403
404
	if ($taille_x === 0 and $taille_y > 0) {
405
		$taille_x = 1;
406
	} # {0,300} -> c'est 300 qui compte
407
	elseif ($taille_x > 0 and $taille_y === 0) {
408
		$taille_y = 1;
409
	} # {300,0} -> c'est 300 qui compte
410
	elseif ($taille_x == 0 and $taille_y === 0) {
411
		return '';
412
	}
413
414
	list($destWidth, $destHeight, $ratio) = ratio_passe_partout($largeur, $hauteur, $taille_x, $taille_y);
415
	$fonction = array('image_passe_partout', func_get_args());
@@ 485-493 (lines=9) @@
482
		$taille_y = $taille;
483
	}
484
485
	if ($taille === 0 and $taille_y > 0) {
486
		$taille = 10000;
487
	} # {0,300} -> c'est 300 qui compte
488
	elseif ($taille > 0 and $taille_y === 0) {
489
		$taille_y = 10000;
490
	} # {300,0} -> c'est 300 qui compte
491
	elseif ($taille == 0 and $taille_y === 0) {
492
		return '';
493
	}
494
495
	$fonction = array('image_reduire', func_get_args());
496