Completed
Push — master ( 7a72c7...b10f66 )
by cam
04:32
created
ecrire/inc/presentation_mini.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		$rejouer = (_SESSION_REJOUER === true) ? rejouer_session() : _SESSION_REJOUER;
180 180
 	}
181 181
 
182
-	return $rejouer . (defined('_TESTER_NOSCRIPT') ? _TESTER_NOSCRIPT : '');
182
+	return $rejouer.(defined('_TESTER_NOSCRIPT') ? _TESTER_NOSCRIPT : '');
183 183
 }
184 184
 
185 185
 /**
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
 	//
226 226
 	if ($vcs = version_vcs_courante(_DIR_RACINE, true)) {
227 227
 		if ($vcs['vcs'] === 'GIT') {
228
-			$url = 'https://git.spip.net/spip/spip/commit/' . $vcs['commit'];
228
+			$url = 'https://git.spip.net/spip/spip/commit/'.$vcs['commit'];
229 229
 		} elseif ($vcs['vcs'] === 'SVN') {
230
-			$url = 'https://core.spip.net/projects/spip/repository/revisions/' . $vcs['commit'];
230
+			$url = 'https://core.spip.net/projects/spip/repository/revisions/'.$vcs['commit'];
231 231
 		} else {
232 232
 			$url = '';
233 233
 		}
@@ -237,22 +237,22 @@  discard block
 block discarded – undo
237 237
 			$commit = "<a href=\"$url\" target=\"_blank\" rel=\"noopener noreferrer\">$commit</a>";
238 238
 		}
239 239
 		if ($vcs['branch']) {
240
-			$commit = $vcs['branch'] . ': ' . $commit;
240
+			$commit = $vcs['branch'].': '.$commit;
241 241
 		}
242 242
 		$version .= " {$vcs['vcs']} [$commit]";
243 243
 	}
244 244
 
245 245
 	// et la version de l'ecran de securite
246 246
 	$secu = defined('_ECRAN_SECURITE')
247
-		? "<br />" . _T('ecran_securite', array('version' => _ECRAN_SECURITE))
247
+		? "<br />"._T('ecran_securite', array('version' => _ECRAN_SECURITE))
248 248
 		: '';
249 249
 
250 250
 	return _T('info_copyright',
251 251
 		array(
252 252
 			'spip' => "<b>SPIP $version</b> ",
253 253
 			'lien_gpl' =>
254
-				"<a href='" . generer_url_ecrire("aide",
255
-					"aide=licence&var_lang=" . $GLOBALS['spip_lang']) . "' class=\"aide popin\">" . _T('info_copyright_gpl') . "</a>"
254
+				"<a href='".generer_url_ecrire("aide",
255
+					"aide=licence&var_lang=".$GLOBALS['spip_lang'])."' class=\"aide popin\">"._T('info_copyright_gpl')."</a>"
256 256
 		))
257 257
 	. $secu;
258 258
 
@@ -279,8 +279,8 @@  discard block
 block discarded – undo
279 279
 		$onfocus = '';
280 280
 	}
281 281
 
282
-	$form = '<input type="text" size="10" value="' . $recherche_aff . '" name="recherche" class="recherche" accesskey="r"' . $onfocus . ' />';
283
-	$form .= "<input type='image' src='" . chemin_image('rechercher-20.png') . "' name='submit' class='submit' alt='" . _T('info_rechercher') . "' />";
282
+	$form = '<input type="text" size="10" value="'.$recherche_aff.'" name="recherche" class="recherche" accesskey="r"'.$onfocus.' />';
283
+	$form .= "<input type='image' src='".chemin_image('rechercher-20.png')."' name='submit' class='submit' alt='"._T('info_rechercher')."' />";
284 284
 
285
-	return "<div class='spip_recherche'>" . generer_form_ecrire($page, $form . $complement, " method='get'") . "</div>";
285
+	return "<div class='spip_recherche'>".generer_form_ecrire($page, $form.$complement, " method='get'")."</div>";
286 286
 }
Please login to merge, or discard this patch.
ecrire/inc/layer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$class = " blocreplie";
56 56
 	}
57 57
 
58
-	return "<div " . ($id ? "id='$id' " : "") . "class='bloc_depliable$class'>";
58
+	return "<div ".($id ? "id='$id' " : "")."class='bloc_depliable$class'>";
59 59
 }
60 60
 
61 61
 // https://code.spip.net/@fin_block
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
 // $ids : id des div lies au bouton (facultatif, par defaut c'est le div.bloc_depliable qui suit)
69 69
 // https://code.spip.net/@bouton_block_depliable
70 70
 function bouton_block_depliable($texte, $deplie, $ids = "") {
71
-	$bouton_id = 'b' . substr(md5($texte . microtime()), 0, 8);
71
+	$bouton_id = 'b'.substr(md5($texte.microtime()), 0, 8);
72 72
 
73 73
 	$class = ($deplie === true) ? " deplie" : (($deplie == -1) ? " impliable" : " replie");
74 74
 	if (strlen($ids)) {
75 75
 		$cible = explode(',', $ids);
76
-		$cible = '#' . implode(",#", $cible);
76
+		$cible = '#'.implode(",#", $cible);
77 77
 	} else {
78 78
 		$cible = "#$bouton_id + div.bloc_depliable";
79 79
 	}
Please login to merge, or discard this patch.
ecrire/inc/install.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
  * @return void
44 44
  **/
45 45
 function install_fichier_connexion($nom, $texte) {
46
-	$texte = "<" . "?php\n"
46
+	$texte = "<"."?php\n"
47 47
 		. "if (!defined(\"_ECRIRE_INC_VERSION\")) return;\n"
48 48
 		. $texte
49
-		. "?" . ">";
49
+		. "?".">";
50 50
 
51 51
 	ecrire_fichier($nom, $texte);
52 52
 }
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
 		return $regs;
114 114
 	} else {
115 115
 		$ar = '\s*\'([^\']*)\'';
116
-		$r = '\s*,' . $ar;
116
+		$r = '\s*,'.$ar;
117 117
 		$r = "#spip_connect_db[(]$ar$r$r$r$r(?:$r(?:$r(?:$r(?:$r)?)?)?)?#";
118 118
 		if (preg_match($r, $s, $regs)) {
119
-			$regs[2] = $regs[1] . (!$regs[2] ? '' : ":" . $regs[2] . ";");
119
+			$regs[2] = $regs[1].(!$regs[2] ? '' : ":".$regs[2].";");
120 120
 			array_shift($regs);
121 121
 			array_shift($regs);
122 122
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	// Si on n'a pas la bonne version de PHP, c'est la fin
175 175
 	if ($err) {
176 176
 		die("<div class='error'>"
177
-			. "<h3>" . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>"
177
+			. "<h3>"._T('avis_attention').'</h3><p>'._T('install_echec_annonce')."</p><ul class='spip'>"
178 178
 			. "<li><strong>{$err[0]}</strong></li>\n</ul></div>");
179 179
 	}
180 180
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
 	if ($err) {
203 203
 		echo "<div class='error'>"
204
-			. "<h3>" . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>";
204
+			. "<h3>"._T('avis_attention').'</h3><p>'._T('install_echec_annonce')."</p><ul class='spip'>";
205 205
 		foreach ($err as $e) {
206 206
 			echo "<li><strong>$e</strong></li>\n";
207 207
 		}
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
 
236 236
 // https://code.spip.net/@info_etape
237 237
 function info_etape($titre, $complement = '') {
238
-	return "<h2>" . $titre . "</h2>\n" .
239
-	($complement ? "" . $complement . "\n" : '');
238
+	return "<h2>".$titre."</h2>\n".
239
+	($complement ? "".$complement."\n" : '');
240 240
 }
241 241
 
242 242
 /**
@@ -250,18 +250,18 @@  discard block
 block discarded – undo
250 250
 		$code = _T('bouton_suivant');
251 251
 	}
252 252
 	static $suivant = 0;
253
-	$id = 'suivant' . (($suivant > 0) ? strval($suivant) : '');
253
+	$id = 'suivant'.(($suivant > 0) ? strval($suivant) : '');
254 254
 	$suivant += 1;
255 255
 
256
-	return "\n<p class='boutons suivant'><input id='" . $id . "' type='submit'\nvalue=\"" .
257
-	$code .
256
+	return "\n<p class='boutons suivant'><input id='".$id."' type='submit'\nvalue=\"".
257
+	$code.
258 258
 	" >>\" /></p>\n";
259 259
 }
260 260
 
261 261
 // https://code.spip.net/@info_progression_etape
262 262
 function info_progression_etape($en_cours, $phase, $dir, $erreur = false) {
263 263
 	//$en_cours = _request('etape')?_request('etape'):"";
264
-	$liste = find_all_in_path($dir, $phase . '(([0-9])+|fin)[.]php$');
264
+	$liste = find_all_in_path($dir, $phase.'(([0-9])+|fin)[.]php$');
265 265
 	$debut = 1;
266 266
 	$etat = "ok";
267 267
 	$last = count($liste);
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 
301 301
 			$aff_etapes .= "<li class='$class'><div class='fond'>";
302 302
 			$aff_etapes .= ($debut == $en_cours) ? "<strong>" : '';
303
-			$aff_etapes .= "<em>" . _T('etape') . " </em><span class='numero_etape'>$debut</span><em>&nbsp;: </em>";
303
+			$aff_etapes .= "<em>"._T('etape')." </em><span class='numero_etape'>$debut</span><em>&nbsp;: </em>";
304 304
 			$aff_etapes .= $intitule_etat["$phase"][$debut];
305 305
 			$aff_etapes .= ($debut == $en_cours) ? "</strong>" : '';
306 306
 			$aff_etapes .= "</div></li>";
@@ -316,11 +316,11 @@  discard block
 block discarded – undo
316 316
 
317 317
 // https://code.spip.net/@fieldset
318 318
 function fieldset($legend, $champs = array(), $apres = '', $avant = '') {
319
-	return "<fieldset>\n" .
320
-	$avant .
321
-	($legend ? "<legend>" . $legend . "</legend>\n" : '') .
322
-	fieldset_champs($champs) .
323
-	$apres .
319
+	return "<fieldset>\n".
320
+	$avant.
321
+	($legend ? "<legend>".$legend."</legend>\n" : '').
322
+	fieldset_champs($champs).
323
+	$apres.
324 324
 	"</fieldset>\n";
325 325
 }
326 326
 
@@ -330,18 +330,18 @@  discard block
 block discarded – undo
330 330
 		$type = isset($contenu['hidden']) ? 'hidden' : (preg_match(',^pass,', $nom) ? 'password' : 'text');
331 331
 		$class = isset($contenu['hidden']) ? '' : "class='formo' size='40' ";
332 332
 		if (isset($contenu['alternatives'])) {
333
-			$fieldset .= $contenu['label'] . "\n";
333
+			$fieldset .= $contenu['label']."\n";
334 334
 			foreach ($contenu['alternatives'] as $valeur => $label) {
335
-				$fieldset .= "<input type='radio' name='" . $nom .
335
+				$fieldset .= "<input type='radio' name='".$nom.
336 336
 					"' id='$nom-$valeur' value='$valeur'"
337 337
 					. (($valeur == $contenu['valeur']) ? "\nchecked='checked'" : '')
338 338
 					. "/>\n";
339
-				$fieldset .= "<label for='$nom-$valeur'>" . $label . "</label>\n";
339
+				$fieldset .= "<label for='$nom-$valeur'>".$label."</label>\n";
340 340
 			}
341 341
 			$fieldset .= "<br />\n";
342 342
 		} else {
343
-			$fieldset .= "<label for='" . $nom . "'>" . $contenu['label'] . "</label>\n";
344
-			$fieldset .= "<input " . $class . "type='" . $type . "' id='" . $nom . "' name='" . $nom . "'\nvalue='" . $contenu['valeur'] . "'"
343
+			$fieldset .= "<label for='".$nom."'>".$contenu['label']."</label>\n";
344
+			$fieldset .= "<input ".$class."type='".$type."' id='".$nom."' name='".$nom."'\nvalue='".$contenu['valeur']."'"
345 345
 				. (preg_match(',^(pass|login),', $nom) ? " autocomplete='off'" : '')
346 346
 				. ((isset($contenu['required']) and $contenu['required']) ? " required='required'" : "")
347 347
 				. " />\n";
@@ -353,24 +353,24 @@  discard block
 block discarded – undo
353 353
 
354 354
 function install_select_serveur() {
355 355
 	$options = array();
356
-	$dir = _DIR_RESTREINT . 'req/';
356
+	$dir = _DIR_RESTREINT.'req/';
357 357
 	$d = opendir($dir);
358 358
 	if (!$d) {
359 359
 		return array();
360 360
 	}
361 361
 	while (($f = readdir($d)) !== false) {
362 362
 		if ((preg_match('/^(.*)[.]php$/', $f, $s))
363
-			and is_readable($f = $dir . $f)
363
+			and is_readable($f = $dir.$f)
364 364
 		) {
365 365
 			require_once($f);
366 366
 			$s = $s[1];
367
-			$v = 'spip_versions_' . $s;
367
+			$v = 'spip_versions_'.$s;
368 368
 			if (function_exists($v) and $v()) {
369 369
 				$titre = _T("install_select_type_$s");
370 370
 				// proposer mysql par defaut si dispo
371 371
 				$checked = ($s == 'mysql' ? " checked='checked'" : "");
372 372
 				$options[$s] = "<li><input type='radio' id='$s' value='$s' name='server_db'$checked>"
373
-					. "<label for='$s'>" . ($titre ? $titre : $s) . "</label></li>";
373
+					. "<label for='$s'>".($titre ? $titre : $s)."</label></li>";
374 374
 			} else {
375 375
 				spip_log("$s: portage indisponible");
376 376
 			}
@@ -389,8 +389,8 @@  discard block
 block discarded – undo
389 389
 		"\n<input type='hidden' name='etape' value='$etape' />"
390 390
 		. $hidden
391 391
 		. (_request('echec') ?
392
-			("<p><b>" . _T('avis_connexion_echec_1') .
393
-				"</b></p><p>" . _T('avis_connexion_echec_2') . "</p><p style='font-size: small;'>" . _T('avis_connexion_echec_3') . "</p>")
392
+			("<p><b>"._T('avis_connexion_echec_1').
393
+				"</b></p><p>"._T('avis_connexion_echec_2')."</p><p style='font-size: small;'>"._T('avis_connexion_echec_3')."</p>")
394 394
 			: "")
395 395
 
396 396
 		. ($jquery ? http_script('', 'jquery.js') : '')
@@ -428,9 +428,9 @@  discard block
 block discarded – undo
428 428
 		});')
429 429
 
430 430
 		. ($server_db
431
-			? '<input type="hidden" name="server_db" value="' . $server_db . '" />'
431
+			? '<input type="hidden" name="server_db" value="'.$server_db.'" />'
432 432
 			. (($predef[0])
433
-				? ('<h3>' . _T('install_serveur_hebergeur') . '</h3>')
433
+				? ('<h3>'._T('install_serveur_hebergeur').'</h3>')
434 434
 				: '')
435 435
 			: ('<fieldset><legend>'
436 436
 				. _T('install_select_type_db')
@@ -445,9 +445,9 @@  discard block
 block discarded – undo
445 445
 				. "\n</ul>\n</div></fieldset>")
446 446
 		)
447 447
 		. '<div id="install_adresse_base_hebergeur">'
448
-		. '<p>' . _T('texte_connexion_mysql') . '</p>'
448
+		. '<p>'._T('texte_connexion_mysql').'</p>'
449 449
 		. ($predef[1]
450
-			? '<h3>' . _T('install_adresse_base_hebergeur') . '</h3>'
450
+			? '<h3>'._T('install_adresse_base_hebergeur').'</h3>'
451 451
 			: fieldset(_T('entree_base_donnee_1'),
452 452
 				array(
453 453
 					'adresse_db' => array(
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
 
462 462
 		. '<div id="install_login_base_hebergeur">'
463 463
 		. ($predef[2]
464
-			? '<h3>' . _T('install_login_base_hebergeur') . '</h3>'
464
+			? '<h3>'._T('install_login_base_hebergeur').'</h3>'
465 465
 			: fieldset(_T('entree_login_connexion_1'),
466 466
 				array(
467 467
 					'login_db' => array(
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 
476 476
 		. '<div id="install_pass_base_hebergeur">'
477 477
 		. ($predef[3]
478
-			? '<h3>' . _T('install_pass_base_hebergeur') . '</h3>'
478
+			? '<h3>'._T('install_pass_base_hebergeur').'</h3>'
479 479
 			: fieldset(_T('entree_mot_passe_1'),
480 480
 				array(
481 481
 					'pass_db' => array(
@@ -498,20 +498,20 @@  discard block
 block discarded – undo
498 498
 function predef_ou_cache($adresse_db, $login_db, $pass_db, $server_db) {
499 499
 	return ((defined('_INSTALL_HOST_DB'))
500 500
 		? ''
501
-		: "\n<input type='hidden' name='adresse_db'  value=\"" . spip_htmlspecialchars($adresse_db) . "\" />"
501
+		: "\n<input type='hidden' name='adresse_db'  value=\"".spip_htmlspecialchars($adresse_db)."\" />"
502 502
 	)
503 503
 	. ((defined('_INSTALL_USER_DB'))
504 504
 		? ''
505
-		: "\n<input type='hidden' name='login_db' value=\"" . spip_htmlspecialchars($login_db) . "\" />"
505
+		: "\n<input type='hidden' name='login_db' value=\"".spip_htmlspecialchars($login_db)."\" />"
506 506
 	)
507 507
 	. ((defined('_INSTALL_PASS_DB'))
508 508
 		? ''
509
-		: "\n<input type='hidden' name='pass_db' value=\"" . spip_htmlspecialchars($pass_db) . "\" />"
509
+		: "\n<input type='hidden' name='pass_db' value=\"".spip_htmlspecialchars($pass_db)."\" />"
510 510
 	)
511 511
 
512 512
 	. ((defined('_INSTALL_SERVER_DB'))
513 513
 		? ''
514
-		: "\n<input type='hidden' name='server_db' value=\"" . spip_htmlspecialchars($server_db) . "\" />"
514
+		: "\n<input type='hidden' name='server_db' value=\"".spip_htmlspecialchars($server_db)."\" />"
515 515
 	);
516 516
 }
517 517
 
Please login to merge, or discard this patch.
ecrire/inc/presentation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 	);
44 44
 	$style_titre_mapping = array('couleur' => 'topper', 'trait-couleur' => 'section');
45 45
 	$c = isset($style_mapping[$style]) ? $style_mapping[$style] : 'simple';
46
-	$class = $c . ($class ? " $class" : "");
46
+	$class = $c.($class ? " $class" : "");
47 47
 	if (!$padding) {
48
-		$class .= ($class ? " " : "") . "no-padding";
48
+		$class .= ($class ? " " : "")."no-padding";
49 49
 	}
50 50
 
51 51
 	//($id?"id='$id' ":"")
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
 		if ($fonction) {
61 61
 			// 2 images pour composer l'icone : le fond (article) en background,
62 62
 			// la fonction (new) en image
63
-			$icone = http_img_pack($fonction, "", "class='cadre-icone' width='$size' height='$size'\n" .
63
+			$icone = http_img_pack($fonction, "", "class='cadre-icone' width='$size' height='$size'\n".
64 64
 				http_style_background($fond, "no-repeat center center", $size));
65 65
 		} else {
66 66
 			$icone = http_img_pack($fond, "", "class='cadre-icone' width='$size' height='$size'");
67 67
 		}
68
-		$titre = $icone . $titre;
68
+		$titre = $icone.$titre;
69 69
 	}
70 70
 
71 71
 	return boite_ouvrir($titre, $class, isset($style_titre_mapping[$style]) ? $style_titre_mapping[$style] : '', $id);
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	$titre,
160 160
 	$ze_logo = ''
161 161
 ) {
162
-	return "<h1 class = 'grostitre'>" . $ze_logo . ' ' . typo($titre) . "</h1>\n";
162
+	return "<h1 class = 'grostitre'>".$ze_logo.' '.typo($titre)."</h1>\n";
163 163
 }
164 164
 
165 165
 // La boite des raccourcis
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 // https://code.spip.net/@bloc_des_raccourcis
168 168
 function bloc_des_raccourcis($bloc) {
169 169
 	return creer_colonne_droite()
170
-	. boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis') . $bloc . boite_fermer();
170
+	. boite_ouvrir(_T('titre_cadre_raccourcis'), 'raccourcis').$bloc.boite_fermer();
171 171
 }
172 172
 
173 173
 //
Please login to merge, or discard this patch.
ecrire/plugins/afficher_plugin.php 1 patch
Spacing   +34 added lines, -35 removed lines patch added patch discarded remove patch
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
 		$class_li .= " error";
57 57
 		$erreur = http_img_pack("plugin-err-32.png", _T('plugin_info_erreur_xml'), " class='picto_err'",
58 58
 				_T('plugin_info_erreur_xml'))
59
-			. "<div class='erreur'>" . join('<br >', $info['erreur']) . "</div>";
59
+			. "<div class='erreur'>".join('<br >', $info['erreur'])."</div>";
60 60
 		$checkable = false;
61
-	} elseif (isset($GLOBALS['erreurs_activation_raw'][$dir_plugins . $plug_file])) {
61
+	} elseif (isset($GLOBALS['erreurs_activation_raw'][$dir_plugins.$plug_file])) {
62 62
 		$class_li .= " error";
63 63
 		$erreur = http_img_pack("plugin-err-32.png", _T('plugin_impossible_activer', array('plugin' => $nom)),
64 64
 				" class='picto_err'", _T('plugin_impossible_activer', array('plugin' => $nom)))
65
-			. "<div class='erreur'>" . implode("<br />",
66
-				$GLOBALS['erreurs_activation_raw'][$dir_plugins . $plug_file]) . "</div>";
65
+			. "<div class='erreur'>".implode("<br />",
66
+				$GLOBALS['erreurs_activation_raw'][$dir_plugins.$plug_file])."</div>";
67 67
 	} else {
68 68
 		$cfg = $actif ? plugin_bouton_config($plug_file, $info, $dir_plugins) : "";
69 69
 	}
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
 	// numerotons les occurrences d'un meme prefix
72 72
 	$versions[$prefix] = $id = isset($versions[$prefix]) ? intval($versions[$prefix]) + 1 : '';
73 73
 
74
-	$class_li .= ($actif ? " actif" : "") . ($expose ? " on" : "");
74
+	$class_li .= ($actif ? " actif" : "").($expose ? " on" : "");
75 75
 
76 76
 	return "<li id='$prefix$id' class='$class_li'>"
77 77
 	. ((!$checkable and !$checked)
78
-		? '' : plugin_checkbox(++$id_input, $dir_plugins . $plug_file, $checked))
78
+		? '' : plugin_checkbox(++$id_input, $dir_plugins.$plug_file, $checked))
79 79
 	. plugin_resume($info, $dir_plugins, $plug_file, $url_page)
80 80
 	. $cfg
81 81
 	. $erreur
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
 	$prefix = strtolower($infos['prefix']);
94 94
 	// si paquet.xml fournit un squelette, le prendre
95 95
 	if (isset($infos['config']) and $infos['config']) {
96
-		return recuperer_fond("$dir$nom/" . $infos['config'],
96
+		return recuperer_fond("$dir$nom/".$infos['config'],
97 97
 			array(
98
-				'script' => 'configurer_' . $prefix,
98
+				'script' => 'configurer_'.$prefix,
99 99
 				'nom' => $nom
100 100
 			));
101 101
 	}
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	// sinon prendre le squelette std sur le nom std
114 114
 	return recuperer_fond("prive/squelettes/inclure/cfg",
115 115
 		array(
116
-			'script' => 'configurer_' . $prefix,
116
+			'script' => 'configurer_'.$prefix,
117 117
 			'nom' => $nom
118 118
 		));
119 119
 }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	. "<input type='checkbox' name='s$name' id='label_$id_input'"
129 129
 	. ($actif ? " checked='checked'" : "")
130 130
 	. " class='checkbox'  value='O' />"
131
-	. "\n<label for='label_$id_input'>" . _T('activer_plugin') . "</label>"
131
+	. "\n<label for='label_$id_input'>"._T('activer_plugin')."</label>"
132 132
 	. "</div>";
133 133
 }
134 134
 
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
 	. "<h3><a href='$url' rel='info'>"
177 177
 	. $nom
178 178
 	. "</a></h3>"
179
-	. " <span class='version'>" . $info['version'] . "</span>"
179
+	. " <span class='version'>".$info['version']."</span>"
180 180
 	. " <span class='etat'> - "
181 181
 	. plugin_etat_en_clair($info['etat'])
182 182
 	. "</span>"
183
-	. "<div class='short'>" . $slogan . "</div>"
183
+	. "<div class='short'>".$slogan."</div>"
184 184
 	. $i
185 185
 	. "</div>";
186 186
 }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 	$text2 = _T('info_desinstaller_plugin');
196 196
 	$file = basename($plug_file);
197 197
 
198
-	return "<div class='actions'>[" .
198
+	return "<div class='actions'>[".
199 199
 	"<a href='$action'
200 200
 		onclick='return confirm(\"$text $nom ?\\n$text2\")'>"
201 201
 	. $text
@@ -217,17 +217,17 @@  discard block
 block discarded – undo
217 217
 		$etat = 'developpement';
218 218
 	}
219 219
 
220
-	return _T('plugin_etat_' . $etat);
220
+	return _T('plugin_etat_'.$etat);
221 221
 }
222 222
 
223 223
 // https://code.spip.net/@plugin_propre
224
-function plugin_propre($texte, $module = '',$propre='propre') {
224
+function plugin_propre($texte, $module = '', $propre = 'propre') {
225 225
 	// retirer le retour a la racine du module, car le find_in_path se fait depuis la racine
226 226
 	if (_DIR_RACINE and strncmp($module, _DIR_RACINE, strlen(_DIR_RACINE)) == 0) {
227 227
 		$module = substr($module, strlen(_DIR_RACINE));
228 228
 	}
229 229
 	if (preg_match("|^\w+_[\w_]+$|", $texte)) {
230
-		$texte = _T(($module ? "$module:" : '') . $texte, array(), array('force' => false));
230
+		$texte = _T(($module ? "$module:" : '').$texte, array(), array('force' => false));
231 231
 	}
232 232
 
233 233
 	return $propre($texte);
@@ -259,9 +259,9 @@  discard block
 block discarded – undo
259 259
 	if (isset($info['documentation'])
260 260
 		and $lien = $info['documentation']
261 261
 	) {
262
-		$description .= "<p><em class='site'><a href='$lien' class='spip_out'>" . _T('en_savoir_plus') . '</a></em></p>';
262
+		$description .= "<p><em class='site'><a href='$lien' class='spip_out'>"._T('en_savoir_plus').'</a></em></p>';
263 263
 	}
264
-	$s .= "<dd class='desc'>" . $description . "</dd>\n";
264
+	$s .= "<dd class='desc'>".$description."</dd>\n";
265 265
 
266 266
 	if (isset($info['auteur'])) {
267 267
 		if (is_array($info['auteur'])) {
@@ -271,15 +271,15 @@  discard block
 block discarded – undo
271 271
 			$a = trim($info['auteur']);
272 272
 		}
273 273
 		if ($a) {
274
-			$s .= "<dt class='auteurs'>" . _T('public:par_auteur') . "</dt><dd class='auteurs'>" . PtoBR(propre($a,
275
-					$dir)) . "</dd>\n";
274
+			$s .= "<dt class='auteurs'>"._T('public:par_auteur')."</dt><dd class='auteurs'>".PtoBR(propre($a,
275
+					$dir))."</dd>\n";
276 276
 		}
277 277
 	}
278 278
 
279 279
 	if (isset($info['credit'])) {
280 280
 		if ($a = formater_credits($info['credit'], ', ')) {
281
-			$s .= "<dt class='credits'>" . _T('plugin_info_credit') . "</dt><dd class='credits'>" . PtoBR(propre($a,
282
-					$dir)) . "</dd>\n";
281
+			$s .= "<dt class='credits'>"._T('plugin_info_credit')."</dt><dd class='credits'>".PtoBR(propre($a,
282
+					$dir))."</dd>\n";
283 283
 		}
284 284
 	}
285 285
 
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 			$a = trim($info['licence']);
292 292
 		}
293 293
 		if ($a) {
294
-			$s .= "<dt class='licence'>" . _T('intitule_licence') . "</dt><dd class='licence'>" . PtoBR(propre($a,
295
-					$dir)) . "</dd>\n";
294
+			$s .= "<dt class='licence'>"._T('intitule_licence')."</dt><dd class='licence'>".PtoBR(propre($a,
295
+					$dir))."</dd>\n";
296 296
 		}
297 297
 	}
298 298
 
@@ -303,23 +303,22 @@  discard block
 block discarded – undo
303 303
 	//
304 304
 	$infotech = array();
305 305
 
306
-	$version = "<dt>" . _T('version') . "</dt><dd>" . $info['version'];
306
+	$version = "<dt>"._T('version')."</dt><dd>".$info['version'];
307 307
 	// Version VCS
308
-	if ($vcs = version_vcs_courante($dir_plugins . $plug_file)) {
309
-		$version .= ' ' . $vcs;
308
+	if ($vcs = version_vcs_courante($dir_plugins.$plug_file)) {
309
+		$version .= ' '.$vcs;
310 310
 	}
311 311
 	$version .= "</dd>";
312 312
 	$infotech[] = $version;
313
-	$infotech[] = "<dt>" . _T('repertoire_plugins') . "</dt><dd>" . joli_repertoire("$dir_plugins$plug_file") . "</dd>";
313
+	$infotech[] = "<dt>"._T('repertoire_plugins')."</dt><dd>".joli_repertoire("$dir_plugins$plug_file")."</dd>";
314 314
 	// source zip le cas echeant
315
-	$infotech[] = (lire_fichier($dir_plugins . $plug_file . '/install.log', $log)
315
+	$infotech[] = (lire_fichier($dir_plugins.$plug_file.'/install.log', $log)
316 316
 		and preg_match(',^source:(.*)$,m', $log, $r))
317
-		? '<dt>' . _T('plugin_source') . '</dt><dd>' . trim($r[1]) . "</dd>"
317
+		? '<dt>'._T('plugin_source').'</dt><dd>'.trim($r[1])."</dd>"
318 318
 		: '';
319 319
 
320
-	$infotech[] = !$info['necessite'] ? '' :
321
-		('<dt>' . _T('plugin_info_necessite') . '</dt><dd>' . join(' ',
322
-				array_map('array_shift', $info['necessite'])) . '</dd>');
320
+	$infotech[] = !$info['necessite'] ? '' : ('<dt>'._T('plugin_info_necessite').'</dt><dd>'.join(' ',
321
+				array_map('array_shift', $info['necessite'])).'</dd>');
323 322
 
324 323
 	$s .= "<dl class='tech'>"
325 324
 		. join('', $infotech)
@@ -340,8 +339,8 @@  discard block
 block discarded – undo
340 339
 		$texte .=
341 340
 			(!is_array($_credit))
342 341
 				? PtoBR(propre($_credit))
343
-				: ($_credit['url'] ? '<a href="' . $_credit['url'] . '">' : '') .
344
-				$_credit['nom'] .
342
+				: ($_credit['url'] ? '<a href="'.$_credit['url'].'">' : '').
343
+				$_credit['nom'].
345 344
 				($_credit['url'] ? '</a>' : '');
346 345
 	}
347 346
 
Please login to merge, or discard this patch.
ecrire/install/etape_3.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		= spip_connect_db($adresse_db, $port, $login_db, $pass_db, '', $server_db);
46 46
 
47 47
 	$GLOBALS['connexions'][$server_db][$GLOBALS['spip_sql_version']]
48
-		= $GLOBALS['spip_' . $server_db . '_functions_' . $GLOBALS['spip_sql_version']];
48
+		= $GLOBALS['spip_'.$server_db.'_functions_'.$GLOBALS['spip_sql_version']];
49 49
 
50 50
 	$fquery = sql_serveur('query', $server_db);
51 51
 	if ($choix_db == 'new_spip') {
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 			if (!$ok) {
56 56
 				$re = "Impossible de creer la base $re";
57 57
 				spip_log($re);
58
-				return '<p>' . _T('avis_connexion_erreur_creer_base') . "</p><!--\n$re\n-->";
58
+				return '<p>'._T('avis_connexion_erreur_creer_base')."</p><!--\n$re\n-->";
59 59
 			}
60 60
 		} else {
61 61
 			$re = "Le nom de la base doit correspondre a $re";
62 62
 			spip_log($re);
63 63
 
64
-			return '<p>' . _T('avis_connexion_erreur_nom_base') . "</p><!--\n$re\n-->";
64
+			return '<p>'._T('avis_connexion_erreur_nom_base')."</p><!--\n$re\n-->";
65 65
 		}
66 66
 	}
67 67
 
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
 		= spip_connect_db($adresse_db, $port, $login_db, $pass_db, $sel_db, $server_db);
73 73
 
74 74
 	$GLOBALS['connexions'][$server_db][$GLOBALS['spip_sql_version']]
75
-		= $GLOBALS['spip_' . $server_db . '_functions_' . $GLOBALS['spip_sql_version']];
75
+		= $GLOBALS['spip_'.$server_db.'_functions_'.$GLOBALS['spip_sql_version']];
76 76
 
77 77
 	// Completer le tableau decrivant la connexion
78 78
 
79 79
 	$GLOBALS['connexions'][$server_db]['prefixe'] = $table_prefix;
80 80
 	$GLOBALS['connexions'][$server_db]['db'] = $sel_db;
81 81
 
82
-	$old = sql_showbase($table_prefix . '_meta', $server_db);
82
+	$old = sql_showbase($table_prefix.'_meta', $server_db);
83 83
 	if ($old) {
84 84
 		$old = sql_fetch($old, $server_db);
85 85
 	}
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 				$charset['charset'];
99 99
 			$charsetbase = $charset['charset'];
100 100
 		} else {
101
-			spip_log(_DEFAULT_CHARSET . ' inconnu du serveur SQL');
101
+			spip_log(_DEFAULT_CHARSET.' inconnu du serveur SQL');
102 102
 			$charsetbase = 'standard';
103 103
 		}
104 104
 		spip_log("Creation des tables. Codage $charsetbase");
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 		if ($r) {
149 149
 			$r = sql_fetch($r, $server_db);
150 150
 		}
151
-		$version_installee = !$r ? 0 : (double)$r['valeur'];
151
+		$version_installee = !$r ? 0 : (double) $r['valeur'];
152 152
 		if (!$version_installee or ($GLOBALS['spip_version_base'] < $version_installee)) {
153 153
 			$fupdateq(
154 154
 				'spip_meta',
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 				'',
158 158
 				$server_db
159 159
 			);
160
-			spip_log('nouvelle version installee: ' . $GLOBALS['spip_version_base']);
160
+			spip_log('nouvelle version installee: '.$GLOBALS['spip_version_base']);
161 161
 		}
162 162
 		// eliminer la derniere operation d'admin mal terminee
163 163
 		// notamment la mise a jour
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 	if ($chmod_db) {
185 185
 		install_fichier_connexion(
186 186
 			_FILE_CHMOD_TMP,
187
-			"if (!defined('_SPIP_CHMOD')) define('_SPIP_CHMOD', " . sprintf('0%3o', $chmod_db) . ");\n"
187
+			"if (!defined('_SPIP_CHMOD')) define('_SPIP_CHMOD', ".sprintf('0%3o', $chmod_db).");\n"
188 188
 		);
189 189
 	}
190 190
 
@@ -249,16 +249,16 @@  discard block
 block discarded – undo
249 249
 
250 250
 // https://code.spip.net/@install_premier_auteur
251 251
 function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_obligatoire) {
252
-	return info_progression_etape(3, 'etape_', 'install/') .
252
+	return info_progression_etape(3, 'etape_', 'install/').
253 253
 	info_etape(
254 254
 		_T('info_informations_personnelles'),
255
-		'<b>' . _T('texte_informations_personnelles_1') . '</b>' .
256
-		aider('install5', true) .
257
-		'<p>' .
255
+		'<b>'._T('texte_informations_personnelles_1').'</b>'.
256
+		aider('install5', true).
257
+		'<p>'.
258 258
 		($auteur_obligatoire ?
259 259
 			''
260 260
 			:
261
-			_T('texte_informations_personnelles_2') . ' ' . _T('info_laisser_champs_vides')
261
+			_T('texte_informations_personnelles_2').' '._T('info_laisser_champs_vides')
262 262
 		)
263 263
 	)
264 264
 	. generer_form_ecrire('install', (
@@ -268,12 +268,12 @@  discard block
 block discarded – undo
268 268
 			_T('info_identification_publique'),
269 269
 			array(
270 270
 				'nom' => array(
271
-					'label' => '<b>' . _T('entree_signature') . "</b><br />\n" . _T('entree_nom_pseudo_1') . "\n",
271
+					'label' => '<b>'._T('entree_signature')."</b><br />\n"._T('entree_nom_pseudo_1')."\n",
272 272
 					'valeur' => $nom,
273 273
 					'required' => $auteur_obligatoire,
274 274
 				),
275 275
 				'email' => array(
276
-					'label' => '<b>' . _T('entree_adresse_email') . "</b>\n",
276
+					'label' => '<b>'._T('entree_adresse_email')."</b>\n",
277 277
 					'valeur' => $email,
278 278
 				)
279 279
 			)
@@ -283,23 +283,23 @@  discard block
 block discarded – undo
283 283
 			_T('entree_identifiants_connexion'),
284 284
 			array(
285 285
 				'login' => array(
286
-					'label' => '<b>' . _T('entree_login') . "</b><br />\n" . _T(
286
+					'label' => '<b>'._T('entree_login')."</b><br />\n"._T(
287 287
 						'info_login_trop_court_car_pluriel',
288 288
 						array('nb' => _LOGIN_TROP_COURT)
289
-					) . "\n",
289
+					)."\n",
290 290
 					'valeur' => $login,
291 291
 					'required' => $auteur_obligatoire,
292 292
 				),
293 293
 				'pass' => array(
294
-					'label' => '<b>' . _T('entree_mot_passe') . "</b><br />\n" . _T(
294
+					'label' => '<b>'._T('entree_mot_passe')."</b><br />\n"._T(
295 295
 						'info_passe_trop_court_car_pluriel',
296 296
 						array('nb' => _PASS_LONGUEUR_MINI)
297
-					) . "\n",
297
+					)."\n",
298 298
 					'valeur' => $pass,
299 299
 					'required' => $auteur_obligatoire,
300 300
 				),
301 301
 				'pass_verif' => array(
302
-					'label' => '<b>' . _T('info_confirmer_passe') . "</b><br />\n",
302
+					'label' => '<b>'._T('info_confirmer_passe')."</b><br />\n",
303 303
 					'valeur' => $pass,
304 304
 					'required' => $auteur_obligatoire,
305 305
 				)
@@ -344,9 +344,9 @@  discard block
 block discarded – undo
344 344
 
345 345
 		if ($res) {
346 346
 			$res = info_progression_etape(2, 'etape_', 'install/', true)
347
-				. "<div class='error'><h3>" . _T('avis_operation_echec') . '</h3>'
347
+				. "<div class='error'><h3>"._T('avis_operation_echec').'</h3>'
348 348
 				. $res
349
-				. '<p>' . _T('texte_operation_echec') . '</p>'
349
+				. '<p>'._T('texte_operation_echec').'</p>'
350 350
 				. '</div>';
351 351
 		}
352 352
 	} else {
Please login to merge, or discard this patch.
ecrire/install/etape_ldap4.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 	if ($fail) {
41 41
 		echo info_etape(_T('info_chemin_acces_annuaire')),
42 42
 		info_progression_etape(3, 'etape_ldap', 'install/', true),
43
-			"<div class='error'><p><b>" . _T('avis_operation_echec') . '</b></p><p>' . _T('avis_chemin_invalide_1'),
44
-			' (<tt>' . spip_htmlspecialchars($base_ldap) . '</tt>) ' . _T('avis_chemin_invalide_2') . '</p></div>';
43
+			"<div class='error'><p><b>"._T('avis_operation_echec').'</b></p><p>'._T('avis_chemin_invalide_1'),
44
+			' (<tt>'.spip_htmlspecialchars($base_ldap).'</tt>) '._T('avis_chemin_invalide_2').'</p></div>';
45 45
 	} else {
46 46
 		info_etape(_T('info_reglage_ldap'));
47 47
 		echo info_progression_etape(4, 'etape_ldap', 'install/');
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 
55 55
 		$res = install_propager(array('adresse_ldap', 'port_ldap', 'login_ldap', 'pass_ldap', 'protocole_ldap', 'tls_ldap'))
56 56
 			. "<input type='hidden' name='etape' value='ldap5' />"
57
-			. "<input type='hidden' name='base_ldap' value='" . spip_htmlentities($base_ldap) . "' />"
57
+			. "<input type='hidden' name='base_ldap' value='".spip_htmlentities($base_ldap)."' />"
58 58
 			. fieldset(
59 59
 				_T('info_statut_utilisateurs_1'),
60 60
 				array(
61 61
 					'statut_ldap' => array(
62
-						'label' => _T('info_statut_utilisateurs_2') . '<br />',
62
+						'label' => _T('info_statut_utilisateurs_2').'<br />',
63 63
 						'valeur' => $statut_ldap,
64 64
 						'alternatives' => $statuts
65 65
 					)
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
 // https://code.spip.net/@liste_statuts_ldap
78 78
 function liste_statuts_ldap() {
79 79
 	$recom = array(
80
-		'info_administrateurs' => ('<b>' . _T('info_administrateur_1') . '</b> ' . _T('info_administrateur_2') . '<br />'),
81
-		'info_redacteurs' => ('<b>' . _T('info_redacteur_1') . '</b> ' . _T('info_redacteur_2') . '<br />'),
82
-		'info_visiteurs' => ('<b>' . _T('info_visiteur_1') . '</b> ' . _T('info_visiteur_2') . '<br />')
80
+		'info_administrateurs' => ('<b>'._T('info_administrateur_1').'</b> '._T('info_administrateur_2').'<br />'),
81
+		'info_redacteurs' => ('<b>'._T('info_redacteur_1').'</b> '._T('info_redacteur_2').'<br />'),
82
+		'info_visiteurs' => ('<b>'._T('info_visiteur_1').'</b> '._T('info_visiteur_2').'<br />')
83 83
 	);
84 84
 
85 85
 	$res = array();
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
 function install_ldap_correspondances() {
96 96
 	$champs = array();
97 97
 	foreach (is_array($GLOBALS['ldap_attributes']) ? $GLOBALS['ldap_attributes'] : array() as $champ => $v) {
98
-		$nom = 'ldap_' . $champ;
98
+		$nom = 'ldap_'.$champ;
99 99
 		$val = is_array($v) ? join(',', $v) : strval($v);
100 100
 		$champs[$nom] = array(
101
-			'label' => _T('ldap_correspondance', array('champ' => "<tt>$champ</tt>")) . '<br />',
101
+			'label' => _T('ldap_correspondance', array('champ' => "<tt>$champ</tt>")).'<br />',
102 102
 			'valeur' => $val
103 103
 		);
104 104
 	}
105 105
 
106 106
 	return !$champs ?
107
-		'' : fieldset(_T('ldap_correspondance_1'), $champs, '', _T('ldap_correspondance_2') . '<br /><br />');
107
+		'' : fieldset(_T('ldap_correspondance_1'), $champs, '', _T('ldap_correspondance_2').'<br /><br />');
108 108
 }
Please login to merge, or discard this patch.
ecrire/base/create.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			#if (!$sql_desc) $sql_desc = false;
86 86
 			#spip_log("Resultat table=$table sql_desc:$sql_desc","dbinstall"._LOG_INFO_IMPORTANTE);
87 87
 			if (!$sql_desc) {
88
-				spip_log("Echec creation table $table", "maj" . _LOG_CRITIQUE);
88
+				spip_log("Echec creation table $table", "maj"._LOG_CRITIQUE);
89 89
 			}
90 90
 		}
91 91
 	} else {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		if (isset($desc['field'])) {
98 98
 			foreach ($desc['field'] as $field => $type) {
99 99
 				if (!isset($sql_desc['field'][$field])) {
100
-					sql_alter("TABLE $table ADD $field $type" . ($last ? " AFTER $last" : ""), $serveur);
100
+					sql_alter("TABLE $table ADD $field $type".($last ? " AFTER $last" : ""), $serveur);
101 101
 				}
102 102
 				$last = $field;
103 103
 			}
Please login to merge, or discard this patch.
ecrire/iterateur/data.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		// Si a ce stade on n'a pas de table, il y a un bug
232 232
 		if (!is_array($this->tableau)) {
233 233
 			$this->err = true;
234
-			spip_log("erreur datasource " . var_export($command, true));
234
+			spip_log("erreur datasource ".var_export($command, true));
235 235
 		}
236 236
 
237 237
 		// {datapath query.results}
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 		if (isset($this->command['sourcemode'])
272 272
 			and !in_array($this->command['sourcemode'], array('table', 'array', 'tableau'))
273 273
 		) {
274
-			charger_fonction($this->command['sourcemode'] . '_to_array', 'inc', true);
274
+			charger_fonction($this->command['sourcemode'].'_to_array', 'inc', true);
275 275
 		}
276 276
 
277 277
 		# le premier argument peut etre un array, une URL etc.
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 		# avons-nous un cache dispo ?
281 281
 		$cle = null;
282 282
 		if (is_string($src)) {
283
-			$cle = 'datasource_' . md5($this->command['sourcemode'] . ':' . var_export($this->command['source'], true));
283
+			$cle = 'datasource_'.md5($this->command['sourcemode'].':'.var_export($this->command['source'], true));
284 284
 		}
285 285
 
286 286
 		$cache = $this->cache_get($cle);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 					}
333 333
 
334 334
 					if (!$this->err
335
-						and $data_to_array = charger_fonction($this->command['sourcemode'] . '_to_array', 'inc', true)
335
+						and $data_to_array = charger_fonction($this->command['sourcemode'].'_to_array', 'inc', true)
336 336
 					) {
337 337
 						$args = $this->command['source'];
338 338
 						$args[0] = $data;
@@ -467,13 +467,13 @@  discard block
 block discarded – undo
467 467
 							$tv = '%s';
468 468
 						} # {par valeur/xx/yy} ??
469 469
 						else {
470
-							$tv = 'table_valeur(%s, ' . var_export($r[1], true) . ')';
470
+							$tv = 'table_valeur(%s, '.var_export($r[1], true).')';
471 471
 						}
472 472
 						$sortfunc .= '
473
-					$a = ' . sprintf($tv, '$aa') . ';
474
-					$b = ' . sprintf($tv, '$bb') . ';
473
+					$a = ' . sprintf($tv, '$aa').';
474
+					$b = ' . sprintf($tv, '$bb').';
475 475
 					if ($a <> $b)
476
-						return ($a ' . (!empty($r[2]) ? '>' : '<') . ' $b) ? -1 : 1;';
476
+						return ($a ' . (!empty($r[2]) ? '>' : '<').' $b) ? -1 : 1;';
477 477
 					}
478 478
 				}
479 479
 			}
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
 function inc_sql_to_array_dist($data) {
627 627
 	# sortir le connecteur de $data
628 628
 	preg_match(',^(?:(\w+):)?(.*)$,Sm', $data, $v);
629
-	$serveur = (string)$v[1];
629
+	$serveur = (string) $v[1];
630 630
 	$req = trim($v[2]);
631 631
 	if ($s = sql_query($req, $serveur)) {
632 632
 		$r = array();
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
  */
649 649
 function inc_json_to_array_dist($data) {
650 650
 	if (is_array($json = json_decode($data, true))) {
651
-		return (array)$json;
651
+		return (array) $json;
652 652
 	}
653 653
 }
654 654
 
@@ -667,13 +667,13 @@  discard block
 block discarded – undo
667 667
 	$i = 1;
668 668
 	foreach ($entete as $k => $v) {
669 669
 		if (trim($v) == "") {
670
-			$v = "col" . $i;
670
+			$v = "col".$i;
671 671
 		} // reperer des eventuelles cases vides
672 672
 		if (is_numeric($v) and $v < 0) {
673
-			$v = "__" . $v;
673
+			$v = "__".$v;
674 674
 		} // ne pas risquer d'ecraser une cle numerique
675 675
 		if (is_numeric($v)) {
676
-			$v = "_" . $v;
676
+			$v = "_".$v;
677 677
 		} // ne pas risquer d'ecraser une cle numerique
678 678
 		$v = strtolower(preg_replace(',\W+,', '_', translitteration($v)));
679 679
 		foreach ($csv as &$item) {
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
  * @return array|bool
758 758
  */
759 759
 function inc_pregfiles_to_array_dist($dir, $regexp = -1, $limit = 10000) {
760
-	return (array)preg_files($dir, $regexp, $limit);
760
+	return (array) preg_files($dir, $regexp, $limit);
761 761
 }
762 762
 
763 763
 /**
@@ -772,13 +772,13 @@  discard block
 block discarded – undo
772 772
 	$glob_to_array = charger_fonction('glob_to_array', 'inc');
773 773
 	$a = $glob_to_array($data);
774 774
 	foreach ($a as &$v) {
775
-		$b = (array)@stat($v);
775
+		$b = (array) @stat($v);
776 776
 		foreach ($b as $k => $ignore) {
777 777
 			if (is_numeric($k)) {
778 778
 				unset($b[$k]);
779 779
 			}
780 780
 		}
781
-		$b['file'] = preg_replace('`/$`','',$v) ;
781
+		$b['file'] = preg_replace('`/$`', '', $v);
782 782
 		$v = array_merge(
783 783
 			pathinfo($v),
784 784
 			$b
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
 	$xml_array = array();
799 799
 	for ($object->rewind(); $object->valid(); $object->next()) {
800 800
 		if (array_key_exists($key = $object->key(), $xml_array)) {
801
-			$key .= '-' . uniqid();
801
+			$key .= '-'.uniqid();
802 802
 		}
803 803
 		$vars = get_object_vars($object->current());
804 804
 		if (isset($vars['@attributes'])) {
Please login to merge, or discard this patch.