Completed
Push — master ( ad9227...bd2221 )
by cam
01:15
created
ecrire/maj/2021.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 }
24 24
 
25 25
 $GLOBALS['maj'][2021_02_18_00] = [
26
-	['sql_alter', "TABLE spip_auteurs CHANGE imessage imessage VARCHAR(3) DEFAULT '' NOT NULL" ],
27
-	['sql_updateq', 'spip_auteurs', ['imessage' => 'oui'], "imessage != 'non' OR imessage IS NULL" ],
26
+	['sql_alter', "TABLE spip_auteurs CHANGE imessage imessage VARCHAR(3) DEFAULT '' NOT NULL"],
27
+	['sql_updateq', 'spip_auteurs', ['imessage' => 'oui'], "imessage != 'non' OR imessage IS NULL"],
28 28
 ];
29 29
 
30 30
 $GLOBALS['maj'][2022_02_23_02] = [
31
-	['sql_alter', "TABLE spip_auteurs ADD backup_cles mediumtext DEFAULT '' NOT NULL" ],
32
-	['sql_delete', 'spip_meta', "nom='secret_du_site'" ],
31
+	['sql_alter', "TABLE spip_auteurs ADD backup_cles mediumtext DEFAULT '' NOT NULL"],
32
+	['sql_delete', 'spip_meta', "nom='secret_du_site'"],
33 33
 ];
34 34
 
35 35
 $GLOBALS['maj'][2022_02_23_03] = [
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		spip_log('supprimer sessions auteur', 'maj');
49 49
 		if ($dir = opendir(_DIR_SESSIONS)) {
50 50
 			while (($f = readdir($dir)) !== false) {
51
-				spip_unlink(_DIR_SESSIONS . $f);
51
+				spip_unlink(_DIR_SESSIONS.$f);
52 52
 				if (time() >= _TIME_OUT) {
53 53
 					return;
54 54
 				}
Please login to merge, or discard this patch.
ecrire/src/Texte/Collecteur/Idiomes.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
 				$offset_pos = 0;
108 108
 				foreach ($idiomes as $idiome) {
109 109
 
110
-					$cle = ($idiome['module'] ? $idiome['module'] . ':' : '') . $idiome['chaine'];
110
+					$cle = ($idiome['module'] ? $idiome['module'].':' : '').$idiome['chaine'];
111 111
 					$desc = $traduire($cle, $lang, true);
112 112
 					$l = $desc->langue;
113 113
 
Please login to merge, or discard this patch.
ecrire/src/Texte/Collecteur/Modeles.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,10 @@
 block discarded – undo
32 32
 
33 33
 	public function __construct(?string $preg = null) {
34 34
 
35
-		$this->preg_modele = ($preg ?:
36
-			'@<([a-z_-]{3,})' # <modele
35
+		$this->preg_modele = ($preg ?: '@<([a-z_-]{3,})' # <modele
37 36
 			. '\s*([0-9]*)\s*' # id
38 37
 			. '([|](?:<[^<>]*>|[^>])*?)?' # |arguments (y compris des tags <...>)
39
-			. '\s*/?' . '>@isS' # fin du modele >
38
+			. '\s*/?'.'>@isS' # fin du modele >
40 39
 		);
41 40
 	}
42 41
 
Please login to merge, or discard this patch.
ecrire/inc/presentation_mini.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 		$rejouer = (_SESSION_REJOUER === true) ? rejouer_session() : _SESSION_REJOUER;
190 190
 	}
191 191
 
192
-	return $rejouer . (defined('_TESTER_NOSCRIPT') ? _TESTER_NOSCRIPT : '');
192
+	return $rejouer.(defined('_TESTER_NOSCRIPT') ? _TESTER_NOSCRIPT : '');
193 193
 }
194 194
 
195 195
 /**
@@ -235,9 +235,9 @@  discard block
 block discarded – undo
235 235
 	//
236 236
 	if ($vcs = version_vcs_courante(_DIR_RACINE, true)) {
237 237
 		if ($vcs['vcs'] === 'GIT') {
238
-			$url = 'https://git.spip.net/spip/spip/commit/' . $vcs['commit'];
238
+			$url = 'https://git.spip.net/spip/spip/commit/'.$vcs['commit'];
239 239
 		} elseif ($vcs['vcs'] === 'SVN') {
240
-			$url = 'https://core.spip.net/projects/spip/repository/revisions/' . $vcs['commit'];
240
+			$url = 'https://core.spip.net/projects/spip/repository/revisions/'.$vcs['commit'];
241 241
 		} else {
242 242
 			$url = '';
243 243
 		}
@@ -247,21 +247,21 @@  discard block
 block discarded – undo
247 247
 			$commit = "<a href=\"$url\" target=\"_blank\" rel=\"noopener noreferrer\">$commit</a>";
248 248
 		}
249 249
 		if ($vcs['branch']) {
250
-			$commit = $vcs['branch'] . ': ' . $commit;
250
+			$commit = $vcs['branch'].': '.$commit;
251 251
 		}
252 252
 		$version .= " {$vcs['vcs']} [$commit]";
253 253
 	}
254 254
 
255 255
 	// et la version de l'ecran de securite
256 256
 	$secu = defined('_ECRAN_SECURITE')
257
-		? '<br />' . _T('ecran_securite', ['version' => _ECRAN_SECURITE])
257
+		? '<br />'._T('ecran_securite', ['version' => _ECRAN_SECURITE])
258 258
 		: '';
259 259
 
260 260
 	return _T(
261 261
 		'info_copyright',
262 262
 		[
263 263
 			'spip' => "<b>SPIP $version</b> ",
264
-			'lien_gpl' => '<a href="https://www.gnu.org/licenses/gpl-3.0.html">' . _T('info_copyright_gpl') . '</a>'
264
+			'lien_gpl' => '<a href="https://www.gnu.org/licenses/gpl-3.0.html">'._T('info_copyright_gpl').'</a>'
265 265
 		]
266 266
 	)
267 267
 	. $secu;
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
 		$onfocus = '';
289 289
 	}
290 290
 
291
-	$form = '<input type="text" size="10" value="' . $recherche_aff . '" name="recherche" class="recherche" accesskey="r"' . $onfocus . ' />';
292
-	$form .= "<input type='image' src='" . chemin_image('rechercher-20.png') . "' name='submit' class='submit' alt='" . _T('info_rechercher') . "' />";
291
+	$form = '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="recherche" accesskey="r"'.$onfocus.' />';
292
+	$form .= "<input type='image' src='".chemin_image('rechercher-20.png')."' name='submit' class='submit' alt='"._T('info_rechercher')."' />";
293 293
 
294
-	return "<div class='spip_recherche'>" . generer_form_ecrire($page, $form . $complement, " method='get'") . '</div>';
294
+	return "<div class='spip_recherche'>".generer_form_ecrire($page, $form.$complement, " method='get'").'</div>';
295 295
 }
Please login to merge, or discard this patch.
ecrire/src/Afficher/Minipage/Admin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 			$titre = ($titre == 'install')
106 106
 				? _T('avis_espace_interdit')
107
-				: $titre . '&nbsp;: ' . _T('info_acces_interdit');
107
+				: $titre.'&nbsp;: '._T('info_acces_interdit');
108 108
 
109 109
 			$statut = $GLOBALS['visiteur_session']['statut'] ?? '';
110 110
 			$nom = $GLOBALS['visiteur_session']['nom'] ?? '';
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 				$footer = bouton_action(_T('public:accueil_site'), $GLOBALS['meta']['adresse_site'] ?? '');
124 124
 			}
125 125
 
126
-			spip_log($nom . " $titre " . $_SERVER['REQUEST_URI'], 'minipres');
126
+			spip_log($nom." $titre ".$_SERVER['REQUEST_URI'], 'minipres');
127 127
 
128 128
 			$options['footer'] = $footer;
129 129
 			if (empty($corps)) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 			foreach ($_POST as $v => $c) {
155 155
 				$url = parametre_url($url, $v, $c, '&');
156 156
 			}
157
-			ajax_retour('<div>' . $titre . redirige_formulaire($url) . '</div>', false);
157
+			ajax_retour('<div>'.$titre.redirige_formulaire($url).'</div>', false);
158 158
 			return '';
159 159
 		}
160 160
 	}
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.