Completed
Push — master ( 5e73c9...220241 )
by cam
01:00
created
ecrire/inc/filtres.php 1 patch
Spacing   +122 added lines, -123 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 
98 98
 	include_fichiers_fonctions();
99
-	foreach (['filtre_' . $fonc, 'filtre_' . $fonc . '_dist', $fonc] as $f) {
99
+	foreach (['filtre_'.$fonc, 'filtre_'.$fonc.'_dist', $fonc] as $f) {
100 100
 		trouver_filtre_matrice($f); // charge des fichiers spécifiques éventuels
101 101
 		if (is_callable($f)) {
102 102
 			return $f;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	// affichage "GIT [master: abcdef]"
232 232
 	$commit = $desc['commit_short'] ?? $desc['commit'];
233 233
 	if ($desc['branch']) {
234
-		$commit = $desc['branch'] . ': ' . $commit;
234
+		$commit = $desc['branch'].': '.$commit;
235 235
 	}
236 236
 	return "{$desc['vcs']} [$commit]";
237 237
 }
@@ -250,9 +250,9 @@  discard block
 block discarded – undo
250 250
 	}
251 251
 
252 252
 	// version installee par GIT
253
-	if (lire_fichier($dir . '/.git/HEAD', $c)) {
253
+	if (lire_fichier($dir.'/.git/HEAD', $c)) {
254 254
 		$currentHead = trim(substr($c, 4));
255
-		if (lire_fichier($dir . '/.git/' . $currentHead, $hash)) {
255
+		if (lire_fichier($dir.'/.git/'.$currentHead, $hash)) {
256 256
 			return [
257 257
 				'vcs' => 'GIT',
258 258
 				'branch' => basename($currentHead),
@@ -267,12 +267,12 @@  discard block
 block discarded – undo
267 267
 
268 268
 // La matrice est necessaire pour ne filtrer _que_ des fonctions definies dans filtres_images
269 269
 // et laisser passer les fonctions personnelles baptisees image_...
270
-$GLOBALS['spip_matrice']['image_graver'] = true;//'inc/filtres_images_mini.php';
271
-$GLOBALS['spip_matrice']['image_select'] = true;//'inc/filtres_images_mini.php';
272
-$GLOBALS['spip_matrice']['image_reduire'] = true;//'inc/filtres_images_mini.php';
273
-$GLOBALS['spip_matrice']['image_reduire_par'] = true;//'inc/filtres_images_mini.php';
274
-$GLOBALS['spip_matrice']['image_passe_partout'] = true;//'inc/filtres_images_mini.php';
275
-$GLOBALS['spip_matrice']['image_recadre_avec_fallback'] = true;//'inc/filtres_images_mini.php';
270
+$GLOBALS['spip_matrice']['image_graver'] = true; //'inc/filtres_images_mini.php';
271
+$GLOBALS['spip_matrice']['image_select'] = true; //'inc/filtres_images_mini.php';
272
+$GLOBALS['spip_matrice']['image_reduire'] = true; //'inc/filtres_images_mini.php';
273
+$GLOBALS['spip_matrice']['image_reduire_par'] = true; //'inc/filtres_images_mini.php';
274
+$GLOBALS['spip_matrice']['image_passe_partout'] = true; //'inc/filtres_images_mini.php';
275
+$GLOBALS['spip_matrice']['image_recadre_avec_fallback'] = true; //'inc/filtres_images_mini.php';
276 276
 
277 277
 $GLOBALS['spip_matrice']['couleur_html_to_hex'] = 'inc/filtres_images_mini.php';
278 278
 $GLOBALS['spip_matrice']['couleur_hex_to_hsl'] = 'inc/filtres_images_mini.php';
@@ -431,8 +431,8 @@  discard block
 block discarded – undo
431 431
  */
432 432
 function filtre_debug($val, $key = null) {
433 433
 	$debug = (
434
-		is_null($key) ? '' : (var_export($key, true) . ' = ')
435
-		) . var_export($val, true);
434
+		is_null($key) ? '' : (var_export($key, true).' = ')
435
+		).var_export($val, true);
436 436
 
437 437
 	include_spip('inc/autoriser');
438 438
 	if (autoriser('webmestre')) {
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 		$is_file = false;
489 489
 	}
490 490
 	if ($is_file) {
491
-		$is_local_file = function ($path) {
491
+		$is_local_file = function($path) {
492 492
 			if (strpos($path, '?') !== false) {
493 493
 				$path = supprimer_timestamp($path);
494 494
 				// remove ?24px added by find_in_theme on .svg files
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
 					if ($mouseover = extraire_attribut($reduit, 'onmouseover')) {
538 538
 						if (preg_match(",this[.]src=['\"]([^'\"]+)['\"],ims", $mouseover, $match)) {
539 539
 							$srcover = $match[1];
540
-							$srcover_filter = $filtre("<img src='" . $match[1] . "' />", ...$args);
540
+							$srcover_filter = $filtre("<img src='".$match[1]."' />", ...$args);
541 541
 							$srcover_filter = extraire_attribut($srcover_filter, 'src');
542 542
 							$reduit = str_replace($srcover, $srcover_filter, $reduit);
543 543
 						}
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
 	// " -> &quot; et tout ce genre de choses
943 943
 	$u = $GLOBALS['meta']['pcre_u'];
944 944
 	$texte = str_replace('&nbsp;', ' ', $texte);
945
-	$texte = preg_replace('/\s{2,}/S' . $u, ' ', $texte);
945
+	$texte = preg_replace('/\s{2,}/S'.$u, ' ', $texte);
946 946
 	// ne pas echapper les sinqle quotes car certains outils de syndication gerent mal
947 947
 	$texte = entites_html($texte, false, false);
948 948
 	// mais bien echapper les double quotes !
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
 		return '';
1005 1005
 	}
1006 1006
 	return preg_replace(
1007
-		',^[[:space:]]*([0-9]+)([.)]|' . chr(194) . '?' . chr(176) . ')[[:space:]]+,S',
1007
+		',^[[:space:]]*([0-9]+)([.)]|'.chr(194).'?'.chr(176).')[[:space:]]+,S',
1008 1008
 		'',
1009 1009
 		$texte
1010 1010
 	);
@@ -1033,7 +1033,7 @@  discard block
 block discarded – undo
1033 1033
 	if (
1034 1034
 		$texte and
1035 1035
 		preg_match(
1036
-			',^[[:space:]]*([0-9]+)([.)]|' . chr(194) . '?' . chr(176) . ')[[:space:]]+,S',
1036
+			',^[[:space:]]*([0-9]+)([.)]|'.chr(194).'?'.chr(176).')[[:space:]]+,S',
1037 1037
 			$texte,
1038 1038
 			$regs
1039 1039
 		)
@@ -1124,8 +1124,8 @@  discard block
 block discarded – undo
1124 1124
  **/
1125 1125
 function textebrut($texte) {
1126 1126
 	$u = $GLOBALS['meta']['pcre_u'];
1127
-	$texte = preg_replace('/\s+/S' . $u, ' ', $texte);
1128
-	$texte = preg_replace('/<(p|br)( [^>]*)?' . '>/iS', "\n\n", $texte);
1127
+	$texte = preg_replace('/\s+/S'.$u, ' ', $texte);
1128
+	$texte = preg_replace('/<(p|br)( [^>]*)?'.'>/iS', "\n\n", $texte);
1129 1129
 	$texte = preg_replace("/^\n+/", '', $texte);
1130 1130
 	$texte = preg_replace("/\n+$/", '', $texte);
1131 1131
 	$texte = preg_replace("/\n +/", "\n", $texte);
@@ -1159,7 +1159,7 @@  discard block
 block discarded – undo
1159 1159
 		)
1160 1160
 	) {
1161 1161
 		foreach ($liens[0] as $a) {
1162
-			$rel = 'noopener noreferrer ' . extraire_attribut($a, 'rel');
1162
+			$rel = 'noopener noreferrer '.extraire_attribut($a, 'rel');
1163 1163
 			$ablank = inserer_attribut($a, 'rel', $rel);
1164 1164
 			$ablank = inserer_attribut($ablank, 'target', '_blank');
1165 1165
 			$texte = str_replace($a, $ablank, $texte);
@@ -1184,7 +1184,7 @@  discard block
 block discarded – undo
1184 1184
 		foreach ($regs[0] as $a) {
1185 1185
 			$rel = extraire_attribut($a, 'rel') ?? '';
1186 1186
 			if (strpos($rel, 'nofollow') === false) {
1187
-				$rel = 'nofollow' . ($rel ? " $rel" : '');
1187
+				$rel = 'nofollow'.($rel ? " $rel" : '');
1188 1188
 				$anofollow = inserer_attribut($a, 'rel', $rel);
1189 1189
 				$texte = str_replace($a, $anofollow, $texte);
1190 1190
 			}
@@ -1213,7 +1213,7 @@  discard block
 block discarded – undo
1213 1213
 	$u = $GLOBALS['meta']['pcre_u'];
1214 1214
 	$texte = preg_replace('@</p>@iS', "\n", $texte);
1215 1215
 	$texte = preg_replace("@<p\b.*>@UiS", '<br />', $texte);
1216
-	$texte = preg_replace('@^\s*<br />@S' . $u, '', $texte);
1216
+	$texte = preg_replace('@^\s*<br />@S'.$u, '', $texte);
1217 1217
 
1218 1218
 	return $texte;
1219 1219
 }
@@ -1244,7 +1244,7 @@  discard block
 block discarded – undo
1244 1244
 		return $texte;
1245 1245
 	}
1246 1246
 	include_spip('inc/texte');
1247
-	$tag = preg_match(',</?(' . _BALISES_BLOCS . ')[>[:space:]],iS', $texte) ?
1247
+	$tag = preg_match(',</?('._BALISES_BLOCS.')[>[:space:]],iS', $texte) ?
1248 1248
 		'div' : 'span';
1249 1249
 
1250 1250
 	return "<$tag style='word-wrap:break-word;'>$texte</$tag>";
@@ -1335,7 +1335,7 @@  discard block
 block discarded – undo
1335 1335
 
1336 1336
 		// Calcul de la taille et choix de l'unité
1337 1337
 		$affichage = _T(
1338
-			'spip:taille_' . $unites[$puissance] . $suffixe_item,
1338
+			'spip:taille_'.$unites[$puissance].$suffixe_item,
1339 1339
 			[
1340 1340
 				'taille' => round($octets / pow($kilo, $puissance), $precisions[$puissance])
1341 1341
 			]
@@ -1369,7 +1369,7 @@  discard block
 block discarded – undo
1369 1369
 	}
1370 1370
 	$u = $GLOBALS['meta']['pcre_u'];
1371 1371
 	if ($textebrut) {
1372
-		$texte = preg_replace([",\n,", ',\s(?=\s),msS' . $u], [' ', ''], textebrut($texte));
1372
+		$texte = preg_replace([",\n,", ',\s(?=\s),msS'.$u], [' ', ''], textebrut($texte));
1373 1373
 	}
1374 1374
 	$texte = texte_backend($texte);
1375 1375
 	$texte = str_replace(["'", '"'], ['&#039;', '&#034;'], $texte);
@@ -1404,7 +1404,7 @@  discard block
 block discarded – undo
1404 1404
 	# un message pour abs_url
1405 1405
 	$GLOBALS['mode_abs_url'] = 'url';
1406 1406
 	$url = trim($url);
1407
-	$r = ',^(?:' . _PROTOCOLES_STD . '):?/?/?$,iS';
1407
+	$r = ',^(?:'._PROTOCOLES_STD.'):?/?/?$,iS';
1408 1408
 
1409 1409
 	return preg_match($r, $url) ? '' : ($entites ? entites_html($url) : $url);
1410 1410
 }
@@ -1610,7 +1610,7 @@  discard block
 block discarded – undo
1610 1610
 
1611 1611
 	$debut = '';
1612 1612
 	$suite = $texte;
1613
-	while ($t = strpos('-' . $suite, "\n", 1)) {
1613
+	while ($t = strpos('-'.$suite, "\n", 1)) {
1614 1614
 		$debut .= substr($suite, 0, $t - 1);
1615 1615
 		$suite = substr($suite, $t);
1616 1616
 		$car = substr($suite, 0, 1);
@@ -1628,7 +1628,7 @@  discard block
 block discarded – undo
1628 1628
 			$suite = substr($suite, strlen($regs[0]));
1629 1629
 		}
1630 1630
 	}
1631
-	$texte = $debut . $suite;
1631
+	$texte = $debut.$suite;
1632 1632
 
1633 1633
 	if ($collecteurModeles) {
1634 1634
 		$texte = $collecteurModeles->retablir($texte);
@@ -1636,7 +1636,7 @@  discard block
 block discarded – undo
1636 1636
 
1637 1637
 	$texte = echappe_retour($texte);
1638 1638
 
1639
-	return $texte . $fin;
1639
+	return $texte.$fin;
1640 1640
 }
1641 1641
 
1642 1642
 
@@ -1912,7 +1912,7 @@  discard block
 block discarded – undo
1912 1912
 	if (is_array($balise)) {
1913 1913
 		array_walk(
1914 1914
 			$balise,
1915
-			function (&$a, $key, $t) {
1915
+			function(&$a, $key, $t) {
1916 1916
 				$a = extraire_attribut($a, $t);
1917 1917
 			},
1918 1918
 			$attribut
@@ -2010,14 +2010,14 @@  discard block
 block discarded – undo
2010 2010
 
2011 2011
 	if ($old !== null) {
2012 2012
 		// Remplacer l'ancien attribut du meme nom
2013
-		$balise = $r[1] . $insert . $r[5];
2013
+		$balise = $r[1].$insert.$r[5];
2014 2014
 	} else {
2015 2015
 		// preferer une balise " />" (comme <img />)
2016 2016
 		if (preg_match(',/>,', $balise)) {
2017
-			$balise = preg_replace(',\s?/>,S', $insert . ' />', $balise, 1);
2017
+			$balise = preg_replace(',\s?/>,S', $insert.' />', $balise, 1);
2018 2018
 		} // sinon une balise <a ...> ... </a>
2019 2019
 		else {
2020
-			$balise = preg_replace(',\s?>,S', $insert . '>', $balise, 1);
2020
+			$balise = preg_replace(',\s?>,S', $insert.'>', $balise, 1);
2021 2021
 		}
2022 2022
 	}
2023 2023
 
@@ -2075,7 +2075,7 @@  discard block
 block discarded – undo
2075 2075
 			in_array($operation, ['ajouter', 'commuter'])
2076 2076
 			and !$is_class_presente
2077 2077
 		) {
2078
-			$class_new = ltrim(rtrim($class_new ?? '') . ' ' . $c);
2078
+			$class_new = ltrim(rtrim($class_new ?? '').' '.$c);
2079 2079
 		} elseif (
2080 2080
 			in_array($operation, ['supprimer', 'commuter'])
2081 2081
 			and $is_class_presente
@@ -2145,7 +2145,7 @@  discard block
 block discarded – undo
2145 2145
 // Quelques fonctions de calcul arithmetique
2146 2146
 //
2147 2147
 function floatstr($a) {
2148
- return str_replace(',', '.', (string)floatval($a));
2148
+ return str_replace(',', '.', (string) floatval($a));
2149 2149
 }
2150 2150
 function strize($f, $a, $b) {
2151 2151
  return floatstr($f(floatstr($a), floatstr($b)));
@@ -2286,13 +2286,13 @@  discard block
 block discarded – undo
2286 2286
 	if (!defined('_TAGS_NOM_AUTEUR')) {
2287 2287
 		define('_TAGS_NOM_AUTEUR', '');
2288 2288
 	}
2289
-	$tags_acceptes = array_unique(explode(',', 'multi,' . _TAGS_NOM_AUTEUR));
2289
+	$tags_acceptes = array_unique(explode(',', 'multi,'._TAGS_NOM_AUTEUR));
2290 2290
 	foreach ($tags_acceptes as $tag) {
2291 2291
 		if (strlen($tag)) {
2292
-			$remp1[] = '<' . trim($tag) . '>';
2293
-			$remp1[] = '</' . trim($tag) . '>';
2294
-			$remp2[] = '\x60' . trim($tag) . '\x61';
2295
-			$remp2[] = '\x60/' . trim($tag) . '\x61';
2292
+			$remp1[] = '<'.trim($tag).'>';
2293
+			$remp1[] = '</'.trim($tag).'>';
2294
+			$remp2[] = '\x60'.trim($tag).'\x61';
2295
+			$remp2[] = '\x60/'.trim($tag).'\x61';
2296 2296
 		}
2297 2297
 	}
2298 2298
 	$v_nom = str_replace($remp2, $remp1, supprimer_tags(str_replace($remp1, $remp2, $nom)));
@@ -2412,10 +2412,10 @@  discard block
 block discarded – undo
2412 2412
 	$fichier = basename($url);
2413 2413
 
2414 2414
 	return '<a rel="enclosure"'
2415
-	. ($url ? ' href="' . spip_htmlspecialchars($url) . '"' : '')
2416
-	. ($type ? ' type="' . spip_htmlspecialchars($type) . '"' : '')
2417
-	. ($length ? ' title="' . spip_htmlspecialchars($length) . '"' : '')
2418
-	. '>' . $fichier . '</a>';
2415
+	. ($url ? ' href="'.spip_htmlspecialchars($url).'"' : '')
2416
+	. ($type ? ' type="'.spip_htmlspecialchars($type).'"' : '')
2417
+	. ($length ? ' title="'.spip_htmlspecialchars($length).'"' : '')
2418
+	. '>'.$fichier.'</a>';
2419 2419
 }
2420 2420
 
2421 2421
 /**
@@ -2443,9 +2443,9 @@  discard block
 block discarded – undo
2443 2443
 			} # vieux data
2444 2444
 			$fichier = basename($url);
2445 2445
 			$enclosures[] = '<enclosure'
2446
-				. ($url ? ' url="' . spip_htmlspecialchars($url) . '"' : '')
2447
-				. ($type ? ' type="' . spip_htmlspecialchars($type) . '"' : '')
2448
-				. ($length ? ' length="' . $length . '"' : '')
2446
+				. ($url ? ' url="'.spip_htmlspecialchars($url).'"' : '')
2447
+				. ($type ? ' type="'.spip_htmlspecialchars($type).'"' : '')
2448
+				. ($length ? ' length="'.$length.'"' : '')
2449 2449
 				. ' />';
2450 2450
 		}
2451 2451
 	}
@@ -2471,7 +2471,7 @@  discard block
 block discarded – undo
2471 2471
 		if (extraire_attribut($e, 'rel') == 'tag') {
2472 2472
 			$subjects .= '<dc:subject>'
2473 2473
 				. texte_backend(textebrut($e))
2474
-				. '</dc:subject>' . "\n";
2474
+				. '</dc:subject>'."\n";
2475 2475
 		}
2476 2476
 	}
2477 2477
 
@@ -2507,7 +2507,7 @@  discard block
 block discarded – undo
2507 2507
 	if (is_array($texte)) {
2508 2508
 		array_walk(
2509 2509
 			$texte,
2510
-			function (&$a, $key, $t) {
2510
+			function(&$a, $key, $t) {
2511 2511
 				$a = extraire_balise($a, $t);
2512 2512
 			},
2513 2513
 			$tag
@@ -2555,7 +2555,7 @@  discard block
 block discarded – undo
2555 2555
 	if (is_array($texte)) {
2556 2556
 		array_walk(
2557 2557
 			$texte,
2558
-			function (&$a, $key, $t) {
2558
+			function(&$a, $key, $t) {
2559 2559
 				$a = extraire_balises($a, $t);
2560 2560
 			},
2561 2561
 			$tag
@@ -2688,7 +2688,7 @@  discard block
 block discarded – undo
2688 2688
 		if ($fond != '404') {
2689 2689
 			$contexte = array_shift($p);
2690 2690
 			$contexte['page'] = $fond;
2691
-			$action = preg_replace('/([?]' . preg_quote($fond) . '[^&=]*[0-9]+)(&|$)/', '?&', $action);
2691
+			$action = preg_replace('/([?]'.preg_quote($fond).'[^&=]*[0-9]+)(&|$)/', '?&', $action);
2692 2692
 		}
2693 2693
 	}
2694 2694
 	// defaire ce qu'a injecte urls_decoder_url : a revoir en modifiant la signature de urls_decoder_url
@@ -2743,9 +2743,9 @@  discard block
 block discarded – undo
2743 2743
 			. '"'
2744 2744
 			. (is_null($val)
2745 2745
 				? ''
2746
-				: ' value="' . entites_html($val) . '"'
2746
+				: ' value="'.entites_html($val).'"'
2747 2747
 			)
2748
-			. ' type="hidden"' . "\n/>";
2748
+			. ' type="hidden"'."\n/>";
2749 2749
 	}
2750 2750
 
2751 2751
 	return join('', $hidden);
@@ -2855,7 +2855,7 @@  discard block
 block discarded – undo
2855 2855
 
2856 2856
 	return preg_replace_callback(
2857 2857
 		",url\s*\(\s*['\"]?([^'\"/#\s][^:]*)['\"]?\s*\),Uims",
2858
-		fn($x) => "url('" . suivre_lien($path, $x[1]) . "')",
2858
+		fn($x) => "url('".suivre_lien($path, $x[1])."')",
2859 2859
 		$contenu
2860 2860
 	);
2861 2861
 }
@@ -2916,14 +2916,14 @@  discard block
 block discarded – undo
2916 2916
 	) {
2917 2917
 		$distant = true;
2918 2918
 		$cssf = parse_url($css);
2919
-		$cssf = $cssf['path'] . ($cssf['query'] ? '?' . $cssf['query'] : '');
2919
+		$cssf = $cssf['path'].($cssf['query'] ? '?'.$cssf['query'] : '');
2920 2920
 		$cssf = preg_replace(',[?:&=],', '_', $cssf);
2921 2921
 	} else {
2922 2922
 		$distant = false;
2923 2923
 		$cssf = $css;
2924 2924
 		// 1. regarder d'abord si un fichier avec la bonne direction n'est pas aussi
2925 2925
 		//propose (rien a faire dans ce cas)
2926
-		$f = preg_replace(',(_rtl)?\.css$,i', '_' . $ndir . '.css', $css);
2926
+		$f = preg_replace(',(_rtl)?\.css$,i', '_'.$ndir.'.css', $css);
2927 2927
 		if (@file_exists($f)) {
2928 2928
 			return $f;
2929 2929
 		}
@@ -2933,7 +2933,7 @@  discard block
 block discarded – undo
2933 2933
 	$dir_var = sous_repertoire(_DIR_VAR, 'cache-css');
2934 2934
 	$f = $dir_var
2935 2935
 		. preg_replace(',.*/(.*?)(_rtl)?\.css,', '\1', $cssf)
2936
-		. '.' . substr(md5($cssf), 0, 4) . '_' . $ndir . '.css';
2936
+		. '.'.substr(md5($cssf), 0, 4).'_'.$ndir.'.css';
2937 2937
 
2938 2938
 	// la css peut etre distante (url absolue !)
2939 2939
 	if ($distant) {
@@ -2979,8 +2979,8 @@  discard block
 block discarded – undo
2979 2979
 		} // si la css_direction commence par $dir_var on la fait passer pour une absolue
2980 2980
 		elseif (substr($css_direction, 0, strlen($dir_var)) == $dir_var) {
2981 2981
 			$css_direction = substr($css_direction, strlen($dir_var));
2982
-			$src_faux_abs['/@@@@@@/' . $css_direction] = $css_direction;
2983
-			$css_direction = '/@@@@@@/' . $css_direction;
2982
+			$src_faux_abs['/@@@@@@/'.$css_direction] = $css_direction;
2983
+			$css_direction = '/@@@@@@/'.$css_direction;
2984 2984
 		}
2985 2985
 		$src[] = $regs[0][$k];
2986 2986
 		$src_direction_css[] = str_replace($import_css, $css_direction, $regs[0][$k]);
@@ -3029,7 +3029,7 @@  discard block
 block discarded – undo
3029 3029
 
3030 3030
 	$f = basename($css, '.css');
3031 3031
 	$f = sous_repertoire(_DIR_VAR, 'cache-css')
3032
-		. preg_replace(',(.*?)(_rtl|_ltr)?$,', "\\1-urlabs-" . substr(md5("$css-urlabs"), 0, 4) . "\\2", $f)
3032
+		. preg_replace(',(.*?)(_rtl|_ltr)?$,', "\\1-urlabs-".substr(md5("$css-urlabs"), 0, 4)."\\2", $f)
3033 3033
 		. '.css';
3034 3034
 
3035 3035
 	if ((@filemtime($f) > @filemtime($css)) and (_VAR_MODE != 'recalcul')) {
@@ -3039,7 +3039,7 @@  discard block
 block discarded – undo
3039 3039
 	if ($url_absolue_css == $css) {
3040 3040
 		if (
3041 3041
 			strncmp($GLOBALS['meta']['adresse_site'], $css, $l = strlen($GLOBALS['meta']['adresse_site'])) != 0
3042
-			or !lire_fichier(_DIR_RACINE . substr($css, $l), $contenu)
3042
+			or !lire_fichier(_DIR_RACINE.substr($css, $l), $contenu)
3043 3043
 		) {
3044 3044
 			include_spip('inc/distant');
3045 3045
 			$contenu = recuperer_url($css);
@@ -3151,7 +3151,7 @@  discard block
 block discarded – undo
3151 3151
 	$expression = str_replace('\/', '/', $expression);
3152 3152
 	$expression = str_replace('/', '\/', $expression);
3153 3153
 
3154
-	if (preg_match('/' . $expression . '/' . $modif, $texte ?? '', $r)) {
3154
+	if (preg_match('/'.$expression.'/'.$modif, $texte ?? '', $r)) {
3155 3155
 		if (isset($r[$capte])) {
3156 3156
 			return $r[$capte];
3157 3157
 		} else {
@@ -3193,7 +3193,7 @@  discard block
 block discarded – undo
3193 3193
 	$expression = str_replace('\/', '/', $expression);
3194 3194
 	$expression = str_replace('/', '\/', $expression);
3195 3195
 
3196
-	return (string) preg_replace('/' . $expression . '/' . $modif, $replace, $texte);
3196
+	return (string) preg_replace('/'.$expression.'/'.$modif, $replace, $texte);
3197 3197
 }
3198 3198
 
3199 3199
 
@@ -3212,7 +3212,7 @@  discard block
 block discarded – undo
3212 3212
 function traiter_doublons_documents(&$doublons, $letexte) {
3213 3213
 
3214 3214
 	// Verifier dans le texte & les notes (pas beau, helas)
3215
-	$t = $letexte . $GLOBALS['les_notes'];
3215
+	$t = $letexte.$GLOBALS['les_notes'];
3216 3216
 
3217 3217
 	if (
3218 3218
 		strstr($t, 'spip_document_') // evite le preg_match_all si inutile
@@ -3226,7 +3226,7 @@  discard block
 block discarded – undo
3226 3226
 		if (!isset($doublons['documents'])) {
3227 3227
 			$doublons['documents'] = '';
3228 3228
 		}
3229
-		$doublons['documents'] .= ',' . join(',', $matches[1]);
3229
+		$doublons['documents'] .= ','.join(',', $matches[1]);
3230 3230
 	}
3231 3231
 
3232 3232
 	return $letexte;
@@ -3283,7 +3283,7 @@  discard block
 block discarded – undo
3283 3283
 	if ($env) {
3284 3284
 		foreach ($env as $i => $j) {
3285 3285
 			if (is_string($j) and !in_array($i, $ignore_params)) {
3286
-				$texte .= "<param name='" . attribut_html($i) . "'\n\tvalue='" . attribut_html($j) . "' />";
3286
+				$texte .= "<param name='".attribut_html($i)."'\n\tvalue='".attribut_html($j)."' />";
3287 3287
 			}
3288 3288
 		}
3289 3289
 	}
@@ -3322,7 +3322,7 @@  discard block
 block discarded – undo
3322 3322
 	if ($env) {
3323 3323
 		foreach ($env as $i => $j) {
3324 3324
 			if (is_string($j) and !in_array($i, $ignore_params)) {
3325
-				$texte .= attribut_html($i) . "='" . attribut_html($j) . "' ";
3325
+				$texte .= attribut_html($i)."='".attribut_html($j)."' ";
3326 3326
 			}
3327 3327
 		}
3328 3328
 	}
@@ -3396,10 +3396,10 @@  discard block
 block discarded – undo
3396 3396
 	// si il y a un .svg a la bonne taille (-16.svg) a cote, on l'utilise en remplacement du -16.png
3397 3397
 	if (
3398 3398
 		preg_match(',-(\d+)[.](png|gif|svg)$,', $img_file, $m)
3399
-		and $variante_svg_generique = substr($img_file, 0, -strlen($m[0])) . '-xx.svg'
3399
+		and $variante_svg_generique = substr($img_file, 0, -strlen($m[0])).'-xx.svg'
3400 3400
 		and file_exists($variante_svg_generique)
3401 3401
 	) {
3402
-		if ($variante_svg_size = substr($variante_svg_generique, 0, -6) . $m[1] . '.svg' and file_exists($variante_svg_size)) {
3402
+		if ($variante_svg_size = substr($variante_svg_generique, 0, -6).$m[1].'.svg' and file_exists($variante_svg_size)) {
3403 3403
 			$img_file = $variante_svg_size;
3404 3404
 		}
3405 3405
 		else {
@@ -3457,7 +3457,7 @@  discard block
 block discarded – undo
3457 3457
 				return '';
3458 3458
 			}
3459 3459
 		}
3460
-		$atts .= " width='" . $largeur . "' height='" . $hauteur . "'";
3460
+		$atts .= " width='".$largeur."' height='".$hauteur."'";
3461 3461
 	}
3462 3462
 
3463 3463
 	if (file_exists($img_file)) {
@@ -3467,14 +3467,14 @@  discard block
 block discarded – undo
3467 3467
 		$alt = '';
3468 3468
 	}
3469 3469
 	elseif ($alt or $alt === '') {
3470
-		$alt = " alt='" . attribut_html($alt) . "'";
3470
+		$alt = " alt='".attribut_html($alt)."'";
3471 3471
 	}
3472 3472
 	else {
3473
-		$alt = " alt='" . attribut_html($title) . "'";
3473
+		$alt = " alt='".attribut_html($title)."'";
3474 3474
 	}
3475
-	return "<img src='" . attribut_html($img_file) . "'$alt"
3476
-	. ($title ? ' title="' . attribut_html($title) . '"' : '')
3477
-	. ' ' . ltrim($atts)
3475
+	return "<img src='".attribut_html($img_file)."'$alt"
3476
+	. ($title ? ' title="'.attribut_html($title).'"' : '')
3477
+	. ' '.ltrim($atts)
3478 3478
 	. ' />';
3479 3479
 }
3480 3480
 
@@ -3488,10 +3488,10 @@  discard block
 block discarded – undo
3488 3488
  */
3489 3489
 function http_style_background($img, $att = '', $size = null) {
3490 3490
 	if ($size and is_numeric($size)) {
3491
-		$size = trim($size) . 'px';
3491
+		$size = trim($size).'px';
3492 3492
 	}
3493
-	return " style='background" .
3494
-		($att ? '' : '-image') . ': url("' . chemin_image($img) . '")' . ($att ? (' ' . $att) : '') . ';'
3493
+	return " style='background".
3494
+		($att ? '' : '-image').': url("'.chemin_image($img).'")'.($att ? (' '.$att) : '').';'
3495 3495
 		. ($size ? "background-size:{$size};" : '')
3496 3496
 		. "'";
3497 3497
 }
@@ -3606,7 +3606,7 @@  discard block
 block discarded – undo
3606 3606
 		$img = http_img_pack(
3607 3607
 			$img,
3608 3608
 			$alt,
3609
-			$class ? " class='" . attribut_html($class) . "'" : '',
3609
+			$class ? " class='".attribut_html($class)."'" : '',
3610 3610
 			'',
3611 3611
 			['chemin_image' => false, 'utiliser_suffixe_size' => false]
3612 3612
 		);
@@ -3691,7 +3691,7 @@  discard block
 block discarded – undo
3691 3691
 	$balise_svg_source = $balise_svg;
3692 3692
 
3693 3693
 	// entete XML à supprimer
3694
-	$svg = preg_replace(',^\s*<\?xml[^>]*\?' . '>,', '', $svg);
3694
+	$svg = preg_replace(',^\s*<\?xml[^>]*\?'.'>,', '', $svg);
3695 3695
 
3696 3696
 	// IE est toujours mon ami
3697 3697
 	$balise_svg = inserer_attribut($balise_svg, 'focusable', 'false');
@@ -3709,9 +3709,9 @@  discard block
 block discarded – undo
3709 3709
 	// regler le alt
3710 3710
 	if ($alt) {
3711 3711
 		$balise_svg = inserer_attribut($balise_svg, 'role', 'img');
3712
-		$id = 'img-svg-title-' . substr(md5("$img_file:$svg:$alt"), 0, 4);
3712
+		$id = 'img-svg-title-'.substr(md5("$img_file:$svg:$alt"), 0, 4);
3713 3713
 		$balise_svg = inserer_attribut($balise_svg, 'aria-labelledby', $id);
3714
-		$title = "<title id=\"$id\">" . entites_html($alt) . "</title>\n";
3714
+		$title = "<title id=\"$id\">".entites_html($alt)."</title>\n";
3715 3715
 		$balise_svg .= $title;
3716 3716
 	}
3717 3717
 	else {
@@ -3759,7 +3759,7 @@  discard block
 block discarded – undo
3759 3759
 	if (is_array($tableau)) {
3760 3760
 		foreach ($tableau as $k => $v) {
3761 3761
 			$res = recuperer_fond(
3762
-				'modeles/' . $modele,
3762
+				'modeles/'.$modele,
3763 3763
 				array_merge(['cle' => $k], (is_array($v) ? $v : ['valeur' => $v]))
3764 3764
 			);
3765 3765
 			$texte .= $res;
@@ -3944,7 +3944,7 @@  discard block
 block discarded – undo
3944 3944
 	}
3945 3945
 
3946 3946
 	$c = serialize($c);
3947
-	$cle = calculer_cle_action($form . $c);
3947
+	$cle = calculer_cle_action($form.$c);
3948 3948
 	$c = "$cle:$c";
3949 3949
 
3950 3950
 	// on ne stocke pas les contextes dans des fichiers en cache
@@ -4002,15 +4002,15 @@  discard block
 block discarded – undo
4002 4002
 	}
4003 4003
 	// toujours encoder l'url source dans le bloc ajax
4004 4004
 	$r = self();
4005
-	$r = ' data-origin="' . $r . '"';
4005
+	$r = ' data-origin="'.$r.'"';
4006 4006
 	$class = 'ajaxbloc';
4007 4007
 	if ($ajaxid and is_string($ajaxid)) {
4008 4008
 		// ajaxid est normalement conforme a un nom de classe css
4009 4009
 		// on ne verifie pas la conformite, mais on passe entites_html par dessus par precaution
4010
-		$class .= ' ajax-id-' . entites_html($ajaxid);
4010
+		$class .= ' ajax-id-'.entites_html($ajaxid);
4011 4011
 	}
4012 4012
 
4013
-	return "<div class='$class' " . "data-ajax-env='$env'$r>\n$emboite</div><!--ajaxbloc-->\n";
4013
+	return "<div class='$class' "."data-ajax-env='$env'$r>\n$emboite</div><!--ajaxbloc-->\n";
4014 4014
 }
4015 4015
 
4016 4016
 /**
@@ -4054,7 +4054,7 @@  discard block
 block discarded – undo
4054 4054
 		$cle = substr($c, 0, $p);
4055 4055
 		$c = substr($c, $p + 1);
4056 4056
 
4057
-		if ($cle == calculer_cle_action($form . $c)) {
4057
+		if ($cle == calculer_cle_action($form.$c)) {
4058 4058
 			$env = @unserialize($c);
4059 4059
 			return $env;
4060 4060
 		}
@@ -4175,13 +4175,13 @@  discard block
 block discarded – undo
4175 4175
 				}
4176 4176
 			}
4177 4177
 		}
4178
-		$att .= 'class="' . ($class ? attribut_html($class) . ' ' : '') . (defined('_LIEN_OU_EXPOSE_CLASS_ON') ? _LIEN_OU_EXPOSE_CLASS_ON : 'on') . '"';
4178
+		$att .= 'class="'.($class ? attribut_html($class).' ' : '').(defined('_LIEN_OU_EXPOSE_CLASS_ON') ? _LIEN_OU_EXPOSE_CLASS_ON : 'on').'"';
4179 4179
 	} else {
4180 4180
 		$bal = 'a';
4181 4181
 		$att = "href='$url'"
4182
-			. ($title ? " title='" . attribut_html($title) . "'" : '')
4183
-			. ($class ? " class='" . attribut_html($class) . "'" : '')
4184
-			. ($rel ? " rel='" . attribut_html($rel) . "'" : '')
4182
+			. ($title ? " title='".attribut_html($title)."'" : '')
4183
+			. ($class ? " class='".attribut_html($class)."'" : '')
4184
+			. ($rel ? " rel='".attribut_html($rel)."'" : '')
4185 4185
 			. $evt;
4186 4186
 	}
4187 4187
 	if ($libelle === null) {
@@ -4320,7 +4320,7 @@  discard block
 block discarded – undo
4320 4320
 
4321 4321
 	// Icône
4322 4322
 	$icone = http_img_pack($fond, $alt, "width='$size' height='$size'");
4323
-	$icone = '<span class="icone-image' . ($fonction ? " icone-fonction icone-fonction-$fonction" : '') . "\">$icone</span>";
4323
+	$icone = '<span class="icone-image'.($fonction ? " icone-fonction icone-fonction-$fonction" : '')."\">$icone</span>";
4324 4324
 
4325 4325
 	// Markup final
4326 4326
 	if ($type == 'lien') {
@@ -4595,20 +4595,20 @@  discard block
 block discarded – undo
4595 4595
 		$class_form = 'ajax';
4596 4596
 		$class = str_replace('ajax', '', $class);
4597 4597
 	}
4598
-	$class_btn = 'submit ' . trim($class);
4598
+	$class_btn = 'submit '.trim($class);
4599 4599
 
4600 4600
 	if ($confirm) {
4601
-		$confirm = 'confirm("' . attribut_html($confirm) . '")';
4601
+		$confirm = 'confirm("'.attribut_html($confirm).'")';
4602 4602
 		if ($callback) {
4603 4603
 			$callback = "$confirm?($callback):false";
4604 4604
 		} else {
4605 4605
 			$callback = $confirm;
4606 4606
 		}
4607 4607
 	}
4608
-	$onclick = $callback ? " onclick='return " . addcslashes($callback, "'") . "'" : '';
4608
+	$onclick = $callback ? " onclick='return ".addcslashes($callback, "'")."'" : '';
4609 4609
 	$title = $title ? " title='$title'" : '';
4610 4610
 
4611
-	return "<form class='bouton_action_post $class_form' method='post' action='$url'><div>" . form_hidden($url)
4611
+	return "<form class='bouton_action_post $class_form' method='post' action='$url'><div>".form_hidden($url)
4612 4612
 	. "<button type='submit' class='$class_btn'$title$onclick>$libelle</button></div></form>";
4613 4613
 }
4614 4614
 
@@ -4673,14 +4673,14 @@  discard block
 block discarded – undo
4673 4673
 		$champ_titre = '';
4674 4674
 		if ($demande_titre) {
4675 4675
 			// si pas de titre declare mais champ titre, il sera peuple par le select *
4676
-			$champ_titre = (!empty($desc['titre'])) ? ', ' . $desc['titre'] : '';
4676
+			$champ_titre = (!empty($desc['titre'])) ? ', '.$desc['titre'] : '';
4677 4677
 		}
4678 4678
 		include_spip('base/abstract_sql');
4679 4679
 		include_spip('base/connect_sql');
4680 4680
 		$objets[$type_objet][$id_objet] = sql_fetsel(
4681
-			'*' . $champ_titre,
4681
+			'*'.$champ_titre,
4682 4682
 			$desc['table_sql'],
4683
-			id_table_objet($type_objet) . ' = ' . intval($id_objet)
4683
+			id_table_objet($type_objet).' = '.intval($id_objet)
4684 4684
 		);
4685 4685
 
4686 4686
 		// Toujours noter la longueur d'introduction, même si pas demandé cette fois-ci
@@ -4773,8 +4773,7 @@  discard block
 block discarded – undo
4773 4773
 	if (isset($ligne_sql['chapo'])) {
4774 4774
 		$chapo = $ligne_sql['chapo'];
4775 4775
 		$texte = strlen($descriptif) ?
4776
-			'' :
4777
-			"$chapo \n\n $texte";
4776
+			'' : "$chapo \n\n $texte";
4778 4777
 	}
4779 4778
 
4780 4779
 	// Longueur en paramètre, sinon celle renseignée dans la description de l'objet, sinon valeur en dur
@@ -4849,7 +4848,7 @@  discard block
 block discarded – undo
4849 4848
 		return $texte;
4850 4849
 	}
4851 4850
 
4852
-	$traitement = str_replace('%s', "'" . texte_script($texte) . "'", $traitement);
4851
+	$traitement = str_replace('%s', "'".texte_script($texte)."'", $traitement);
4853 4852
 
4854 4853
 	// signaler qu'on est dans l'espace prive pour les filtres qui se servent de ce flag
4855 4854
 	if (test_espace_prive()) {
@@ -4888,7 +4887,7 @@  discard block
 block discarded – undo
4888 4887
 	}
4889 4888
 	$url = generer_objet_url($id_objet, $objet, '', '', null, '', $connect);
4890 4889
 
4891
-	return "<a href='$url' class='$objet'>" . couper($titre, $longueur) . '</a>';
4890
+	return "<a href='$url' class='$objet'>".couper($titre, $longueur).'</a>';
4892 4891
 }
4893 4892
 
4894 4893
 /**
@@ -4914,10 +4913,10 @@  discard block
 block discarded – undo
4914 4913
 function wrap($texte, $wrap) {
4915 4914
 	$balises = extraire_balises($wrap);
4916 4915
 	if (preg_match_all(",<([a-z]\w*)\b[^>]*>,UimsS", $wrap, $regs, PREG_PATTERN_ORDER)) {
4917
-		$texte = $wrap . $texte;
4916
+		$texte = $wrap.$texte;
4918 4917
 		$regs = array_reverse($regs[1]);
4919
-		$wrap = '</' . implode('></', $regs) . '>';
4920
-		$texte = $texte . $wrap;
4918
+		$wrap = '</'.implode('></', $regs).'>';
4919
+		$texte = $texte.$wrap;
4921 4920
 	}
4922 4921
 
4923 4922
 	return $texte;
@@ -4948,7 +4947,7 @@  discard block
 block discarded – undo
4948 4947
 
4949 4948
 	// caster $u en array si besoin
4950 4949
 	if (is_object($u)) {
4951
-		$u = (array)$u;
4950
+		$u = (array) $u;
4952 4951
 	}
4953 4952
 
4954 4953
 	if (is_array($u)) {
@@ -4970,7 +4969,7 @@  discard block
 block discarded – undo
4970 4969
 		// sinon on passe a la ligne et on indente
4971 4970
 		$i_str = str_pad('', $indent, ' ');
4972 4971
 		foreach ($u as $k => $v) {
4973
-			$out .= $join . $i_str . "$k: " . filtre_print_dist($v, $join, $indent + 2);
4972
+			$out .= $join.$i_str."$k: ".filtre_print_dist($v, $join, $indent + 2);
4974 4973
 		}
4975 4974
 
4976 4975
 		return $out;
@@ -5024,7 +5023,7 @@  discard block
 block discarded – undo
5024 5023
  * @return string
5025 5024
  */
5026 5025
 function objet_icone($objet, $taille = 24, $class = '') {
5027
-	$icone = objet_info($objet, 'icone_objet') . '-' . $taille . '.png';
5026
+	$icone = objet_info($objet, 'icone_objet').'-'.$taille.'.png';
5028 5027
 	$icone = chemin_image($icone);
5029 5028
 	$balise_img = charger_filtre('balise_img');
5030 5029
 
@@ -5050,7 +5049,7 @@  discard block
 block discarded – undo
5050 5049
  */
5051 5050
 function objet_T($objet, $chaine, $args = [], $options = []) {
5052 5051
 	$chaine = explode(':', $chaine);
5053
-	if ($t = _T($objet . ':' . end($chaine), $args, array_merge($options, ['force' => false]))) {
5052
+	if ($t = _T($objet.':'.end($chaine), $args, array_merge($options, ['force' => false]))) {
5054 5053
 		return $t;
5055 5054
 	}
5056 5055
 	$chaine = implode(':', $chaine);
@@ -5116,7 +5115,7 @@  discard block
 block discarded – undo
5116 5115
 	$cache = recuperer_fond($fond, $contexte, $options, $connect);
5117 5116
 
5118 5117
 	// calculer le nom de la css
5119
-	$dir_var = sous_repertoire(_DIR_VAR, 'cache-' . $extension);
5118
+	$dir_var = sous_repertoire(_DIR_VAR, 'cache-'.$extension);
5120 5119
 	$nom_safe = preg_replace(',\W,', '_', str_replace('.', '_', $fond));
5121 5120
 	$contexte_implicite = calculer_contexte_implicite();
5122 5121
 
@@ -5124,14 +5123,14 @@  discard block
 block discarded – undo
5124 5123
 	// mais on peut hasher selon le contenu a la demande, si plusieurs contextes produisent un meme contenu
5125 5124
 	// reduit la variabilite du nom et donc le nombre de css concatenees possibles in fine
5126 5125
 	if (isset($options['hash_on_content']) and $options['hash_on_content']) {
5127
-		$hash = md5($contexte_implicite['host'] . '::' . $cache);
5126
+		$hash = md5($contexte_implicite['host'].'::'.$cache);
5128 5127
 	}
5129 5128
 	else {
5130 5129
 		unset($contexte_implicite['notes']); // pas pertinent pour signaler un changeemnt de contenu pour des css/js
5131 5130
 		ksort($contexte);
5132
-		$hash = md5($fond . json_encode($contexte_implicite, JSON_THROW_ON_ERROR) . json_encode($contexte, JSON_THROW_ON_ERROR) . $connect);
5131
+		$hash = md5($fond.json_encode($contexte_implicite, JSON_THROW_ON_ERROR).json_encode($contexte, JSON_THROW_ON_ERROR).$connect);
5133 5132
 	}
5134
-	$filename = $dir_var . $extension . "dyn-$nom_safe-" . substr($hash, 0, 8) . ".$extension";
5133
+	$filename = $dir_var.$extension."dyn-$nom_safe-".substr($hash, 0, 8).".$extension";
5135 5134
 
5136 5135
 	// mettre a jour le fichier si il n'existe pas
5137 5136
 	// ou trop ancien
@@ -5139,8 +5138,8 @@  discard block
 block discarded – undo
5139 5138
 	// et recopie sur le fichier cible uniquement si il change
5140 5139
 	if (
5141 5140
 		!file_exists($filename)
5142
-		or !file_exists($filename . '.last')
5143
-		or (isset($cache['lastmodified']) and $cache['lastmodified'] and filemtime($filename . '.last') < $cache['lastmodified'])
5141
+		or !file_exists($filename.'.last')
5142
+		or (isset($cache['lastmodified']) and $cache['lastmodified'] and filemtime($filename.'.last') < $cache['lastmodified'])
5144 5143
 		or (defined('_VAR_MODE') and _VAR_MODE == 'recalcul')
5145 5144
 	) {
5146 5145
 		$contenu = $cache['texte'];
@@ -5164,10 +5163,10 @@  discard block
 block discarded – undo
5164 5163
 			}
5165 5164
 			// pas de date dans le commentaire car sinon ca invalide le md5 et force la maj
5166 5165
 			// mais on peut mettre un md5 du contenu, ce qui donne un aperu rapide si la feuille a change ou non
5167
-			$comment .= "}\n   md5:" . md5($contenu) . " */\n";
5166
+			$comment .= "}\n   md5:".md5($contenu)." */\n";
5168 5167
 		}
5169 5168
 		// et ecrire le fichier si il change
5170
-		ecrire_fichier_calcule_si_modifie($filename, $comment . $contenu, false, true);
5169
+		ecrire_fichier_calcule_si_modifie($filename, $comment.$contenu, false, true);
5171 5170
 	}
5172 5171
 
5173 5172
 	return timestamp($filename);
@@ -5400,7 +5399,7 @@  discard block
 block discarded – undo
5400 5399
 	if ($e > 0 and strlen($mid) > 8) {
5401 5400
 		$mid = '***...***';
5402 5401
 	}
5403
-	return substr($passe, 0, $e) . $mid . ($e > 0 ? substr($passe, -$e) : '');
5402
+	return substr($passe, 0, $e).$mid.($e > 0 ? substr($passe, -$e) : '');
5404 5403
 }
5405 5404
 
5406 5405
 
@@ -5462,7 +5461,7 @@  discard block
 block discarded – undo
5462 5461
 		case 'id':
5463 5462
 		case 'anchor':
5464 5463
 			if (preg_match(',^\d,', $texte)) {
5465
-				$texte = substr($type, 0, 1) . $texte;
5464
+				$texte = substr($type, 0, 1).$texte;
5466 5465
 			}
5467 5466
 	}
5468 5467
 
@@ -5472,9 +5471,9 @@  discard block
 block discarded – undo
5472 5471
 
5473 5472
 	if (strlen($texte) < $longueur_mini and $longueur_mini < $longueur_maxi) {
5474 5473
 		if (preg_match(',^\d,', $texte)) {
5475
-			$texte = ($type ? substr($type, 0, 1) : 's') . $texte;
5474
+			$texte = ($type ? substr($type, 0, 1) : 's').$texte;
5476 5475
 		}
5477
-		$texte .= $separateur . md5($original);
5476
+		$texte .= $separateur.md5($original);
5478 5477
 		$texte = substr($texte, 0, $longueur_mini);
5479 5478
 	}
5480 5479
 
Please login to merge, or discard this patch.