Completed
Push — master ( 0a018a...5e13ef )
by cam
01:36
created
ecrire/inc/presentation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 	];
45 45
 	$style_titre_mapping = ['couleur' => 'topper', 'trait-couleur' => 'section'];
46 46
 	$c = $style_mapping[$style] ?? 'simple';
47
-	$class = $c . ($class ? " $class" : '');
47
+	$class = $c.($class ? " $class" : '');
48 48
 	if (!$padding) {
49
-		$class .= ($class ? ' ' : '') . 'no-padding';
49
+		$class .= ($class ? ' ' : '').'no-padding';
50 50
 	}
51 51
 
52 52
 	//($id?"id='$id' ":"")
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
 		if ($fonction) {
62 62
 			// 2 images pour composer l'icone : le fond (article) en background,
63 63
 			// la fonction (new) en image
64
-			$icone = http_img_pack($fonction, '', "class='cadre-icone' width='$size' height='$size'\n" .
64
+			$icone = http_img_pack($fonction, '', "class='cadre-icone' width='$size' height='$size'\n".
65 65
 				http_style_background($fond, 'no-repeat center center', $size));
66 66
 		} else {
67 67
 			$icone = http_img_pack($fond, '', "class='cadre-icone' width='$size' height='$size'");
68 68
 		}
69
-		$titre = $icone . $titre;
69
+		$titre = $icone.$titre;
70 70
 	}
71 71
 
72 72
 	return boite_ouvrir($titre, $class, $style_titre_mapping[$style] ?? '', $id);
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
 	$titre,
180 180
 	$ze_logo = ''
181 181
 ) {
182
-	return "<h1 class = 'grostitre'>" . $ze_logo . ' ' . typo($titre) . "</h1>\n";
182
+	return "<h1 class = 'grostitre'>".$ze_logo.' '.typo($titre)."</h1>\n";
183 183
 }
184 184
 
185 185
 // La boite des raccourcis
186 186
 // Se place a droite si l'ecran est en mode panoramique.
187 187
 function bloc_des_raccourcis($bloc) {
188 188
 	return creer_colonne_droite()
189
-	. boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis') . $bloc . boite_fermer();
189
+	. boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis').$bloc.boite_fermer();
190 190
 }
191 191
 
192 192
 //
Please login to merge, or discard this patch.
ecrire/inc/filtres.php 1 patch
Spacing   +129 added lines, -130 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;
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	// affichage "GIT [master: abcdef]"
235 235
 	$commit = $desc['commit_short'] ?? $desc['commit'];
236 236
 	if ($desc['branch']) {
237
-		$commit = $desc['branch'] . ': ' . $commit;
237
+		$commit = $desc['branch'].': '.$commit;
238 238
 	}
239 239
 	return "{$desc['vcs']} [$commit]";
240 240
 }
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
 	}
254 254
 
255 255
 	// version installee par GIT
256
-	if (lire_fichier($dir . '/.git/HEAD', $c)) {
256
+	if (lire_fichier($dir.'/.git/HEAD', $c)) {
257 257
 		$currentHead = trim(substr($c, 4));
258
-		if (lire_fichier($dir . '/.git/' . $currentHead, $hash)) {
258
+		if (lire_fichier($dir.'/.git/'.$currentHead, $hash)) {
259 259
 			return [
260 260
 				'vcs' => 'GIT',
261 261
 				'branch' => basename($currentHead),
@@ -282,8 +282,8 @@  discard block
 block discarded – undo
282 282
 		$dir = '.';
283 283
 	}
284 284
 	// version installee par SVN
285
-	if (file_exists($dir . '/.svn/wc.db') && class_exists(\SQLite3::class)) {
286
-		$db = new SQLite3($dir . '/.svn/wc.db');
285
+	if (file_exists($dir.'/.svn/wc.db') && class_exists(\SQLite3::class)) {
286
+		$db = new SQLite3($dir.'/.svn/wc.db');
287 287
 		$result = $db->query('SELECT changed_revision FROM nodes WHERE local_relpath = "" LIMIT 1');
288 288
 		if ($result) {
289 289
 			$row = $result->fetchArray();
@@ -301,12 +301,12 @@  discard block
 block discarded – undo
301 301
 
302 302
 // La matrice est necessaire pour ne filtrer _que_ des fonctions definies dans filtres_images
303 303
 // et laisser passer les fonctions personnelles baptisees image_...
304
-$GLOBALS['spip_matrice']['image_graver'] = true;//'inc/filtres_images_mini.php';
305
-$GLOBALS['spip_matrice']['image_select'] = true;//'inc/filtres_images_mini.php';
306
-$GLOBALS['spip_matrice']['image_reduire'] = true;//'inc/filtres_images_mini.php';
307
-$GLOBALS['spip_matrice']['image_reduire_par'] = true;//'inc/filtres_images_mini.php';
308
-$GLOBALS['spip_matrice']['image_passe_partout'] = true;//'inc/filtres_images_mini.php';
309
-$GLOBALS['spip_matrice']['image_recadre_avec_fallback'] = true;//'inc/filtres_images_mini.php';
304
+$GLOBALS['spip_matrice']['image_graver'] = true; //'inc/filtres_images_mini.php';
305
+$GLOBALS['spip_matrice']['image_select'] = true; //'inc/filtres_images_mini.php';
306
+$GLOBALS['spip_matrice']['image_reduire'] = true; //'inc/filtres_images_mini.php';
307
+$GLOBALS['spip_matrice']['image_reduire_par'] = true; //'inc/filtres_images_mini.php';
308
+$GLOBALS['spip_matrice']['image_passe_partout'] = true; //'inc/filtres_images_mini.php';
309
+$GLOBALS['spip_matrice']['image_recadre_avec_fallback'] = true; //'inc/filtres_images_mini.php';
310 310
 
311 311
 $GLOBALS['spip_matrice']['couleur_html_to_hex'] = 'inc/filtres_images_mini.php';
312 312
 $GLOBALS['spip_matrice']['couleur_hex_to_hsl'] = 'inc/filtres_images_mini.php';
@@ -465,8 +465,8 @@  discard block
 block discarded – undo
465 465
  */
466 466
 function filtre_debug($val, $key = null) {
467 467
 	$debug = (
468
-		is_null($key) ? '' : (var_export($key, true) . ' = ')
469
-		) . var_export($val, true);
468
+		is_null($key) ? '' : (var_export($key, true).' = ')
469
+		).var_export($val, true);
470 470
 
471 471
 	include_spip('inc/autoriser');
472 472
 	if (autoriser('webmestre')) {
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 		$is_file = false;
523 523
 	}
524 524
 	if ($is_file) {
525
-		$is_local_file = function ($path) {
525
+		$is_local_file = function($path) {
526 526
 			if (strpos($path, '?') !== false) {
527 527
 				$path = supprimer_timestamp($path);
528 528
 				// remove ?24px added by find_in_theme on .svg files
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 					if ($mouseover = extraire_attribut($reduit, 'onmouseover')) {
572 572
 						if (preg_match(",this[.]src=['\"]([^'\"]+)['\"],ims", $mouseover, $match)) {
573 573
 							$srcover = $match[1];
574
-							$srcover_filter = $filtre("<img src='" . $match[1] . "' />", ...$args);
574
+							$srcover_filter = $filtre("<img src='".$match[1]."' />", ...$args);
575 575
 							$srcover_filter = extraire_attribut($srcover_filter, 'src');
576 576
 							$reduit = str_replace($srcover, $srcover_filter, $reduit);
577 577
 						}
@@ -972,7 +972,7 @@  discard block
 block discarded – undo
972 972
 	// " -> &quot; et tout ce genre de choses
973 973
 	$u = $GLOBALS['meta']['pcre_u'];
974 974
 	$texte = str_replace('&nbsp;', ' ', $texte);
975
-	$texte = preg_replace('/\s{2,}/S' . $u, ' ', $texte);
975
+	$texte = preg_replace('/\s{2,}/S'.$u, ' ', $texte);
976 976
 	// ne pas echapper les sinqle quotes car certains outils de syndication gerent mal
977 977
 	$texte = entites_html($texte, false, false);
978 978
 	// mais bien echapper les double quotes !
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
  **/
1033 1033
 function supprimer_numero($texte) {
1034 1034
 	return preg_replace(
1035
-		',^[[:space:]]*([0-9]+)([.)]|' . chr(194) . '?' . chr(176) . ')[[:space:]]+,S',
1035
+		',^[[:space:]]*([0-9]+)([.)]|'.chr(194).'?'.chr(176).')[[:space:]]+,S',
1036 1036
 		'',
1037 1037
 		$texte
1038 1038
 	);
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
 function recuperer_numero($texte) {
1061 1061
 	if (
1062 1062
 		preg_match(
1063
-			',^[[:space:]]*([0-9]+)([.)]|' . chr(194) . '?' . chr(176) . ')[[:space:]]+,S',
1063
+			',^[[:space:]]*([0-9]+)([.)]|'.chr(194).'?'.chr(176).')[[:space:]]+,S',
1064 1064
 			$texte,
1065 1065
 			$regs
1066 1066
 		)
@@ -1151,8 +1151,8 @@  discard block
 block discarded – undo
1151 1151
  **/
1152 1152
 function textebrut($texte) {
1153 1153
 	$u = $GLOBALS['meta']['pcre_u'];
1154
-	$texte = preg_replace('/\s+/S' . $u, ' ', $texte);
1155
-	$texte = preg_replace('/<(p|br)( [^>]*)?' . '>/iS', "\n\n", $texte);
1154
+	$texte = preg_replace('/\s+/S'.$u, ' ', $texte);
1155
+	$texte = preg_replace('/<(p|br)( [^>]*)?'.'>/iS', "\n\n", $texte);
1156 1156
 	$texte = preg_replace("/^\n+/", '', $texte);
1157 1157
 	$texte = preg_replace("/\n+$/", '', $texte);
1158 1158
 	$texte = preg_replace("/\n +/", "\n", $texte);
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
 		)
1187 1187
 	) {
1188 1188
 		foreach ($liens[0] as $a) {
1189
-			$rel = 'noopener noreferrer ' . extraire_attribut($a, 'rel');
1189
+			$rel = 'noopener noreferrer '.extraire_attribut($a, 'rel');
1190 1190
 			$ablank = inserer_attribut($a, 'rel', $rel);
1191 1191
 			$ablank = inserer_attribut($ablank, 'target', '_blank');
1192 1192
 			$texte = str_replace($a, $ablank, $texte);
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
 		foreach ($regs[0] as $a) {
1212 1212
 			$rel = extraire_attribut($a, 'rel') ?? '';
1213 1213
 			if (strpos($rel, 'nofollow') === false) {
1214
-				$rel = 'nofollow' . ($rel ? " $rel" : '');
1214
+				$rel = 'nofollow'.($rel ? " $rel" : '');
1215 1215
 				$anofollow = inserer_attribut($a, 'rel', $rel);
1216 1216
 				$texte = str_replace($a, $anofollow, $texte);
1217 1217
 			}
@@ -1240,7 +1240,7 @@  discard block
 block discarded – undo
1240 1240
 	$u = $GLOBALS['meta']['pcre_u'];
1241 1241
 	$texte = preg_replace('@</p>@iS', "\n", $texte);
1242 1242
 	$texte = preg_replace("@<p\b.*>@UiS", '<br />', $texte);
1243
-	$texte = preg_replace('@^\s*<br />@S' . $u, '', $texte);
1243
+	$texte = preg_replace('@^\s*<br />@S'.$u, '', $texte);
1244 1244
 
1245 1245
 	return $texte;
1246 1246
 }
@@ -1271,7 +1271,7 @@  discard block
 block discarded – undo
1271 1271
 		return $texte;
1272 1272
 	}
1273 1273
 	include_spip('inc/texte');
1274
-	$tag = preg_match(',</?(' . _BALISES_BLOCS . ')[>[:space:]],iS', $texte) ?
1274
+	$tag = preg_match(',</?('._BALISES_BLOCS.')[>[:space:]],iS', $texte) ?
1275 1275
 		'div' : 'span';
1276 1276
 
1277 1277
 	return "<$tag style='word-wrap:break-word;'>$texte</$tag>";
@@ -1383,7 +1383,7 @@  discard block
 block discarded – undo
1383 1383
 	}
1384 1384
 	$u = $GLOBALS['meta']['pcre_u'];
1385 1385
 	if ($textebrut) {
1386
-		$texte = preg_replace([",\n,", ',\s(?=\s),msS' . $u], [' ', ''], textebrut($texte));
1386
+		$texte = preg_replace([",\n,", ',\s(?=\s),msS'.$u], [' ', ''], textebrut($texte));
1387 1387
 	}
1388 1388
 	$texte = texte_backend($texte);
1389 1389
 	$texte = str_replace(["'", '"'], ['&#039;', '&#034;'], $texte);
@@ -1418,7 +1418,7 @@  discard block
 block discarded – undo
1418 1418
 	# un message pour abs_url
1419 1419
 	$GLOBALS['mode_abs_url'] = 'url';
1420 1420
 	$url = trim($url);
1421
-	$r = ',^(?:' . _PROTOCOLES_STD . '):?/?/?$,iS';
1421
+	$r = ',^(?:'._PROTOCOLES_STD.'):?/?/?$,iS';
1422 1422
 
1423 1423
 	return preg_match($r, $url) ? '' : ($entites ? entites_html($url) : $url);
1424 1424
 }
@@ -1618,14 +1618,14 @@  discard block
 block discarded – undo
1618 1618
 	if (strpos($texte, '<') !== false) {
1619 1619
 		include_spip('inc/lien');
1620 1620
 		if (defined('_PREG_MODELE')) {
1621
-			$preg_modeles = '@' . _PREG_MODELE . '@imsS';
1621
+			$preg_modeles = '@'._PREG_MODELE.'@imsS';
1622 1622
 			$texte = echappe_html($texte, '', true, $preg_modeles);
1623 1623
 		}
1624 1624
 	}
1625 1625
 
1626 1626
 	$debut = '';
1627 1627
 	$suite = $texte;
1628
-	while ($t = strpos('-' . $suite, "\n", 1)) {
1628
+	while ($t = strpos('-'.$suite, "\n", 1)) {
1629 1629
 		$debut .= substr($suite, 0, $t - 1);
1630 1630
 		$suite = substr($suite, $t);
1631 1631
 		$car = substr($suite, 0, 1);
@@ -1643,11 +1643,11 @@  discard block
 block discarded – undo
1643 1643
 			$suite = substr($suite, strlen($regs[0]));
1644 1644
 		}
1645 1645
 	}
1646
-	$texte = $debut . $suite;
1646
+	$texte = $debut.$suite;
1647 1647
 
1648 1648
 	$texte = echappe_retour($texte);
1649 1649
 
1650
-	return $texte . $fin;
1650
+	return $texte.$fin;
1651 1651
 }
1652 1652
 
1653 1653
 
@@ -1709,7 +1709,7 @@  discard block
 block discarded – undo
1709 1709
 		}
1710 1710
 
1711 1711
 		foreach ($regs as $reg) {
1712
-			$cle = ($reg[1] ? $reg[1] . ':' : '') . $reg[2];
1712
+			$cle = ($reg[1] ? $reg[1].':' : '').$reg[2];
1713 1713
 			$desc = $traduire($cle, $lang, true);
1714 1714
 			$l = $desc->langue;
1715 1715
 			// si pas de traduction, on laissera l'écriture de l'idiome entier dans le texte.
@@ -1823,9 +1823,9 @@  discard block
 block discarded – undo
1823 1823
 					// il ne faut pas echapper en div si propre produit un seul paragraphe
1824 1824
 					include_spip('inc/texte');
1825 1825
 					$trad_propre = preg_replace(',(^<p[^>]*>|</p>$),Uims', '', propre($trad));
1826
-					$mode = preg_match(',</?(' . _BALISES_BLOCS . ')[>[:space:]],iS', $trad_propre) ? 'div' : 'span';
1826
+					$mode = preg_match(',</?('._BALISES_BLOCS.')[>[:space:]],iS', $trad_propre) ? 'div' : 'span';
1827 1827
 					if ($mode === 'div') {
1828
-						$trad = rtrim($trad) . "\n\n";
1828
+						$trad = rtrim($trad)."\n\n";
1829 1829
 					}
1830 1830
 					$trad = code_echappement($trad, 'multi', false, $mode);
1831 1831
 					$trad = str_replace("'", '"', inserer_attribut($trad, 'lang', $l));
@@ -2025,7 +2025,7 @@  discard block
 block discarded – undo
2025 2025
 	if (is_array($balise)) {
2026 2026
 		array_walk(
2027 2027
 			$balise,
2028
-			function (&$a, $key, $t) {
2028
+			function(&$a, $key, $t) {
2029 2029
 				$a = extraire_attribut($a, $t);
2030 2030
 			},
2031 2031
 			$attribut
@@ -2122,14 +2122,14 @@  discard block
 block discarded – undo
2122 2122
 
2123 2123
 	if ($old !== null) {
2124 2124
 		// Remplacer l'ancien attribut du meme nom
2125
-		$balise = $r[1] . $insert . $r[5];
2125
+		$balise = $r[1].$insert.$r[5];
2126 2126
 	} else {
2127 2127
 		// preferer une balise " />" (comme <img />)
2128 2128
 		if (preg_match(',/>,', $balise)) {
2129
-			$balise = preg_replace(',\s?/>,S', $insert . ' />', $balise, 1);
2129
+			$balise = preg_replace(',\s?/>,S', $insert.' />', $balise, 1);
2130 2130
 		} // sinon une balise <a ...> ... </a>
2131 2131
 		else {
2132
-			$balise = preg_replace(',\s?>,S', $insert . '>', $balise, 1);
2132
+			$balise = preg_replace(',\s?>,S', $insert.'>', $balise, 1);
2133 2133
 		}
2134 2134
 	}
2135 2135
 
@@ -2184,7 +2184,7 @@  discard block
 block discarded – undo
2184 2184
 		if (
2185 2185
 			$class_courante
2186 2186
 			and strpos($class_courante, (string) $c) !== false
2187
-			and preg_match('/(^|\s)' . preg_quote($c) . '($|\s)/', $class_courante)
2187
+			and preg_match('/(^|\s)'.preg_quote($c).'($|\s)/', $class_courante)
2188 2188
 		) {
2189 2189
 			$is_class_presente = true;
2190 2190
 		}
@@ -2192,12 +2192,12 @@  discard block
 block discarded – undo
2192 2192
 			in_array($operation, ['ajouter', 'commuter'])
2193 2193
 			and !$is_class_presente
2194 2194
 		) {
2195
-			$class_new = ltrim(rtrim($class_new ?? '') . ' ' . $c);
2195
+			$class_new = ltrim(rtrim($class_new ?? '').' '.$c);
2196 2196
 		} elseif (
2197 2197
 			in_array($operation, ['supprimer', 'commuter'])
2198 2198
 			and $is_class_presente
2199 2199
 		) {
2200
-			$class_new = trim(preg_replace('/(^|\s)' . preg_quote($c) . '($|\s)/', "\\1", $class_new));
2200
+			$class_new = trim(preg_replace('/(^|\s)'.preg_quote($c).'($|\s)/', "\\1", $class_new));
2201 2201
 		}
2202 2202
 	}
2203 2203
 
@@ -2260,7 +2260,7 @@  discard block
 block discarded – undo
2260 2260
 // Quelques fonctions de calcul arithmetique
2261 2261
 //
2262 2262
 function floatstr($a) {
2263
- return str_replace(',', '.', (string)floatval($a));
2263
+ return str_replace(',', '.', (string) floatval($a));
2264 2264
 }
2265 2265
 function strize($f, $a, $b) {
2266 2266
  return floatstr($f(floatstr($a), floatstr($b)));
@@ -2396,13 +2396,13 @@  discard block
 block discarded – undo
2396 2396
 	if (!defined('_TAGS_NOM_AUTEUR')) {
2397 2397
 		define('_TAGS_NOM_AUTEUR', '');
2398 2398
 	}
2399
-	$tags_acceptes = array_unique(explode(',', 'multi,' . _TAGS_NOM_AUTEUR));
2399
+	$tags_acceptes = array_unique(explode(',', 'multi,'._TAGS_NOM_AUTEUR));
2400 2400
 	foreach ($tags_acceptes as $tag) {
2401 2401
 		if (strlen($tag)) {
2402
-			$remp1[] = '<' . trim($tag) . '>';
2403
-			$remp1[] = '</' . trim($tag) . '>';
2404
-			$remp2[] = '\x60' . trim($tag) . '\x61';
2405
-			$remp2[] = '\x60/' . trim($tag) . '\x61';
2402
+			$remp1[] = '<'.trim($tag).'>';
2403
+			$remp1[] = '</'.trim($tag).'>';
2404
+			$remp2[] = '\x60'.trim($tag).'\x61';
2405
+			$remp2[] = '\x60/'.trim($tag).'\x61';
2406 2406
 		}
2407 2407
 	}
2408 2408
 	$v_nom = str_replace($remp2, $remp1, supprimer_tags(str_replace($remp1, $remp2, $nom)));
@@ -2456,7 +2456,7 @@  discard block
 block discarded – undo
2456 2456
 				. http_img_pack(
2457 2457
 					'attachment-16.png',
2458 2458
 					$t,
2459
-					'title="' . attribut_html($t) . '"'
2459
+					'title="'.attribut_html($t).'"'
2460 2460
 				)
2461 2461
 				. '</a>',
2462 2462
 				$tag
@@ -2520,10 +2520,10 @@  discard block
 block discarded – undo
2520 2520
 	$fichier = basename($url);
2521 2521
 
2522 2522
 	return '<a rel="enclosure"'
2523
-	. ($url ? ' href="' . spip_htmlspecialchars($url) . '"' : '')
2524
-	. ($type ? ' type="' . spip_htmlspecialchars($type) . '"' : '')
2525
-	. ($length ? ' title="' . spip_htmlspecialchars($length) . '"' : '')
2526
-	. '>' . $fichier . '</a>';
2523
+	. ($url ? ' href="'.spip_htmlspecialchars($url).'"' : '')
2524
+	. ($type ? ' type="'.spip_htmlspecialchars($type).'"' : '')
2525
+	. ($length ? ' title="'.spip_htmlspecialchars($length).'"' : '')
2526
+	. '>'.$fichier.'</a>';
2527 2527
 }
2528 2528
 
2529 2529
 /**
@@ -2551,9 +2551,9 @@  discard block
 block discarded – undo
2551 2551
 			} # vieux data
2552 2552
 			$fichier = basename($url);
2553 2553
 			$enclosures[] = '<enclosure'
2554
-				. ($url ? ' url="' . spip_htmlspecialchars($url) . '"' : '')
2555
-				. ($type ? ' type="' . spip_htmlspecialchars($type) . '"' : '')
2556
-				. ($length ? ' length="' . $length . '"' : '')
2554
+				. ($url ? ' url="'.spip_htmlspecialchars($url).'"' : '')
2555
+				. ($type ? ' type="'.spip_htmlspecialchars($type).'"' : '')
2556
+				. ($length ? ' length="'.$length.'"' : '')
2557 2557
 				. ' />';
2558 2558
 		}
2559 2559
 	}
@@ -2579,7 +2579,7 @@  discard block
 block discarded – undo
2579 2579
 		if (extraire_attribut($e, 'rel') == 'tag') {
2580 2580
 			$subjects .= '<dc:subject>'
2581 2581
 				. texte_backend(textebrut($e))
2582
-				. '</dc:subject>' . "\n";
2582
+				. '</dc:subject>'."\n";
2583 2583
 		}
2584 2584
 	}
2585 2585
 
@@ -2615,7 +2615,7 @@  discard block
 block discarded – undo
2615 2615
 	if (is_array($texte)) {
2616 2616
 		array_walk(
2617 2617
 			$texte,
2618
-			function (&$a, $key, $t) {
2618
+			function(&$a, $key, $t) {
2619 2619
 				$a = extraire_balise($a, $t);
2620 2620
 			},
2621 2621
 			$tag
@@ -2663,7 +2663,7 @@  discard block
 block discarded – undo
2663 2663
 	if (is_array($texte)) {
2664 2664
 		array_walk(
2665 2665
 			$texte,
2666
-			function (&$a, $key, $t) {
2666
+			function(&$a, $key, $t) {
2667 2667
 				$a = extraire_balises($a, $t);
2668 2668
 			},
2669 2669
 			$tag
@@ -2796,7 +2796,7 @@  discard block
 block discarded – undo
2796 2796
 		if ($fond != '404') {
2797 2797
 			$contexte = array_shift($p);
2798 2798
 			$contexte['page'] = $fond;
2799
-			$action = preg_replace('/([?]' . preg_quote($fond) . '[^&=]*[0-9]+)(&|$)/', '?&', $action);
2799
+			$action = preg_replace('/([?]'.preg_quote($fond).'[^&=]*[0-9]+)(&|$)/', '?&', $action);
2800 2800
 		}
2801 2801
 	}
2802 2802
 	// defaire ce qu'a injecte urls_decoder_url : a revoir en modifiant la signature de urls_decoder_url
@@ -2851,9 +2851,9 @@  discard block
 block discarded – undo
2851 2851
 			. '"'
2852 2852
 			. (is_null($val)
2853 2853
 				? ''
2854
-				: ' value="' . entites_html($val) . '"'
2854
+				: ' value="'.entites_html($val).'"'
2855 2855
 			)
2856
-			. ' type="hidden"' . "\n/>";
2856
+			. ' type="hidden"'."\n/>";
2857 2857
 	}
2858 2858
 
2859 2859
 	return join('', $hidden);
@@ -2963,7 +2963,7 @@  discard block
 block discarded – undo
2963 2963
 
2964 2964
 	return preg_replace_callback(
2965 2965
 		",url\s*\(\s*['\"]?([^'\"/#\s][^:]*)['\"]?\s*\),Uims",
2966
-		fn($x) => "url('" . suivre_lien($path, $x[1]) . "')",
2966
+		fn($x) => "url('".suivre_lien($path, $x[1])."')",
2967 2967
 		$contenu
2968 2968
 	);
2969 2969
 }
@@ -3024,14 +3024,14 @@  discard block
 block discarded – undo
3024 3024
 	) {
3025 3025
 		$distant = true;
3026 3026
 		$cssf = parse_url($css);
3027
-		$cssf = $cssf['path'] . ($cssf['query'] ? '?' . $cssf['query'] : '');
3027
+		$cssf = $cssf['path'].($cssf['query'] ? '?'.$cssf['query'] : '');
3028 3028
 		$cssf = preg_replace(',[?:&=],', '_', $cssf);
3029 3029
 	} else {
3030 3030
 		$distant = false;
3031 3031
 		$cssf = $css;
3032 3032
 		// 1. regarder d'abord si un fichier avec la bonne direction n'est pas aussi
3033 3033
 		//propose (rien a faire dans ce cas)
3034
-		$f = preg_replace(',(_rtl)?\.css$,i', '_' . $ndir . '.css', $css);
3034
+		$f = preg_replace(',(_rtl)?\.css$,i', '_'.$ndir.'.css', $css);
3035 3035
 		if (@file_exists($f)) {
3036 3036
 			return $f;
3037 3037
 		}
@@ -3041,7 +3041,7 @@  discard block
 block discarded – undo
3041 3041
 	$dir_var = sous_repertoire(_DIR_VAR, 'cache-css');
3042 3042
 	$f = $dir_var
3043 3043
 		. preg_replace(',.*/(.*?)(_rtl)?\.css,', '\1', $cssf)
3044
-		. '.' . substr(md5($cssf), 0, 4) . '_' . $ndir . '.css';
3044
+		. '.'.substr(md5($cssf), 0, 4).'_'.$ndir.'.css';
3045 3045
 
3046 3046
 	// la css peut etre distante (url absolue !)
3047 3047
 	if ($distant) {
@@ -3087,8 +3087,8 @@  discard block
 block discarded – undo
3087 3087
 		} // si la css_direction commence par $dir_var on la fait passer pour une absolue
3088 3088
 		elseif (substr($css_direction, 0, strlen($dir_var)) == $dir_var) {
3089 3089
 			$css_direction = substr($css_direction, strlen($dir_var));
3090
-			$src_faux_abs['/@@@@@@/' . $css_direction] = $css_direction;
3091
-			$css_direction = '/@@@@@@/' . $css_direction;
3090
+			$src_faux_abs['/@@@@@@/'.$css_direction] = $css_direction;
3091
+			$css_direction = '/@@@@@@/'.$css_direction;
3092 3092
 		}
3093 3093
 		$src[] = $regs[0][$k];
3094 3094
 		$src_direction_css[] = str_replace($import_css, $css_direction, $regs[0][$k]);
@@ -3137,7 +3137,7 @@  discard block
 block discarded – undo
3137 3137
 
3138 3138
 	$f = basename($css, '.css');
3139 3139
 	$f = sous_repertoire(_DIR_VAR, 'cache-css')
3140
-		. preg_replace(',(.*?)(_rtl|_ltr)?$,', "\\1-urlabs-" . substr(md5("$css-urlabs"), 0, 4) . "\\2", $f)
3140
+		. preg_replace(',(.*?)(_rtl|_ltr)?$,', "\\1-urlabs-".substr(md5("$css-urlabs"), 0, 4)."\\2", $f)
3141 3141
 		. '.css';
3142 3142
 
3143 3143
 	if ((@filemtime($f) > @filemtime($css)) and (_VAR_MODE != 'recalcul')) {
@@ -3147,7 +3147,7 @@  discard block
 block discarded – undo
3147 3147
 	if ($url_absolue_css == $css) {
3148 3148
 		if (
3149 3149
 			strncmp($GLOBALS['meta']['adresse_site'], $css, $l = strlen($GLOBALS['meta']['adresse_site'])) != 0
3150
-			or !lire_fichier(_DIR_RACINE . substr($css, $l), $contenu)
3150
+			or !lire_fichier(_DIR_RACINE.substr($css, $l), $contenu)
3151 3151
 		) {
3152 3152
 			include_spip('inc/distant');
3153 3153
 			$contenu = recuperer_url($css);
@@ -3259,7 +3259,7 @@  discard block
 block discarded – undo
3259 3259
 	$expression = str_replace('\/', '/', $expression);
3260 3260
 	$expression = str_replace('/', '\/', $expression);
3261 3261
 
3262
-	if (preg_match('/' . $expression . '/' . $modif, $texte ?? '', $r)) {
3262
+	if (preg_match('/'.$expression.'/'.$modif, $texte ?? '', $r)) {
3263 3263
 		if (isset($r[$capte])) {
3264 3264
 			return $r[$capte];
3265 3265
 		} else {
@@ -3297,7 +3297,7 @@  discard block
 block discarded – undo
3297 3297
 	$expression = str_replace('\/', '/', $expression);
3298 3298
 	$expression = str_replace('/', '\/', $expression);
3299 3299
 
3300
-	return preg_replace('/' . $expression . '/' . $modif, $replace, $texte);
3300
+	return preg_replace('/'.$expression.'/'.$modif, $replace, $texte);
3301 3301
 }
3302 3302
 
3303 3303
 
@@ -3316,7 +3316,7 @@  discard block
 block discarded – undo
3316 3316
 function traiter_doublons_documents(&$doublons, $letexte) {
3317 3317
 
3318 3318
 	// Verifier dans le texte & les notes (pas beau, helas)
3319
-	$t = $letexte . $GLOBALS['les_notes'];
3319
+	$t = $letexte.$GLOBALS['les_notes'];
3320 3320
 
3321 3321
 	if (
3322 3322
 		strstr($t, 'spip_document_') // evite le preg_match_all si inutile
@@ -3330,7 +3330,7 @@  discard block
 block discarded – undo
3330 3330
 		if (!isset($doublons['documents'])) {
3331 3331
 			$doublons['documents'] = '';
3332 3332
 		}
3333
-		$doublons['documents'] .= ',' . join(',', $matches[1]);
3333
+		$doublons['documents'] .= ','.join(',', $matches[1]);
3334 3334
 	}
3335 3335
 
3336 3336
 	return $letexte;
@@ -3387,7 +3387,7 @@  discard block
 block discarded – undo
3387 3387
 	if ($env) {
3388 3388
 		foreach ($env as $i => $j) {
3389 3389
 			if (is_string($j) and !in_array($i, $ignore_params)) {
3390
-				$texte .= "<param name='" . attribut_html($i) . "'\n\tvalue='" . attribut_html($j) . "' />";
3390
+				$texte .= "<param name='".attribut_html($i)."'\n\tvalue='".attribut_html($j)."' />";
3391 3391
 			}
3392 3392
 		}
3393 3393
 	}
@@ -3426,7 +3426,7 @@  discard block
 block discarded – undo
3426 3426
 	if ($env) {
3427 3427
 		foreach ($env as $i => $j) {
3428 3428
 			if (is_string($j) and !in_array($i, $ignore_params)) {
3429
-				$texte .= attribut_html($i) . "='" . attribut_html($j) . "' ";
3429
+				$texte .= attribut_html($i)."='".attribut_html($j)."' ";
3430 3430
 			}
3431 3431
 		}
3432 3432
 	}
@@ -3500,10 +3500,10 @@  discard block
 block discarded – undo
3500 3500
 	// si il y a un .svg a la bonne taille (-16.svg) a cote, on l'utilise en remplacement du -16.png
3501 3501
 	if (
3502 3502
 		preg_match(',-(\d+)[.](png|gif|svg)$,', $img_file, $m)
3503
-		and $variante_svg_generique = substr($img_file, 0, -strlen($m[0])) . '-xx.svg'
3503
+		and $variante_svg_generique = substr($img_file, 0, -strlen($m[0])).'-xx.svg'
3504 3504
 		and file_exists($variante_svg_generique)
3505 3505
 	) {
3506
-		if ($variante_svg_size = substr($variante_svg_generique, 0, -6) . $m[1] . '.svg' and file_exists($variante_svg_size)) {
3506
+		if ($variante_svg_size = substr($variante_svg_generique, 0, -6).$m[1].'.svg' and file_exists($variante_svg_size)) {
3507 3507
 			$img_file = $variante_svg_size;
3508 3508
 		}
3509 3509
 		else {
@@ -3561,7 +3561,7 @@  discard block
 block discarded – undo
3561 3561
 				return '';
3562 3562
 			}
3563 3563
 		}
3564
-		$atts .= " width='" . $largeur . "' height='" . $hauteur . "'";
3564
+		$atts .= " width='".$largeur."' height='".$hauteur."'";
3565 3565
 	}
3566 3566
 
3567 3567
 	if (file_exists($img_file)) {
@@ -3571,14 +3571,14 @@  discard block
 block discarded – undo
3571 3571
 		$alt = '';
3572 3572
 	}
3573 3573
 	elseif ($alt or $alt === '') {
3574
-		$alt = " alt='" . attribut_html($alt) . "'";
3574
+		$alt = " alt='".attribut_html($alt)."'";
3575 3575
 	}
3576 3576
 	else {
3577
-		$alt = " alt='" . attribut_html($title) . "'";
3577
+		$alt = " alt='".attribut_html($title)."'";
3578 3578
 	}
3579 3579
 	return "<img src='$img_file'$alt"
3580
-	. ($title ? ' title="' . attribut_html($title) . '"' : '')
3581
-	. ' ' . ltrim($atts)
3580
+	. ($title ? ' title="'.attribut_html($title).'"' : '')
3581
+	. ' '.ltrim($atts)
3582 3582
 	. ' />';
3583 3583
 }
3584 3584
 
@@ -3592,10 +3592,10 @@  discard block
 block discarded – undo
3592 3592
  */
3593 3593
 function http_style_background($img, $att = '', $size = null) {
3594 3594
 	if ($size and is_numeric($size)) {
3595
-		$size = trim($size) . 'px';
3595
+		$size = trim($size).'px';
3596 3596
 	}
3597
-	return " style='background" .
3598
-		($att ? '' : '-image') . ': url("' . chemin_image($img) . '")' . ($att ? (' ' . $att) : '') . ';'
3597
+	return " style='background".
3598
+		($att ? '' : '-image').': url("'.chemin_image($img).'")'.($att ? (' '.$att) : '').';'
3599 3599
 		. ($size ? "background-size:{$size};" : '')
3600 3600
 		. "'";
3601 3601
 }
@@ -3710,7 +3710,7 @@  discard block
 block discarded – undo
3710 3710
 		$img = http_img_pack(
3711 3711
 			$img,
3712 3712
 			$alt,
3713
-			$class ? " class='" . attribut_html($class) . "'" : '',
3713
+			$class ? " class='".attribut_html($class)."'" : '',
3714 3714
 			'',
3715 3715
 			['chemin_image' => false, 'utiliser_suffixe_size' => false]
3716 3716
 		);
@@ -3795,7 +3795,7 @@  discard block
 block discarded – undo
3795 3795
 	$balise_svg_source = $balise_svg;
3796 3796
 
3797 3797
 	// entete XML à supprimer
3798
-	$svg = preg_replace(',^\s*<\?xml[^>]*\?' . '>,', '', $svg);
3798
+	$svg = preg_replace(',^\s*<\?xml[^>]*\?'.'>,', '', $svg);
3799 3799
 
3800 3800
 	// IE est toujours mon ami
3801 3801
 	$balise_svg = inserer_attribut($balise_svg, 'focusable', 'false');
@@ -3813,9 +3813,9 @@  discard block
 block discarded – undo
3813 3813
 	// regler le alt
3814 3814
 	if ($alt) {
3815 3815
 		$balise_svg = inserer_attribut($balise_svg, 'role', 'img');
3816
-		$id = 'img-svg-title-' . substr(md5("$img_file:$svg:$alt"), 0, 4);
3816
+		$id = 'img-svg-title-'.substr(md5("$img_file:$svg:$alt"), 0, 4);
3817 3817
 		$balise_svg = inserer_attribut($balise_svg, 'aria-labelledby', $id);
3818
-		$title = "<title id=\"$id\">" . entites_html($alt) . "</title>\n";
3818
+		$title = "<title id=\"$id\">".entites_html($alt)."</title>\n";
3819 3819
 		$balise_svg .= $title;
3820 3820
 	}
3821 3821
 	else {
@@ -3863,7 +3863,7 @@  discard block
 block discarded – undo
3863 3863
 	if (is_array($tableau)) {
3864 3864
 		foreach ($tableau as $k => $v) {
3865 3865
 			$res = recuperer_fond(
3866
-				'modeles/' . $modele,
3866
+				'modeles/'.$modele,
3867 3867
 				array_merge(['cle' => $k], (is_array($v) ? $v : ['valeur' => $v]))
3868 3868
 			);
3869 3869
 			$texte .= $res;
@@ -4048,7 +4048,7 @@  discard block
 block discarded – undo
4048 4048
 	}
4049 4049
 
4050 4050
 	$c = serialize($c);
4051
-	$cle = calculer_cle_action($form . $c);
4051
+	$cle = calculer_cle_action($form.$c);
4052 4052
 	$c = "$cle:$c";
4053 4053
 
4054 4054
 	// on ne stocke pas les contextes dans des fichiers en cache
@@ -4106,15 +4106,15 @@  discard block
 block discarded – undo
4106 4106
 	}
4107 4107
 	// toujours encoder l'url source dans le bloc ajax
4108 4108
 	$r = self();
4109
-	$r = ' data-origin="' . $r . '"';
4109
+	$r = ' data-origin="'.$r.'"';
4110 4110
 	$class = 'ajaxbloc';
4111 4111
 	if ($ajaxid and is_string($ajaxid)) {
4112 4112
 		// ajaxid est normalement conforme a un nom de classe css
4113 4113
 		// on ne verifie pas la conformite, mais on passe entites_html par dessus par precaution
4114
-		$class .= ' ajax-id-' . entites_html($ajaxid);
4114
+		$class .= ' ajax-id-'.entites_html($ajaxid);
4115 4115
 	}
4116 4116
 
4117
-	return "<div class='$class' " . "data-ajax-env='$env'$r>\n$emboite</div><!--ajaxbloc-->\n";
4117
+	return "<div class='$class' "."data-ajax-env='$env'$r>\n$emboite</div><!--ajaxbloc-->\n";
4118 4118
 }
4119 4119
 
4120 4120
 /**
@@ -4158,7 +4158,7 @@  discard block
 block discarded – undo
4158 4158
 		$cle = substr($c, 0, $p);
4159 4159
 		$c = substr($c, $p + 1);
4160 4160
 
4161
-		if ($cle == calculer_cle_action($form . $c)) {
4161
+		if ($cle == calculer_cle_action($form.$c)) {
4162 4162
 			$env = @unserialize($c);
4163 4163
 			return $env;
4164 4164
 		}
@@ -4279,13 +4279,13 @@  discard block
 block discarded – undo
4279 4279
 				}
4280 4280
 			}
4281 4281
 		}
4282
-		$att .= 'class="' . ($class ? attribut_html($class) . ' ' : '') . (defined('_LIEN_OU_EXPOSE_CLASS_ON') ? _LIEN_OU_EXPOSE_CLASS_ON : 'on') . '"';
4282
+		$att .= 'class="'.($class ? attribut_html($class).' ' : '').(defined('_LIEN_OU_EXPOSE_CLASS_ON') ? _LIEN_OU_EXPOSE_CLASS_ON : 'on').'"';
4283 4283
 	} else {
4284 4284
 		$bal = 'a';
4285 4285
 		$att = "href='$url'"
4286
-			. ($title ? " title='" . attribut_html($title) . "'" : '')
4287
-			. ($class ? " class='" . attribut_html($class) . "'" : '')
4288
-			. ($rel ? " rel='" . attribut_html($rel) . "'" : '')
4286
+			. ($title ? " title='".attribut_html($title)."'" : '')
4287
+			. ($class ? " class='".attribut_html($class)."'" : '')
4288
+			. ($rel ? " rel='".attribut_html($rel)."'" : '')
4289 4289
 			. $evt;
4290 4290
 	}
4291 4291
 	if ($libelle === null) {
@@ -4424,7 +4424,7 @@  discard block
 block discarded – undo
4424 4424
 
4425 4425
 	// Icône
4426 4426
 	$icone = http_img_pack($fond, $alt, "width='$size' height='$size'");
4427
-	$icone = '<span class="icone-image' . ($fonction ? " icone-fonction icone-fonction-$fonction" : '') . "\">$icone</span>";
4427
+	$icone = '<span class="icone-image'.($fonction ? " icone-fonction icone-fonction-$fonction" : '')."\">$icone</span>";
4428 4428
 
4429 4429
 	// Markup final
4430 4430
 	if ($type == 'lien') {
@@ -4699,20 +4699,20 @@  discard block
 block discarded – undo
4699 4699
 		$class_form = 'ajax';
4700 4700
 		$class = str_replace('ajax', '', $class);
4701 4701
 	}
4702
-	$class_btn = 'submit ' . trim($class);
4702
+	$class_btn = 'submit '.trim($class);
4703 4703
 
4704 4704
 	if ($confirm) {
4705
-		$confirm = 'confirm("' . attribut_html($confirm) . '")';
4705
+		$confirm = 'confirm("'.attribut_html($confirm).'")';
4706 4706
 		if ($callback) {
4707 4707
 			$callback = "$confirm?($callback):false";
4708 4708
 		} else {
4709 4709
 			$callback = $confirm;
4710 4710
 		}
4711 4711
 	}
4712
-	$onclick = $callback ? " onclick='return " . addcslashes($callback, "'") . "'" : '';
4712
+	$onclick = $callback ? " onclick='return ".addcslashes($callback, "'")."'" : '';
4713 4713
 	$title = $title ? " title='$title'" : '';
4714 4714
 
4715
-	return "<form class='bouton_action_post $class_form' method='post' action='$url'><div>" . form_hidden($url)
4715
+	return "<form class='bouton_action_post $class_form' method='post' action='$url'><div>".form_hidden($url)
4716 4716
 	. "<button type='submit' class='$class_btn'$title$onclick>$libelle</button></div></form>";
4717 4717
 }
4718 4718
 
@@ -4777,14 +4777,14 @@  discard block
 block discarded – undo
4777 4777
 		$champ_titre = '';
4778 4778
 		if ($demande_titre) {
4779 4779
 			// si pas de titre declare mais champ titre, il sera peuple par le select *
4780
-			$champ_titre = (!empty($desc['titre'])) ? ', ' . $desc['titre'] : '';
4780
+			$champ_titre = (!empty($desc['titre'])) ? ', '.$desc['titre'] : '';
4781 4781
 		}
4782 4782
 		include_spip('base/abstract_sql');
4783 4783
 		include_spip('base/connect_sql');
4784 4784
 		$objets[$type_objet][$id_objet] = sql_fetsel(
4785
-			'*' . $champ_titre,
4785
+			'*'.$champ_titre,
4786 4786
 			$desc['table_sql'],
4787
-			id_table_objet($type_objet) . ' = ' . intval($id_objet)
4787
+			id_table_objet($type_objet).' = '.intval($id_objet)
4788 4788
 		);
4789 4789
 
4790 4790
 		// Toujours noter la longueur d'introduction, même si pas demandé cette fois-ci
@@ -4877,8 +4877,7 @@  discard block
 block discarded – undo
4877 4877
 	if (isset($ligne_sql['chapo'])) {
4878 4878
 		$chapo = $ligne_sql['chapo'];
4879 4879
 		$texte = strlen($descriptif) ?
4880
-			'' :
4881
-			"$chapo \n\n $texte";
4880
+			'' : "$chapo \n\n $texte";
4882 4881
 	}
4883 4882
 
4884 4883
 	// Longueur en paramètre, sinon celle renseignée dans la description de l'objet, sinon valeur en dur
@@ -4953,7 +4952,7 @@  discard block
 block discarded – undo
4953 4952
 		return $texte;
4954 4953
 	}
4955 4954
 
4956
-	$traitement = str_replace('%s', "'" . texte_script($texte) . "'", $traitement);
4955
+	$traitement = str_replace('%s', "'".texte_script($texte)."'", $traitement);
4957 4956
 
4958 4957
 	// Fournir $connect et $Pile[0] au traitement si besoin
4959 4958
 	$Pile = [0 => $env];
@@ -4987,7 +4986,7 @@  discard block
 block discarded – undo
4987 4986
 	}
4988 4987
 	$url = generer_objet_url($id_objet, $objet, '', '', null, '', $connect);
4989 4988
 
4990
-	return "<a href='$url' class='$objet'>" . couper($titre, $longueur) . '</a>';
4989
+	return "<a href='$url' class='$objet'>".couper($titre, $longueur).'</a>';
4991 4990
 }
4992 4991
 
4993 4992
 /**
@@ -5013,10 +5012,10 @@  discard block
 block discarded – undo
5013 5012
 function wrap($texte, $wrap) {
5014 5013
 	$balises = extraire_balises($wrap);
5015 5014
 	if (preg_match_all(",<([a-z]\w*)\b[^>]*>,UimsS", $wrap, $regs, PREG_PATTERN_ORDER)) {
5016
-		$texte = $wrap . $texte;
5015
+		$texte = $wrap.$texte;
5017 5016
 		$regs = array_reverse($regs[1]);
5018
-		$wrap = '</' . implode('></', $regs) . '>';
5019
-		$texte = $texte . $wrap;
5017
+		$wrap = '</'.implode('></', $regs).'>';
5018
+		$texte = $texte.$wrap;
5020 5019
 	}
5021 5020
 
5022 5021
 	return $texte;
@@ -5047,7 +5046,7 @@  discard block
 block discarded – undo
5047 5046
 
5048 5047
 	// caster $u en array si besoin
5049 5048
 	if (is_object($u)) {
5050
-		$u = (array)$u;
5049
+		$u = (array) $u;
5051 5050
 	}
5052 5051
 
5053 5052
 	if (is_array($u)) {
@@ -5069,7 +5068,7 @@  discard block
 block discarded – undo
5069 5068
 		// sinon on passe a la ligne et on indente
5070 5069
 		$i_str = str_pad('', $indent, ' ');
5071 5070
 		foreach ($u as $k => $v) {
5072
-			$out .= $join . $i_str . "$k: " . filtre_print_dist($v, $join, $indent + 2);
5071
+			$out .= $join.$i_str."$k: ".filtre_print_dist($v, $join, $indent + 2);
5073 5072
 		}
5074 5073
 
5075 5074
 		return $out;
@@ -5123,7 +5122,7 @@  discard block
 block discarded – undo
5123 5122
  * @return string
5124 5123
  */
5125 5124
 function objet_icone($objet, $taille = 24, $class = '') {
5126
-	$icone = objet_info($objet, 'icone_objet') . '-' . $taille . '.png';
5125
+	$icone = objet_info($objet, 'icone_objet').'-'.$taille.'.png';
5127 5126
 	$icone = chemin_image($icone);
5128 5127
 	$balise_img = charger_filtre('balise_img');
5129 5128
 
@@ -5149,7 +5148,7 @@  discard block
 block discarded – undo
5149 5148
  */
5150 5149
 function objet_T($objet, $chaine, $args = [], $options = []) {
5151 5150
 	$chaine = explode(':', $chaine);
5152
-	if ($t = _T($objet . ':' . end($chaine), $args, array_merge($options, ['force' => false]))) {
5151
+	if ($t = _T($objet.':'.end($chaine), $args, array_merge($options, ['force' => false]))) {
5153 5152
 		return $t;
5154 5153
 	}
5155 5154
 	$chaine = implode(':', $chaine);
@@ -5215,7 +5214,7 @@  discard block
 block discarded – undo
5215 5214
 	$cache = recuperer_fond($fond, $contexte, $options, $connect);
5216 5215
 
5217 5216
 	// calculer le nom de la css
5218
-	$dir_var = sous_repertoire(_DIR_VAR, 'cache-' . $extension);
5217
+	$dir_var = sous_repertoire(_DIR_VAR, 'cache-'.$extension);
5219 5218
 	$nom_safe = preg_replace(',\W,', '_', str_replace('.', '_', $fond));
5220 5219
 	$contexte_implicite = calculer_contexte_implicite();
5221 5220
 
@@ -5223,14 +5222,14 @@  discard block
 block discarded – undo
5223 5222
 	// mais on peut hasher selon le contenu a la demande, si plusieurs contextes produisent un meme contenu
5224 5223
 	// reduit la variabilite du nom et donc le nombre de css concatenees possibles in fine
5225 5224
 	if (isset($options['hash_on_content']) and $options['hash_on_content']) {
5226
-		$hash = md5($contexte_implicite['host'] . '::' . $cache);
5225
+		$hash = md5($contexte_implicite['host'].'::'.$cache);
5227 5226
 	}
5228 5227
 	else {
5229 5228
 		unset($contexte_implicite['notes']); // pas pertinent pour signaler un changeemnt de contenu pour des css/js
5230 5229
 		ksort($contexte);
5231
-		$hash = md5($fond . json_encode($contexte_implicite, JSON_THROW_ON_ERROR) . json_encode($contexte, JSON_THROW_ON_ERROR) . $connect);
5230
+		$hash = md5($fond.json_encode($contexte_implicite, JSON_THROW_ON_ERROR).json_encode($contexte, JSON_THROW_ON_ERROR).$connect);
5232 5231
 	}
5233
-	$filename = $dir_var . $extension . "dyn-$nom_safe-" . substr($hash, 0, 8) . ".$extension";
5232
+	$filename = $dir_var.$extension."dyn-$nom_safe-".substr($hash, 0, 8).".$extension";
5234 5233
 
5235 5234
 	// mettre a jour le fichier si il n'existe pas
5236 5235
 	// ou trop ancien
@@ -5238,8 +5237,8 @@  discard block
 block discarded – undo
5238 5237
 	// et recopie sur le fichier cible uniquement si il change
5239 5238
 	if (
5240 5239
 		!file_exists($filename)
5241
-		or !file_exists($filename . '.last')
5242
-		or (isset($cache['lastmodified']) and $cache['lastmodified'] and filemtime($filename . '.last') < $cache['lastmodified'])
5240
+		or !file_exists($filename.'.last')
5241
+		or (isset($cache['lastmodified']) and $cache['lastmodified'] and filemtime($filename.'.last') < $cache['lastmodified'])
5243 5242
 		or (defined('_VAR_MODE') and _VAR_MODE == 'recalcul')
5244 5243
 	) {
5245 5244
 		$contenu = $cache['texte'];
@@ -5260,10 +5259,10 @@  discard block
 block discarded – undo
5260 5259
 			}
5261 5260
 			// pas de date dans le commentaire car sinon ca invalide le md5 et force la maj
5262 5261
 			// mais on peut mettre un md5 du contenu, ce qui donne un aperu rapide si la feuille a change ou non
5263
-			$comment .= "}\n   md5:" . md5($contenu) . " */\n";
5262
+			$comment .= "}\n   md5:".md5($contenu)." */\n";
5264 5263
 		}
5265 5264
 		// et ecrire le fichier si il change
5266
-		ecrire_fichier_calcule_si_modifie($filename, $comment . $contenu, false, true);
5265
+		ecrire_fichier_calcule_si_modifie($filename, $comment.$contenu, false, true);
5267 5266
 	}
5268 5267
 
5269 5268
 	return timestamp($filename);
@@ -5489,7 +5488,7 @@  discard block
 block discarded – undo
5489 5488
 	if ($e > 0 and strlen($mid) > 8) {
5490 5489
 		$mid = '***...***';
5491 5490
 	}
5492
-	return substr($passe, 0, $e) . $mid . ($e > 0 ? substr($passe, -$e) : '');
5491
+	return substr($passe, 0, $e).$mid.($e > 0 ? substr($passe, -$e) : '');
5493 5492
 }
5494 5493
 
5495 5494
 
@@ -5551,7 +5550,7 @@  discard block
 block discarded – undo
5551 5550
 		case 'id':
5552 5551
 		case 'anchor':
5553 5552
 			if (preg_match(',^\d,', $texte)) {
5554
-				$texte = substr($type, 0, 1) . $texte;
5553
+				$texte = substr($type, 0, 1).$texte;
5555 5554
 			}
5556 5555
 	}
5557 5556
 
@@ -5561,9 +5560,9 @@  discard block
 block discarded – undo
5561 5560
 
5562 5561
 	if (strlen($texte) < $longueur_mini and $longueur_mini < $longueur_maxi) {
5563 5562
 		if (preg_match(',^\d,', $texte)) {
5564
-			$texte = ($type ? substr($type, 0, 1) : 's') . $texte;
5563
+			$texte = ($type ? substr($type, 0, 1) : 's').$texte;
5565 5564
 		}
5566
-		$texte .= $separateur . md5($original);
5565
+		$texte .= $separateur.md5($original);
5567 5566
 		$texte = substr($texte, 0, $longueur_mini);
5568 5567
 	}
5569 5568
 
Please login to merge, or discard this patch.