Completed
Push — master ( f50317...15d2e0 )
by cam
01:07
created
ecrire/install/etape_2.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	$GLOBALS['connexions'][$server_db] = $link;
51 51
 
52 52
 	$GLOBALS['connexions'][$server_db][$GLOBALS['spip_sql_version']]
53
-		= $GLOBALS['spip_' . $server_db . '_functions_' . $GLOBALS['spip_sql_version']];
53
+		= $GLOBALS['spip_'.$server_db.'_functions_'.$GLOBALS['spip_sql_version']];
54 54
 
55 55
 	echo install_debut_html();
56 56
 
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
 	//echo "\n-->\n";
69 69
 
70 70
 	if (($db_connect == '0') && $link) {
71
-		echo "<div class='success'><b>" . _T('info_connexion_ok') . '</b></div>';
71
+		echo "<div class='success'><b>"._T('info_connexion_ok').'</b></div>';
72 72
 		echo info_progression_etape(2, 'etape_', 'install/');
73 73
 
74
-		echo info_etape(_T('menu_aide_installation_choix_base') . aider('install2', true));
74
+		echo info_etape(_T('menu_aide_installation_choix_base').aider('install2', true));
75 75
 
76 76
 		echo "\n", '<!-- ', sql_version($server_db), ' -->';
77 77
 		[$checked, $res] = install_etape_2_bases($login_db, $server_db);
78 78
 
79 79
 		$hidden = (defined('_SPIP_CHMOD')
80 80
 				? ''
81
-				: ("\n<input type='hidden' name='chmod' value='" . spip_htmlspecialchars($chmod) . "' />"))
82
-			. predef_ou_cache($adresse_db . ($port ? ':' . $port : ''), $login_db, $pass_db, $server_db);
81
+				: ("\n<input type='hidden' name='chmod' value='".spip_htmlspecialchars($chmod)."' />"))
82
+			. predef_ou_cache($adresse_db.($port ? ':'.$port : ''), $login_db, $pass_db, $server_db);
83 83
 
84 84
 		echo install_etape_2_form($hidden, $checked, $res, 3);
85 85
 	} else {
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
 
88 88
 		echo "<div class='error'>";
89 89
 		echo info_etape(_T('info_connexion_base'));
90
-		echo '<h3>' . _T('avis_connexion_echec_1') . '</h3>';
91
-		echo '<p>' . _T('avis_connexion_echec_2') . '</p>';
90
+		echo '<h3>'._T('avis_connexion_echec_1').'</h3>';
91
+		echo '<p>'._T('avis_connexion_echec_2').'</p>';
92 92
 
93 93
 		echo "<p style='font-size: small;'>",
94 94
 		_T('avis_connexion_echec_3'),
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 			. ' '
122 122
 		];
123 123
 	}
124
-	$res = '<b>' . _T('avis_lecture_noms_bases_1') . '</b>
125
-		' . _T('avis_lecture_noms_bases_2') . '<p>';
124
+	$res = '<b>'._T('avis_lecture_noms_bases_1').'</b>
125
+		' . _T('avis_lecture_noms_bases_2').'<p>';
126 126
 
127 127
 	$checked = false;
128 128
 	if ($login_db) {
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
 		if ($ok) {
140 140
 			$res .= _T('avis_lecture_noms_bases_3')
141 141
 				. '<ul>'
142
-				. '<li><input name="choix_db" value="' . $test_base . "\" type='radio' id='stand' checked='checked' />"
143
-				. "<label for='stand'>" . $test_base . "</label></li>\n"
142
+				. '<li><input name="choix_db" value="'.$test_base."\" type='radio' id='stand' checked='checked' />"
143
+				. "<label for='stand'>".$test_base."</label></li>\n"
144 144
 				. '</ul>'
145
-				. '<p>' . _T('info_ou') . ' ';
145
+				. '<p>'._T('info_ou').' ';
146 146
 			$checked = true;
147 147
 		}
148 148
 	}
@@ -156,20 +156,20 @@  discard block
 block discarded – undo
156 156
 		"\n<input type='hidden' name='etape' value='$etape' />"
157 157
 		. $hidden
158 158
 		. (defined('_INSTALL_NAME_DB')
159
-			? '<h3>' . _T('install_nom_base_hebergeur') . ' <tt>' . _INSTALL_NAME_DB . '</tt>' . '</h3>'
160
-			: "\n<fieldset><legend>" . _T('texte_choix_base_1') . "</legend>\n"
159
+			? '<h3>'._T('install_nom_base_hebergeur').' <tt>'._INSTALL_NAME_DB.'</tt>'.'</h3>'
160
+			: "\n<fieldset><legend>"._T('texte_choix_base_1')."</legend>\n"
161 161
 			. $res
162 162
 			. "\n<input name=\"choix_db\" value=\"new_spip\" type='radio' id='nou'"
163 163
 			. ($checked ? '' : " checked='checked'")
164
-			. " />\n<label for='nou'>" . _T('info_creer_base') . "</label></p>\n<p>"
164
+			. " />\n<label for='nou'>"._T('info_creer_base')."</label></p>\n<p>"
165 165
 			. "\n<input type='text' name='table_new' class='text' value=\"spip\" size='20' /></p></fieldset>\n"
166 166
 		)
167 167
 
168 168
 		. ((defined('_INSTALL_TABLE_PREFIX')
169 169
 			or $GLOBALS['table_prefix'] != 'spip')
170
-			? '<h3>' . _T('install_table_prefix_hebergeur') . '  <tt>' . $GLOBALS['table_prefix'] . '</tt>' . '</h3>'
171
-			: '<fieldset><legend>' . _T('texte_choix_table_prefix') . "</legend>\n"
172
-			. "<p><label for='table_prefix'>" . _T('info_table_prefix') . '</label></p><p>'
170
+			? '<h3>'._T('install_table_prefix_hebergeur').'  <tt>'.$GLOBALS['table_prefix'].'</tt>'.'</h3>'
171
+			: '<fieldset><legend>'._T('texte_choix_table_prefix')."</legend>\n"
172
+			. "<p><label for='table_prefix'>"._T('info_table_prefix').'</label></p><p>'
173 173
 			. "\n<input type='text' id='tprefix' name='tprefix' class='text' value='"
174 174
 			. 'spip' # valeur par defaut
175 175
 			. "' size='20' /></p></fieldset>"
Please login to merge, or discard this patch.
ecrire/genie/mise_a_jour.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 function genie_mise_a_jour_dist($t) {
30 30
 	include_spip('inc/meta');
31 31
 	$maj = info_maj('spip', 'SPIP', $GLOBALS['spip_version_branche']);
32
-	ecrire_meta('info_maj_spip', $maj ? ($GLOBALS['spip_version_branche'] . "|$maj") : '', 'non');
32
+	ecrire_meta('info_maj_spip', $maj ? ($GLOBALS['spip_version_branche']."|$maj") : '', 'non');
33 33
 
34 34
 	mise_a_jour_ecran_securite();
35 35
 
36
-	spip_log('Verification version SPIP : ' . ($maj ?: 'version a jour'), 'verifie_maj');
36
+	spip_log('Verification version SPIP : '.($maj ?: 'version a jour'), 'verifie_maj');
37 37
 
38 38
 	return 1;
39 39
 }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	// si l'ecran n'est pas deja present ou pas updatable, sortir
59 59
 	if (
60 60
 		!_URL_ECRAN_SECURITE
61
-		or !file_exists($filename = _DIR_ETC . 'ecran_securite.php')
61
+		or !file_exists($filename = _DIR_ETC.'ecran_securite.php')
62 62
 		or !is_writable($filename)
63 63
 		or !$last_modified = filemtime($filename)
64 64
 		or !$md5 = md5_file($filename)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	}
68 68
 
69 69
 	include_spip('inc/distant');
70
-	$tmp_file = _DIR_TMP . 'ecran_securite.php';
70
+	$tmp_file = _DIR_TMP.'ecran_securite.php';
71 71
 	$url = parametre_url(_URL_ECRAN_SECURITE, 'md5', $md5);
72 72
 	$url = parametre_url($url, 'vspip', $GLOBALS['spip_version_branche']);
73 73
 	$res = recuperer_url($url, [
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			include_once $tmp_file;
87 87
 			// ok, on le copie a la place de l'ecran existant
88 88
 			// en backupant l'ecran avant, au cas ou
89
-			@copy($filename, $filename . '-bck-' . date('Y-m-d-His', $last_modified));
89
+			@copy($filename, $filename.'-bck-'.date('Y-m-d-His', $last_modified));
90 90
 			@rename($tmp_file, $filename);
91 91
 		} else {
92 92
 			@unlink($tmp_file);
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
 
114 114
 	[$maj, $min, $rev] = preg_split('/\D+/', $version);
115 115
 
116
-	$nom = _DIR_CACHE_XML . _VERSIONS_LISTE;
116
+	$nom = _DIR_CACHE_XML._VERSIONS_LISTE;
117 117
 	$page = !file_exists($nom) ? '' : file_get_contents($nom);
118 118
 	$page = info_maj_cache($nom, $dir, $page);
119 119
 
120 120
 	// reperer toutes les versions de numero majeur superieur ou egal
121 121
 	// (a revoir quand on arrivera a SPIP V10 ...)
122 122
 	$p = substr('0123456789', intval($maj));
123
-	$p = ',/' . $file . '\D+([' . $p . ']+)\D+(\d+)(\D+(\d+))?.*?[.]zip",i';
123
+	$p = ',/'.$file.'\D+(['.$p.']+)\D+(\d+)(\D+(\d+))?.*?[.]zip",i';
124 124
 	preg_match_all($p, $page, $m, PREG_SET_ORDER);
125 125
 	$page = $page_majeure = '';
126 126
 
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
 
130 130
 	foreach ($m as $v) {
131 131
 		$v = array_pad($v, 5, 0);
132
-		[, $maj2, $min2, , $rev2] = $v;
133
-		$branche_maj = $maj2 . '.' . $min2;
134
-		$version_maj = $maj2 . '.' . $min2 . '.' . $rev2;
132
+		[, $maj2, $min2,, $rev2] = $v;
133
+		$branche_maj = $maj2.'.'.$min2;
134
+		$version_maj = $maj2.'.'.$min2.'.'.$rev2;
135 135
 		// d'abord les mises à jour de la même branche
136 136
 		if (
137 137
 			(spip_version_compare($version, $version_maj, '<'))
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
 		return '';
154 154
 	}
155 155
 
156
-	$message = $page ? _T('nouvelle_version_spip', ['version' => $page]) . ($page_majeure ? ' | ' : '') : '';
156
+	$message = $page ? _T('nouvelle_version_spip', ['version' => $page]).($page_majeure ? ' | ' : '') : '';
157 157
 	$message .= $page_majeure ? _T('nouvelle_version_spip_majeure', ['version' => $page_majeure]) : '';
158 158
 
159
-	return "<a class='info_maj_spip' href='https://www.spip.net/fr_update' title='$page'>" . $message . '</a>';
159
+	return "<a class='info_maj_spip' href='https://www.spip.net/fr_update' title='$page'>".$message.'</a>';
160 160
 }
161 161
 
162 162
 /**
@@ -179,12 +179,12 @@  discard block
 block discarded – undo
179 179
 function info_maj_cache($nom, $dir, $page = '') {
180 180
 	include_spip('inc/acces');
181 181
 	$alea_ephemere = charger_aleas();
182
-	$re = '<archives id="a' . $alea_ephemere . '">';
182
+	$re = '<archives id="a'.$alea_ephemere.'">';
183 183
 	if (preg_match("/$re/", $page)) {
184 184
 		return $page;
185 185
 	}
186 186
 
187
-	$url = _VERSIONS_SERVEUR . $dir . '/' . _VERSIONS_LISTE;
187
+	$url = _VERSIONS_SERVEUR.$dir.'/'._VERSIONS_LISTE;
188 188
 	$a = file_exists($nom) ? filemtime($nom) : '';
189 189
 	include_spip('inc/distant');
190 190
 	$res = recuperer_url_cache($url, ['if_modified_since' => $a]);
Please login to merge, or discard this patch.
ecrire/genie/optimiser.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
  */
52 52
 function optimiser_caches_contextes() {
53 53
 	sous_repertoire(_DIR_CACHE, 'contextes');
54
-	if (is_dir($d = _DIR_CACHE . 'contextes')) {
54
+	if (is_dir($d = _DIR_CACHE.'contextes')) {
55 55
 		include_spip('inc/invalideur');
56 56
 		purger_repertoire($d, ['mtime' => time() - 48 * 24 * 3600, 'limit' => 10000]);
57 57
 	}
@@ -96,16 +96,16 @@  discard block
 block discarded – undo
96 96
 		$tables[] = array_shift($row);
97 97
 	}
98 98
 
99
-	spip_log('optimiser_base_une_table ' . json_encode($tables, JSON_THROW_ON_ERROR), 'genie' . _LOG_DEBUG);
99
+	spip_log('optimiser_base_une_table '.json_encode($tables, JSON_THROW_ON_ERROR), 'genie'._LOG_DEBUG);
100 100
 	if ($tables) {
101 101
 		$table_op = intval(lire_config('optimiser_table', 0) + 1) % sizeof($tables);
102 102
 		ecrire_config('optimiser_table', $table_op);
103 103
 		$q = $tables[$table_op];
104
-		spip_log("optimiser_base_une_table : debut d'optimisation de la table $q", 'genie' . _LOG_DEBUG);
104
+		spip_log("optimiser_base_une_table : debut d'optimisation de la table $q", 'genie'._LOG_DEBUG);
105 105
 		if (sql_optimize($q)) {
106
-			spip_log("optimiser_base_une_table : fin d'optimisation de la table $q", 'genie' . _LOG_DEBUG);
106
+			spip_log("optimiser_base_une_table : fin d'optimisation de la table $q", 'genie'._LOG_DEBUG);
107 107
 		} else {
108
-			spip_log("optimiser_base_une_table : Pas d'optimiseur necessaire", 'genie' . _LOG_DEBUG);
108
+			spip_log("optimiser_base_une_table : Pas d'optimiseur necessaire", 'genie'._LOG_DEBUG);
109 109
 		}
110 110
 	}
111 111
 }
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
 	sql_free($sel);
141 141
 
142 142
 	if ($in) {
143
-		sql_delete($table, sql_in($id, array_keys($in)) . ($and ? " AND $and" : ''));
144
-		spip_log("optimiser_sansref: Numeros des entrees $id supprimees dans la table $table: " . implode(', ', array_keys($in)), 'genie' . _LOG_DEBUG);
143
+		sql_delete($table, sql_in($id, array_keys($in)).($and ? " AND $and" : ''));
144
+		spip_log("optimiser_sansref: Numeros des entrees $id supprimees dans la table $table: ".implode(', ', array_keys($in)), 'genie'._LOG_DEBUG);
145 145
 	}
146 146
 
147 147
 	return count($in);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	if (!defined('_AUTEURS_DELAI_REJET_NOUVEAU')) {
222 222
 		define('_AUTEURS_DELAI_REJET_NOUVEAU', 45 * 24 * 3600);
223 223
 	}
224
-	sql_delete('spip_auteurs', "statut='nouveau' AND maj < " . sql_quote(date('Y-m-d', time() - intval(_AUTEURS_DELAI_REJET_NOUVEAU))));
224
+	sql_delete('spip_auteurs', "statut='nouveau' AND maj < ".sql_quote(date('Y-m-d', time() - intval(_AUTEURS_DELAI_REJET_NOUVEAU))));
225 225
 
226 226
 	/**
227 227
 	 * Permet aux plugins de compléter l'optimisation suite aux éléments disparus
@@ -242,5 +242,5 @@  discard block
 block discarded – undo
242 242
 	]);
243 243
 
244 244
 
245
-	spip_log("optimiser_base_disparus : {$n} lien(s) mort(s)", 'genie' . _LOG_DEBUG);
245
+	spip_log("optimiser_base_disparus : {$n} lien(s) mort(s)", 'genie'._LOG_DEBUG);
246 246
 }
Please login to merge, or discard this patch.
ecrire/genie/mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 		$headers = '';
52 52
 		if (isset($page['entetes']) and is_countable($page['entetes']) ? count($page['entetes']) : 0) {
53 53
 			foreach ($page['entetes'] as $k => $v) {
54
-				$headers .= (strlen($v) ? "$k: $v" : $k) . "\n";
54
+				$headers .= (strlen($v) ? "$k: $v" : $k)."\n";
55 55
 			}
56 56
 		}
57 57
 
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
  * @return string
334 334
  */
335 335
 function _sqlite_func_preg_replace($quoi, $cherche, $remplace) {
336
-	$return = preg_replace('%' . $cherche . '%', $remplace, $quoi);
336
+	$return = preg_replace('%'.$cherche.'%', $remplace, $quoi);
337 337
 
338 338
 	#spip_log("preg_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
339 339
 	return $return;
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 	// il faut enlever un niveau d'echappement pour être homogène à mysql
410 410
 	$cherche = str_replace('\\\\', '\\', $cherche);
411 411
 	$u = $GLOBALS['meta']['pcre_u'] ?? 'u';
412
-	$return = preg_match('%' . $cherche . '%imsS' . $u, $quoi);
412
+	$return = preg_match('%'.$cherche.'%imsS'.$u, $quoi);
413 413
 
414 414
 	#spip_log("regexp_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
415 415
 	return $return;
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 		$count = 0;
462 462
 		str_replace($mysql_to_strftime_not_ok, '', $conv, $count);
463 463
 		if ($count > 0) {
464
-			spip_log("DATE_FORMAT : At least one parameter can't be parsed by strftime with format '$conv'", 'sqlite.' . _LOG_ERREUR);
464
+			spip_log("DATE_FORMAT : At least one parameter can't be parsed by strftime with format '$conv'", 'sqlite.'._LOG_ERREUR);
465 465
 		}
466 466
 		$to_strftime[$conv] = str_replace(array_keys($mysql_to_strftime), $mysql_to_strftime, $conv);
467 467
 	}
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
  */
481 481
 function _sqlite_func_to_days($d) {
482 482
 	static $offset = 719528; // nb de jour entre 0000-00-00 et timestamp 0=1970-01-01
483
-	$result = $offset + (int)ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
483
+	$result = $offset + (int) ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
484 484
 
485 485
 	#spip_log("Passage avec TO_DAYS : $d, $result",'sqlite.'._LOG_DEBUG);
486 486
 	return $result;
Please login to merge, or discard this patch.
ecrire/xml/indenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
 	$f = new IndenteurXML();
64 64
 	$sax($page, $apply, $f);
65 65
 	if (!$f->err) {
66
-		return $f->entete . $f->res;
66
+		return $f->entete.$f->res;
67 67
 	}
68
-	spip_log('indentation impossible ' . (is_countable($f->err) ? count($f->err) : 0) . ' erreurs de validation');
68
+	spip_log('indentation impossible '.(is_countable($f->err) ? count($f->err) : 0).' erreurs de validation');
69 69
 
70
-	return $f->entete . $f->page;
70
+	return $f->entete.$f->page;
71 71
 }
Please login to merge, or discard this patch.
ecrire/xml/analyser_dtd.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		$grammaire = find_in_path($grammaire);
30 30
 	}
31 31
 
32
-	$file = _DIR_CACHE_XML . preg_replace('/[^\w.]/', '_', $rotlvl) . '.gz';
32
+	$file = _DIR_CACHE_XML.preg_replace('/[^\w.]/', '_', $rotlvl).'.gz';
33 33
 
34 34
 	if (lire_fichier($file, $r)) {
35 35
 		if (!$grammaire) {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				$dtc->peres[$k] = $v;
57 57
 			}
58 58
 
59
-			spip_log("Analyser DTD $avail $grammaire (" . spip_timer('dtd') . ') ' . (is_countable($dtc->macros) ? count($dtc->macros) : 0) . ' macros, ' . (is_countable($dtc->elements) ? count($dtc->elements) : 0) . ' elements, ' . (is_countable($dtc->attributs) ? count($dtc->attributs) : 0) . " listes d'attributs, " . (is_countable($dtc->entites) ? count($dtc->entites) : 0) . ' entites');
59
+			spip_log("Analyser DTD $avail $grammaire (".spip_timer('dtd').') '.(is_countable($dtc->macros) ? count($dtc->macros) : 0).' macros, '.(is_countable($dtc->elements) ? count($dtc->elements) : 0).' elements, '.(is_countable($dtc->attributs) ? count($dtc->attributs) : 0)." listes d'attributs, ".(is_countable($dtc->entites) ? count($dtc->entites) : 0).' entites');
60 60
 			#	$r = $dtc->regles; ksort($r);foreach($r as $l => $v) {$t=array_keys($dtc->attributs[$l]);echo "<b>$l</b> '$v' ", count($t), " attributs: ", join (', ',$t);$t=$dtc->peres[$l];echo "<br />",count($t), " peres: ", @join (', ',$t), "<br />\n";}exit;
61 61
 			ecrire_fichier($file, serialize($dtc), true);
62 62
 		}
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 			}
174 174
 		}
175 175
 		if (!is_string($r)) {
176
-			spip_log("erreur $r dans la DTD  " . substr($dtd, 0, 80) . '.....');
176
+			spip_log("erreur $r dans la DTD  ".substr($dtd, 0, 80).'.....');
177 177
 
178 178
 			return false;
179 179
 		}
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 			($n[0] == 'PUBLIC')
222 222
 			and !tester_url_absolue($n[1])
223 223
 		) {
224
-			$n[1] = substr($grammaire, 0, strrpos($grammaire, '/') + 1) . $n[1];
224
+			$n[1] = substr($grammaire, 0, strrpos($grammaire, '/') + 1).$n[1];
225 225
 		}
226 226
 		analyser_dtd($n[1], $n[0], $dtc);
227 227
 	}
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	}
250 250
 
251 251
 	if ($dtc->macros[$m[1]] == 'INCLUDE') {
252
-		$retour = $r[1] . substr($m[2], strlen($r[0]));
252
+		$retour = $r[1].substr($m[2], strlen($r[0]));
253 253
 	} else {
254 254
 		$retour = substr($m[2], strlen($r[0]));
255 255
 	}
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 		spip_log("redefinition de l'entite $nom");
283 283
 	}
284 284
 	if ($k6) {
285
-		return $k6 . $dtd;
285
+		return $k6.$dtd;
286 286
 	} // cas du synonyme complet
287 287
 	$val = expanserEntite(($k2 ? $k3 : ($k4 ? $k5 : $k6)), $dtc->macros);
288 288
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	if (preg_match_all("/\s*(\S+)\s+(([(][^)]*[)])|(\S+))\s+([^\s']*)(\s*'[^']*')?/", $val, $r2, PREG_SET_ORDER)) {
391 391
 		foreach ($r2 as $m2) {
392 392
 			$v = preg_match('/^\w+$/', $m2[2]) ? $m2[2]
393
-				: ('/^' . preg_replace('/\s+/', '', $m2[2]) . '$/');
393
+				: ('/^'.preg_replace('/\s+/', '', $m2[2]).'$/');
394 394
 			$m21 = expanserEntite($m2[1], $dtc->macros);
395 395
 			$m25 = expanserEntite($m2[5], $dtc->macros);
396 396
 			$dtc->attributs[$nom][$m21] = [$v, $m25];
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
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 		'_publiable' => $publiable,
108 108
 		'_label' => $desc['texte_changer_statut'] ?? 'texte_article_statut',
109 109
 		'_aide' => $desc['aide_changer_statut'] ?? '',
110
-		'_hidden' => "<input type='hidden' name='statut_old' value='" . $v['statut'] . "' />",
110
+		'_hidden' => "<input type='hidden' name='statut_old' value='".$v['statut']."' />",
111 111
 	];
112 112
 
113 113
 	#if (!count($valeurs['statuts']))
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
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 
98 98
 
99
-	$row = sql_fetsel($select, $desc['table'], "$_id_objet=" . intval($id_objet));
99
+	$row = sql_fetsel($select, $desc['table'], "$_id_objet=".intval($id_objet));
100 100
 	$statut = $row['statut'] ?? 'publie'; // pas de statut => publie
101 101
 
102 102
 	$valeurs['editable'] = autoriser('dater', $objet, $id_objet, null, ['statut' => $statut]);
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
 
254 254
 	if (_request('changer')) {
255 255
 		foreach (['date', 'date_redac'] as $k) {
256
-			if ($v = _request($k . '_jour') and !dater_recuperer_date_saisie($v, $k)) {
256
+			if ($v = _request($k.'_jour') and !dater_recuperer_date_saisie($v, $k)) {
257 257
 				$erreurs[$k] = _T('format_date_incorrecte');
258
-			} elseif ($v = _request($k . '_heure') and !dater_recuperer_heure_saisie($v)) {
258
+			} elseif ($v = _request($k.'_heure') and !dater_recuperer_heure_saisie($v)) {
259 259
 				$erreurs[$k] = _T('format_heure_incorrecte');
260 260
 			}
261 261
 		}
Please login to merge, or discard this patch.