Completed
Push — master ( 20b549...62b76e )
by cam
04:16
created
ecrire/inc/filtres.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3303,8 +3303,7 @@  discard block
 block discarded – undo
3303 3303
 	$img_file = $img;
3304 3304
 	if (!isset($options['chemin_image']) or $options['chemin_image'] == true) {
3305 3305
 		$img_file = chemin_image($img);
3306
-	}
3307
-	else {
3306
+	} else {
3308 3307
 		if (!isset($options['variante_svg_si_possible']) or $options['variante_svg_si_possible'] == true){
3309 3308
 			// on peut fournir une icone generique -xx.svg qui fera le job dans toutes les tailles, et qui est prioritaire sur le png
3310 3309
 			// si il y a un .svg a la bonne taille (-16.svg) a cote, on l'utilise en remplacement du -16.png
@@ -3313,8 +3312,7 @@  discard block
 block discarded – undo
3313 3312
 			  and file_exists($variante_svg_generique)) {
3314 3313
 				if ($variante_svg_size = substr($variante_svg_generique,0,-6) . $m[1] . ".svg" and file_exists($variante_svg_size)) {
3315 3314
 					$img_file = $variante_svg_size;
3316
-				}
3317
-				else {
3315
+				} else {
3318 3316
 					$img_file = $variante_svg_generique;
3319 3317
 				}
3320 3318
 			}
@@ -3403,8 +3401,7 @@  discard block
 block discarded – undo
3403 3401
 		$balise_svg = inserer_attribut($balise_svg, 'aria-labelledby', $id);
3404 3402
 		$title = "<title id=\"$id\">" . entites_html($alt)."</title>\n";
3405 3403
 		$balise_svg .= $title;
3406
-	}
3407
-	else {
3404
+	} else {
3408 3405
 		$balise_svg = inserer_attribut($balise_svg, 'aria-hidden', 'true');
3409 3406
 	}
3410 3407
 	$svg = str_replace($balise_svg_source, $balise_svg, $svg);
Please login to merge, or discard this patch.
ecrire/inc/utils.php 1 patch
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1392,8 +1392,7 @@  discard block
 block discarded – undo
1392 1392
 		and $f = find_in_theme("$file_svg_generique")) {
1393 1393
 		if ($fsize = substr($f,0,-6) . $m[1] . ".svg" and file_exists($fsize)) {
1394 1394
 			return $themefiles["$subdir$file"] = $fsize;
1395
-		}
1396
-		else {
1395
+		} else {
1397 1396
 			return $themefiles["$subdir$file"] = $f;
1398 1397
 		}
1399 1398
 	}
@@ -2330,12 +2329,13 @@  discard block
 block discarded – undo
2330 2329
 		define('_DIR_CHMOD', $pi);
2331 2330
 	}
2332 2331
 
2333
-	if (!isset($GLOBALS['test_dirs']))
2334
-		// Pas $pi car il est bon de le mettre hors ecriture apres intstall
2332
+	if (!isset($GLOBALS['test_dirs'])) {
2333
+			// Pas $pi car il est bon de le mettre hors ecriture apres intstall
2335 2334
 		// il sera rajoute automatiquement si besoin a l'etape 2 de l'install
2336 2335
 	{
2337 2336
 		$GLOBALS['test_dirs'] = array($pa, $ti, $ta);
2338 2337
 	}
2338
+	}
2339 2339
 
2340 2340
 	// Declaration des fichiers
2341 2341
 
@@ -3412,8 +3412,7 @@  discard block
 block discarded – undo
3412 3412
 			  and $h = svg_dimension_to_pixels($attrs['height'])) {
3413 3413
 				$width = $w;
3414 3414
 				$height = $h;
3415
-			}
3416
-			elseif (isset($attrs['viewBox'])) {
3415
+			} elseif (isset($attrs['viewBox'])) {
3417 3416
 				$viewbox = trim($attrs['viewBox']);
3418 3417
 				$viewbox = preg_replace(",\s+,", " ", $viewbox);
3419 3418
 				$viewbox = explode(" ", $viewbox);
Please login to merge, or discard this patch.