Completed
Push — master ( f7786b...3465fc )
by cam
01:27
created
ecrire/inc/filtres_images_lib_mini.php 1 patch
Braces   +4 added lines, -9 removed lines patch added patch discarded remove patch
@@ -542,8 +542,7 @@  discard block
 block discarded – undo
542 542
 			process_image_svg_identite($ret);
543 543
 			$ret['creer'] = false;
544 544
 		}
545
-	}
546
-	else {
545
+	} else {
547 546
 		if (!function_exists($ret['fonction_imagecreatefrom'])) {
548 547
 			return false;
549 548
 		}
@@ -647,8 +646,7 @@  discard block
 block discarded – undo
647 646
 
648 647
 	if (isset($info['mime'])) {
649 648
 		$mime = $info['mime'];
650
-	}
651
-	else {
649
+	} else {
652 650
 		$mime = image_type_to_mime_type($info[2]);
653 651
 	}
654 652
 
@@ -1392,9 +1390,7 @@  discard block
 block discarded – undo
1392 1390
 	if ($srcWidth and $srcWidth <= $maxWidth and $srcHeight <= $maxHeight) {
1393 1391
 		$vignette = $destination . '.' . $format;
1394 1392
 		@copy($image, $vignette);
1395
-	}
1396
-
1397
-	elseif ($valeurs['format_source'] === 'svg') {
1393
+	} elseif ($valeurs['format_source'] === 'svg') {
1398 1394
 		include_spip('inc/svg');
1399 1395
 		if ($svg = svg_redimensionner($valeurs['fichier'], $destWidth, $destHeight)) {
1400 1396
 			$format_sortie = 'svg';
@@ -1837,8 +1833,7 @@  discard block
 block discarded – undo
1837 1833
 		$date = test_espace_prive() ? ('?' . $date) : '';
1838 1834
 
1839 1835
 		return _image_ecrire_tag($image, ['src' => "$logo$date", 'width' => $destWidth, 'height' => $destHeight]);
1840
-	}
1841
-	else {
1836
+	} else {
1842 1837
 		# BMP, tiff ... les redacteurs osent tout!
1843 1838
 		return $img;
1844 1839
 	}
Please login to merge, or discard this patch.