Completed
Push — master ( 4fa0dc...b74578 )
by cam
01:19
created
ecrire/inc/filtres_dates.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 function extraire_date($texte): string {
40 40
 	// format = 2001-08
41 41
 	if (preg_match(',([1-2][0-9]{3})[^0-9]*(1[0-2]|0?[1-9]),', $texte, $regs)) {
42
-		return $regs[1] . '-' . sprintf('%02d', $regs[2]) . '-01';
42
+		return $regs[1].'-'.sprintf('%02d', $regs[2]).'-01';
43 43
 	}
44 44
 	return '';
45 45
 }
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
 		}
71 71
 		if (preg_match('#^([12][0-9]{3})([-/]00)?( [-0-9:]+)?$#', $date, $regs)) {
72 72
 			$regs = array_pad($regs, 4, null); // eviter notice php
73
-			$date = $regs[1] . '-00-00' . $regs[3];
73
+			$date = $regs[1].'-00-00'.$regs[3];
74 74
 		} else {
75 75
 			if (preg_match('#^([12][0-9]{3}[-/][01]?[0-9])([-/]00)?( [-0-9:]+)?$#', $date, $regs)) {
76 76
 				$regs = array_pad($regs, 4, null); // eviter notice php
77
-				$date = preg_replace('@/@', '-', $regs[1]) . '-00' . $regs[3];
77
+				$date = preg_replace('@/@', '-', $regs[1]).'-00'.$regs[3];
78 78
 			} else {
79 79
 				$date = date('Y-m-d H:i:s', strtotime($date));
80 80
 			}
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	$letexte ??= '';
102 102
 	if (
103 103
 		!$verif_format_date
104
-		or (in_array(strlen($letexte), [10,19]) and
104
+		or (in_array(strlen($letexte), [10, 19]) and
105 105
 			  preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}(\s[0-9]{2}:[0-9]{2}:[0-9]{2})?$/', $letexte))
106 106
 	) {
107 107
 		if (strncmp('0000-00-00', $letexte, 10) == 0) {
@@ -388,17 +388,17 @@  discard block
 block discarded – undo
388 388
 	if ($decal > 3600 * 24 * 30) {
389 389
 		$mois = floor($decal / (3600 * 24 * 30));
390 390
 		if ($mois < 2) {
391
-			$delai = "$mois " . _T('date_un_mois');
391
+			$delai = "$mois "._T('date_un_mois');
392 392
 		} else {
393
-			$delai = "$mois " . _T('date_mois');
393
+			$delai = "$mois "._T('date_mois');
394 394
 		}
395 395
 	} else {
396 396
 		if ($decal > 3600 * 24 * 7) {
397 397
 			$semaines = floor($decal / (3600 * 24 * 7));
398 398
 			if ($semaines < 2) {
399
-				$delai = "$semaines " . _T('date_une_semaine');
399
+				$delai = "$semaines "._T('date_une_semaine');
400 400
 			} else {
401
-				$delai = "$semaines " . _T('date_semaines');
401
+				$delai = "$semaines "._T('date_semaines');
402 402
 			}
403 403
 		} else {
404 404
 			if ($decal > 3600 * 24) {
@@ -406,30 +406,30 @@  discard block
 block discarded – undo
406 406
 				if ($jours < 2) {
407 407
 					return $il_y_a == 'date_dans' ? _T('date_demain') : _T('date_hier');
408 408
 				} else {
409
-					$delai = "$jours " . _T('date_jours');
409
+					$delai = "$jours "._T('date_jours');
410 410
 				}
411 411
 			} else {
412 412
 				if ($decal >= 3600) {
413 413
 					$heures = floor($decal / 3600);
414 414
 					if ($heures < 2) {
415
-						$delai = "$heures " . _T('date_une_heure');
415
+						$delai = "$heures "._T('date_une_heure');
416 416
 					} else {
417
-						$delai = "$heures " . _T('date_heures');
417
+						$delai = "$heures "._T('date_heures');
418 418
 					}
419 419
 				} else {
420 420
 					if ($decal >= 60) {
421 421
 						$minutes = floor($decal / 60);
422 422
 						if ($minutes < 2) {
423
-							$delai = "$minutes " . _T('date_une_minute');
423
+							$delai = "$minutes "._T('date_une_minute');
424 424
 						} else {
425
-							$delai = "$minutes " . _T('date_minutes');
425
+							$delai = "$minutes "._T('date_minutes');
426 426
 						}
427 427
 					} else {
428 428
 						$secondes = ceil($decal);
429 429
 						if ($secondes < 2) {
430
-							$delai = "$secondes " . _T('date_une_seconde');
430
+							$delai = "$secondes "._T('date_une_seconde');
431 431
 						} else {
432
-							$delai = "$secondes " . _T('date_secondes');
432
+							$delai = "$secondes "._T('date_secondes');
433 433
 						}
434 434
 					}
435 435
 				}
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 		$njour = 0;
523 523
 	} else {
524 524
 		$njour = intval($jour);
525
-		if ($jourth = _T('date_jnum' . $jour)) {
525
+		if ($jourth = _T('date_jnum'.$jour)) {
526 526
 			$jour = $jourth;
527 527
 		}
528 528
 	}
@@ -530,10 +530,10 @@  discard block
 block discarded – undo
530 530
 	$mois = intval($mois);
531 531
 	if ($mois > 0 and $mois < 13) {
532 532
 		/* Traiter le cas "abbr" pour les noms de mois */
533
-		$param = ((isset($options['param']) and $options['param'] === 'abbr') ? '_' . $options['param'] : '');
534
-		$nommois = _T('date_mois_' . $mois . $param);
533
+		$param = ((isset($options['param']) and $options['param'] === 'abbr') ? '_'.$options['param'] : '');
534
+		$nommois = _T('date_mois_'.$mois.$param);
535 535
 		if ($jour) {
536
-			$jourmois = _T('date_de_mois_' . $mois, ['j' => $jour, 'nommois' => $nommois]);
536
+			$jourmois = _T('date_de_mois_'.$mois, ['j' => $jour, 'nommois' => $nommois]);
537 537
 		} else {
538 538
 			$jourmois = $nommois;
539 539
 		}
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 	}
544 544
 
545 545
 	if ($annee < 0) {
546
-		$annee = -$annee . ' ' . _T('date_avant_jc');
546
+		$annee = -$annee.' '._T('date_avant_jc');
547 547
 		$avjc = true;
548 548
 	} else {
549 549
 		$avjc = false;
@@ -569,11 +569,11 @@  discard block
 block discarded – undo
569 569
 				}
570 570
 			}
571 571
 			if ($vue == 'saison') {
572
-				return $saison ? _T('date_saison_' . $saison) : '';
572
+				return $saison ? _T('date_saison_'.$saison) : '';
573 573
 			} else {
574 574
 				return $saison ? trim(_T(
575 575
 					'date_fmt_saison_annee',
576
-					['saison' => _T('date_saison_' . $saison), 'annee' => $annee]
576
+					['saison' => _T('date_saison_'.$saison), 'annee' => $annee]
577 577
 				)) : '';
578 578
 			}
579 579
 
@@ -650,9 +650,9 @@  discard block
 block discarded – undo
650 650
 			}
651 651
 			$nom = mktime(1, 1, 1, $mois, $njour, $annee);
652 652
 			$nom = 1 + (int) date('w', $nom);
653
-			$param = ((isset($options['param']) and $options['param']) ? '_' . $options['param'] : '');
653
+			$param = ((isset($options['param']) and $options['param']) ? '_'.$options['param'] : '');
654 654
 
655
-			return _T('date_jour_' . $nom . $param);
655
+			return _T('date_jour_'.$nom.$param);
656 656
 
657 657
 		case 'mois_annee':
658 658
 			if ($avjc) {
@@ -1047,8 +1047,8 @@  discard block
 block discarded – undo
1047 1047
 
1048 1048
 	$dtstart = $dtend = $dtabbr = '';
1049 1049
 	if (strpos($forme, 'hcal') !== false) {
1050
-		$dtstart = "<abbr class='dtstart' title='" . date_iso($date_debut) . "'>";
1051
-		$dtend = "<abbr class='dtend' title='" . date_iso($date_fin) . "'>";
1050
+		$dtstart = "<abbr class='dtstart' title='".date_iso($date_debut)."'>";
1051
+		$dtend = "<abbr class='dtend' title='".date_iso($date_fin)."'>";
1052 1052
 		$dtabbr = '</abbr>';
1053 1053
 	}
1054 1054
 
@@ -1096,7 +1096,7 @@  discard block
 block discarded – undo
1096 1096
 			}
1097 1097
 		} else {
1098 1098
 			if ($dtabbr && $dtstart) {
1099
-				$s = $dtstart . spip_ucfirst($s) . $dtabbr;
1099
+				$s = $dtstart.spip_ucfirst($s).$dtabbr;
1100 1100
 			} else {
1101 1101
 				$s = spip_ucfirst($s);
1102 1102
 			}
@@ -1119,8 +1119,8 @@  discard block
 block discarded – undo
1119 1119
 				$date_debut = _T('date_fmt_jour_heure', ['jour' => $date_debut, 'heure' => $hd]);
1120 1120
 				$date_fin = _T('date_fmt_jour_heure', ['jour' => $date_fin, 'heure' => $hf]);
1121 1121
 			}
1122
-			$date_debut = $dtstart . $date_debut . $dtabbr;
1123
-			$date_fin = $dtend . $date_fin . $dtabbr;
1122
+			$date_debut = $dtstart.$date_debut.$dtabbr;
1123
+			$date_fin = $dtend.$date_fin.$dtabbr;
1124 1124
 
1125 1125
 			$s = _T('date_fmt_periode', ['date_debut' => $date_debut, 'date_fin' => $date_fin]);
1126 1126
 		} else {
@@ -1137,8 +1137,8 @@  discard block
 block discarded – undo
1137 1137
 				$date_fin = _T('date_fmt_jour_heure', ['jour' => $date_fin, 'heure' => $hf]);
1138 1138
 			}
1139 1139
 
1140
-			$date_debut = $dtstart . $date_debut . $dtabbr;
1141
-			$date_fin = $dtend . $date_fin . $dtabbr;
1140
+			$date_debut = $dtstart.$date_debut.$dtabbr;
1141
+			$date_fin = $dtend.$date_fin.$dtabbr;
1142 1142
 			$s = _T('date_fmt_periode', ['date_debut' => $date_debut, 'date_fin' => $date_fin]);
1143 1143
 		}
1144 1144
 	}
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
 		$d = date('Y-m-d');
1243 1243
 	}
1244 1244
 
1245
-	return substr($d, 0, 4) . substr($d, 5, 2) . substr($d, 8, 2);
1245
+	return substr($d, 0, 4).substr($d, 5, 2).substr($d, 8, 2);
1246 1246
 }
1247 1247
 
1248 1248
 /**
@@ -1262,7 +1262,7 @@  discard block
 block discarded – undo
1262 1262
 		$d = date('Y-m-d');
1263 1263
 	}
1264 1264
 
1265
-	return substr($d, 0, 4) . substr($d, 5, 2);
1265
+	return substr($d, 0, 4).substr($d, 5, 2);
1266 1266
 }
1267 1267
 
1268 1268
 /**
Please login to merge, or discard this patch.
prive/formulaires/configurer_multilinguisme.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	// un checkbox seul de name X non coche n'est pas poste.
40 40
 	// on verifie le champ X_check qui indique que la checkbox etait presente dans le formulaire.
41 41
 	foreach (['multi_secteurs'] as $m) {
42
-		if (!is_null(_request($m . '_check'))) {
42
+		if (!is_null(_request($m.'_check'))) {
43 43
 			ecrire_meta($m, _request($m) ? 'oui' : 'non');
44 44
 		}
45 45
 	}
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
 			. "'>"
113 113
 			. "<input type='hidden' name='{$name}[]' value='$code_langue'>" // necessaire ...
114 114
 			. "<input type='checkbox' name='{$name}[]' id='{$name}_$code_langue' value='$code_langue' checked='checked' disabled='disabled' />"
115
-			. "<label for='{$name}_$code_langue'>" . $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
115
+			. "<label for='{$name}_$code_langue'>".$nom_langue."&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
116 116
 			. '</li>';
117 117
 	}
118 118
 
119 119
 	if ($res) {
120
-		$res = "<ul id='langues_bloquees'>" . $res . "</ul><div class='nettoyeur'></div>";
120
+		$res = "<ul id='langues_bloquees'>".$res."</ul><div class='nettoyeur'></div>";
121 121
 	}
122 122
 
123 123
 	$res .= "<ul id='langues_proposees'>";
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 				. "<label for='{$name}_$code_langue'"
138 138
 				. ($checked ? " class='on'" : '')
139 139
 				. '>'
140
-				. $nom_langue . "&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
140
+				. $nom_langue."&nbsp;&nbsp; <span class='code_langue'>[$code_langue]</span></label>"
141 141
 				. '</li>';
142 142
 		}
143 143
 	}
144 144
 
145
-	return $res . "</ul><div class='nettoyeur'></div>";
145
+	return $res."</ul><div class='nettoyeur'></div>";
146 146
 }
Please login to merge, or discard this patch.
prive/formulaires/instituer_objet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		'_publiable' => $publiable,
109 109
 		'_label' => $desc['texte_changer_statut'] ?? 'texte_article_statut',
110 110
 		'_aide' => $desc['aide_changer_statut'] ?? '',
111
-		'_hidden' => "<input type='hidden' name='statut_old' value='" . $v['statut'] . "' />",
111
+		'_hidden' => "<input type='hidden' name='statut_old' value='".$v['statut']."' />",
112 112
 	];
113 113
 }
114 114
 
Please login to merge, or discard this patch.
prive/formulaires/dater.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	}
96 96
 
97 97
 
98
-	$row = sql_fetsel($select, $desc['table'], "$_id_objet=" . (int) $id_objet);
98
+	$row = sql_fetsel($select, $desc['table'], "$_id_objet=".(int) $id_objet);
99 99
 	$statut = $row['statut'] ?? 'publie'; // pas de statut => publie
100 100
 
101 101
 	$valeurs['editable'] = autoriser('dater', $objet, $id_objet, null, ['statut' => $statut]);
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
 
253 253
 	if (_request('changer')) {
254 254
 		foreach (['date', 'date_redac'] as $k) {
255
-			if (($v = _request($k . '_jour')) && !dater_recuperer_date_saisie($v, $k)) {
255
+			if (($v = _request($k.'_jour')) && !dater_recuperer_date_saisie($v, $k)) {
256 256
 				$erreurs[$k] = _T('format_date_incorrecte');
257
-			} elseif (($v = _request($k . '_heure')) && !dater_recuperer_heure_saisie($v)) {
257
+			} elseif (($v = _request($k.'_heure')) && !dater_recuperer_heure_saisie($v)) {
258 258
 				$erreurs[$k] = _T('format_heure_incorrecte');
259 259
 			}
260 260
 		}
Please login to merge, or discard this patch.
prive/formulaires/configurer_relayeur.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 				include_spip('inc/texte'); // pour aide, couper, lang
46 46
 				$info = '';
47 47
 				if (!need_proxy($t['host'], $http_proxy, $http_noproxy)) {
48
-					$info = '<strong>' . _T('page_pas_proxy') . '</strong><br />';
48
+					$info = '<strong>'._T('page_pas_proxy').'</strong><br />';
49 49
 				}
50 50
 
51 51
 				// il faut fausser le proxy actuel pour faire le test !
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
 				$GLOBALS['meta']['http_proxy'] = $cur_http_proxy;
59 59
 				$GLOBALS['meta']['http_noproxy'] = $cur_http_noproxy;
60 60
 				if ($page) {
61
-					$erreurs['message_ok'] = _T('info_proxy_ok') . "<br />$info\n<tt>" . couper(entites_html($page), 300) . '</tt>';
61
+					$erreurs['message_ok'] = _T('info_proxy_ok')."<br />$info\n<tt>".couper(entites_html($page), 300).'</tt>';
62 62
 					$erreurs['message_erreur'] = '';
63 63
 				} else {
64
-					$erreurs['message_erreur'] = $info . _T(
64
+					$erreurs['message_erreur'] = $info._T(
65 65
 						'info_impossible_lire_page',
66 66
 						['test_proxy' => "<tt>$test_proxy</tt>"]
67 67
 					)
68
-						. ' <b><tt>' . no_password_proxy_url($http_proxy) . '</tt></b>.'
68
+						. ' <b><tt>'.no_password_proxy_url($http_proxy).'</tt></b>.'
69 69
 						. aider('confhttpproxy');
70 70
 				}
71 71
 			}
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 		return false;
109 109
 	}
110 110
 	// scheme
111
-	$uri = (empty($url['scheme'])) ? '' : $url['scheme'] . '://';
111
+	$uri = (empty($url['scheme'])) ? '' : $url['scheme'].'://';
112 112
 	// user & pass
113 113
 	if (!empty($url['user'])) {
114
-		$uri .= $url['user'] . ':' . $url['pass'] . '@';
114
+		$uri .= $url['user'].':'.$url['pass'].'@';
115 115
 	}
116 116
 	// host
117 117
 	$uri .= $url['host'];
118 118
 	// port
119
-	$port = (empty($url['port'])) ? '' : ':' . $url['port'];
119
+	$port = (empty($url['port'])) ? '' : ':'.$url['port'];
120 120
 	$uri .= $port;
121 121
 	// path
122 122
 	$uri .= $url['path'];
123 123
 // fragment or query
124 124
 	if (isset($url['fragment'])) {
125
-		$uri .= '#' . $url['fragment'];
125
+		$uri .= '#'.$url['fragment'];
126 126
 	} elseif (isset($url['query'])) {
127
-		$uri .= '?' . $url['query'];
127
+		$uri .= '?'.$url['query'];
128 128
 	}
129 129
 
130 130
 	return $uri;
Please login to merge, or discard this patch.
prive/formulaires/declarer_bases.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	if (defined('_DECLARER_CHOIX_DB')) {
30 30
 		$nom_connect = _DECLARER_CHOIX_DB;
31 31
 		$n = '';
32
-		while (in_array($nom_connect . $n, $deja)) {
32
+		while (in_array($nom_connect.$n, $deja)) {
33 33
 			$n = ($n ? $n + 1 : 1);
34 34
 		}
35 35
 		$nom_connect .= $n;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 function liste_serveurs() {
59 59
 	$options = [];
60
-	$dir = _DIR_RESTREINT . 'req/';
60
+	$dir = _DIR_RESTREINT.'req/';
61 61
 	$d = opendir($dir);
62 62
 	if (!$d) {
63 63
 		return [];
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 	while ($f = readdir($d)) {
66 66
 		if (
67 67
 			preg_match('/^(.*)[.]php$/', $f, $s)
68
-			&& is_readable($f = $dir . $f)
68
+			&& is_readable($f = $dir.$f)
69 69
 		) {
70 70
 			require_once($f);
71 71
 			$s = $s[1];
72
-			$v = 'spip_versions_' . $s;
72
+			$v = 'spip_versions_'.$s;
73 73
 			if (function_exists($v) && $v()) {
74 74
 				$options[$s] = "install_select_type_$s";
75 75
 			} else {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
 	$link = spip_connect_db($adresse_db, '', $login_db, $pass_db, '@test@', $serveur_db);
129 129
 	if ($link) {
130
-		$GLOBALS['connexions'][$serveur_db][$GLOBALS['spip_sql_version']] = $GLOBALS['spip_' . $serveur_db . '_functions_' . $GLOBALS['spip_sql_version']];
130
+		$GLOBALS['connexions'][$serveur_db][$GLOBALS['spip_sql_version']] = $GLOBALS['spip_'.$serveur_db.'_functions_'.$GLOBALS['spip_sql_version']];
131 131
 		$GLOBALS['connexions'][$serveur_db] = $link;
132 132
 		define('_DECLARER_SERVEUR_DB', $serveur_db);
133 133
 		define('_DECLARER_ADRESSE_DB', $adresse_db);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 		$f = preg_replace(',[^\w],', '', $nom_connect);
178 178
 		if ($f !== $nom_connect) {
179 179
 			$erreurs['nom_connect'] = _T('erreur_nom_connect_incorrect');
180
-		} elseif (file_exists(_DIR_CONNECT . $nom_connect . '.php')) {
180
+		} elseif (file_exists(_DIR_CONNECT.$nom_connect.'.php')) {
181 181
 			$erreurs['nom_connect'] = _T('erreur_connect_deja_existant');
182 182
 		} else {
183 183
 			define('_DECLARER_NOM_CONNECT', $nom_connect);
@@ -211,9 +211,9 @@  discard block
 block discarded – undo
211 211
 			''
212 212
 		);
213 213
 
214
-	install_fichier_connexion(_DIR_CONNECT . _DECLARER_NOM_CONNECT . '.php', $conn);
214
+	install_fichier_connexion(_DIR_CONNECT._DECLARER_NOM_CONNECT.'.php', $conn);
215 215
 
216 216
 	return [
217
-		'message_ok' => _T('install_connect_ok', ['connect' => '<strong>' . _DECLARER_NOM_CONNECT . '</strong>'])
217
+		'message_ok' => _T('install_connect_ok', ['connect' => '<strong>'._DECLARER_NOM_CONNECT.'</strong>'])
218 218
 	];
219 219
 }
Please login to merge, or discard this patch.
prive/formulaires/editer_logo.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
 		}
76 76
 		switch ($objet) {
77 77
 			case 'article':
78
-				$libelle .= ' ' . aider('logoart');
78
+				$libelle .= ' '.aider('logoart');
79 79
 				break;
80 80
 			case 'breve':
81
-				$libelle .= ' ' . aider('breveslogo');
81
+				$libelle .= ' '.aider('breveslogo');
82 82
 				break;
83 83
 			case 'rubrique':
84
-				$libelle .= ' ' . aider('rublogo');
84
+				$libelle .= ' '.aider('rublogo');
85 85
 				break;
86 86
 			default:
87 87
 				break;
88 88
 		}
89 89
 
90
-		$options['titre'] = $img . $libelle;
90
+		$options['titre'] = $img.$libelle;
91 91
 	}
92 92
 	if (!isset($options['editable'])) {
93 93
 		include_spip('inc/autoriser');
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 	foreach ($etats as $etat) {
113 113
 		$logo = $chercher_logo($id_objet, $_id_objet, $etat);
114 114
 		if ($logo) {
115
-			$res['logo_' . $etat] = $logo[0];
116
-			$res['logo_id_' . $etat] = $logo[5]['id_document'] ?? '';
115
+			$res['logo_'.$etat] = $logo[0];
116
+			$res['logo_id_'.$etat] = $logo[5]['id_document'] ?? '';
117 117
 		}
118 118
 	}
119 119
 	// pas de logo_on -> pas de formulaire pour le survol
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 					$extensions_possibles
176 176
 				)
177 177
 			) {
178
-				$erreurs['logo_' . $etat] = _L('Extension non reconnue');
178
+				$erreurs['logo_'.$etat] = _L('Extension non reconnue');
179 179
 			}
180 180
 		} elseif ($file && $file['error'] != 0 && isset($file['msg'])) {
181 181
 			$erreurs['message_erreur'] = $file['msg'];
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	include_spip('inc/documents');
261 261
 	$sources = [];
262 262
 	foreach (['on', 'off'] as $etat) {
263
-		$logo = 'logo_' . $etat;
263
+		$logo = 'logo_'.$etat;
264 264
 		if (isset($_FILES[$logo])) {
265 265
 			if ($_FILES[$logo]['error'] == 0) {
266 266
 				$sources[$etat] = $_FILES[$logo];
Please login to merge, or discard this patch.
prive/formulaires/traduire.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		$id_parent = $valeurs['id_parent'];
60 60
 	}
61 61
 	if ($id_parent) {
62
-		$langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique=' . (int) $id_parent);
62
+		$langue_parent = sql_getfetsel('lang', 'spip_rubriques', 'id_rubrique='.(int) $id_parent);
63 63
 	}
64 64
 
65 65
 	if (!$langue_parent) {
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 	$valeurs['_traduire'] = '';
83 83
 	if (isset($valeurs['id_trad'])) {
84 84
 		$valeurs['_traduire'] = ($traduire ? ' ' : '');
85
-		$valeurs['_vue_traductions'] = 'prive/objets/liste/' . (trouver_fond(
86
-			$f = table_objet($objet) . '-trad',
85
+		$valeurs['_vue_traductions'] = 'prive/objets/liste/'.(trouver_fond(
86
+			$f = table_objet($objet).'-trad',
87 87
 			'prive/objets/liste'
88 88
 		) ? $f : 'objets-trad');
89 89
 		// pour afficher la liste des trad sur la base de l'id_trad en base
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
 			sql_getfetsel(
130 130
 				'id_trad',
131 131
 				$table_objet_sql,
132
-				"$_id_table_objet=" . (int) $id_objet
132
+				"$_id_table_objet=".(int) $id_objet
133 133
 			)
134 134
 		) {
135 135
 			// ne devrait jamais arriver sauf concurence de saisie
136 136
 			$erreurs['id_trad'] = _L('Une traduction est deja referencee');
137
-		} elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=" . (int) $id_trad)) {
137
+		} elseif (!sql_getfetsel($_id_table_objet, $table_objet_sql, "$_id_table_objet=".(int) $id_trad)) {
138 138
 			$erreurs['id_trad'] = _L('Indiquez un contenu existant');
139 139
 		}
140 140
 	}
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		) {
173 173
 			$table_objet_sql = table_objet_sql($objet);
174 174
 			$_id_table_objet = id_table_objet($objet);
175
-			if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=" . (int) $id_objet)) {
175
+			if ($id_trad = sql_getfetsel('id_trad', $table_objet_sql, "$_id_table_objet=".(int) $id_objet)) {
176 176
 				$referencer_traduction = charger_fonction('referencer_traduction', 'action');
177 177
 				$referencer_traduction($objet, $id_trad, $new_id_trad);
178 178
 			}
Please login to merge, or discard this patch.
prive/formulaires/configurer_previsualiseur.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	$res = ['editable' => true];
24 24
 
25 25
 	if (($i = _request('preview')) && is_array($i)) {
26
-		$i = ',' . implode(',', $i) . ',';
26
+		$i = ','.implode(',', $i).',';
27 27
 	}
28 28
 
29 29
 	ecrire_meta('preview', $i);
Please login to merge, or discard this patch.