Completed
Pull Request — master (#36)
by
unknown
06:08
created
ecrire/public/admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
 	include_spip('inc/filtres');
38 38
 
39 39
 	// Inserer le css d'admin
40
-	$css = "<link rel='stylesheet' href='" . url_absolue(direction_css(find_in_path('spip_admin.css')))
40
+	$css = "<link rel='stylesheet' href='".url_absolue(direction_css(find_in_path('spip_admin.css')))
41 41
 		. "' type='text/css' />\n";
42 42
 	if ($f = find_in_path('spip_admin_perso.css')) {
43 43
 		$css .= "<link rel='stylesheet' href='"
44
-			. url_absolue(direction_css($f)) . "' type='text/css' />\n";
44
+			. url_absolue(direction_css($f))."' type='text/css' />\n";
45 45
 	}
46 46
 
47 47
 	($pos = stripos($contenu, '</head>'))
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -44,19 +44,19 @@  discard block
 block discarded – undo
44 44
  * Nom d'une balise #TOTO
45 45
  *
46 46
  * Écriture alambiquée pour rester compatible avec les hexadecimaux des vieux squelettes */
47
-define('NOM_DE_CHAMP', "#((" . NOM_DE_BOUCLE . "):)?(([A-F]*[G-Z_][A-Z_0-9]*)|[A-Z_]+)\b(\*{0,2})");
47
+define('NOM_DE_CHAMP', "#((".NOM_DE_BOUCLE."):)?(([A-F]*[G-Z_][A-Z_0-9]*)|[A-Z_]+)\b(\*{0,2})");
48 48
 /** Balise complète [...(#TOTO) ... ] */
49
-define('CHAMP_ETENDU', '/\[([^]\[]*)\(' . NOM_DE_CHAMP . '([^[)]*\)[^]\[]*)\]/S');
49
+define('CHAMP_ETENDU', '/\[([^]\[]*)\('.NOM_DE_CHAMP.'([^[)]*\)[^]\[]*)\]/S');
50 50
 
51 51
 define('BALISE_INCLURE', '/<INCLU[DR]E[[:space:]]*(\(([^)]*)\))?/S');
52 52
 define('BALISE_POLYGLOTTE', ',<multi>(.*)</multi>,Uims');
53 53
 define('BALISE_IDIOMES', ',<:(([a-z0-9_]+):)?([a-z0-9_]*)({([^\|=>]*=[^\|>]*)})?((\|[^>]*)?:/?>),iS');
54
-define('BALISE_IDIOMES_ARGS', '@^\s*([^= ]*)\s*=\s*((' . NOM_DE_CHAMP . '[{][^}]*})?[^,]*)\s*,?\s*@s');
54
+define('BALISE_IDIOMES_ARGS', '@^\s*([^= ]*)\s*=\s*(('.NOM_DE_CHAMP.'[{][^}]*})?[^,]*)\s*,?\s*@s');
55 55
 
56 56
 /** Champ sql dans parenthèse ex: (id_article) */
57 57
 define('SQL_ARGS', '(\([^)]*\))');
58 58
 /** Fonction SQL sur un champ ex: SUM(visites) */
59
-define('CHAMP_SQL_PLUS_FONC', '`?([A-Z_\/][A-Z_\/0-9.]*)' . SQL_ARGS . '?`?');
59
+define('CHAMP_SQL_PLUS_FONC', '`?([A-Z_\/][A-Z_\/0-9.]*)'.SQL_ARGS.'?`?');
60 60
 
61 61
 // http://code.spip.net/@phraser_inclure
62 62
 function phraser_inclure($texte, $ligne, $result) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
  * @return array
212 212
  **/
213 213
 function phraser_champs($texte, $ligne, $result) {
214
-	while (preg_match("/" . NOM_DE_CHAMP . "/S", $texte, $match)) {
214
+	while (preg_match("/".NOM_DE_CHAMP."/S", $texte, $match)) {
215 215
 		$p = strpos($texte, $match[0]);
216 216
 		// texte après la balise
217 217
 		$suite = substr($texte, $p + strlen($match[0]));
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 			$collecte[] = $champ;
349 349
 			$args = ltrim($regs[count($regs) - 1]);
350 350
 		} else {
351
-			if (!preg_match("/" . NOM_DE_CHAMP . "([{|])/", $arg, $r)) {
351
+			if (!preg_match("/".NOM_DE_CHAMP."([{|])/", $arg, $r)) {
352 352
 				// 0 est un aveu d'impuissance. A completer
353 353
 				$arg = phraser_champs_exterieurs($arg, 0, $sep, $result);
354 354
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) {
434 434
 	$res = array();
435 435
 	while (($p = strpos($texte, "%$sep")) !== false) {
436
-		if (!preg_match(',^%' . preg_quote($sep) . '([0-9]+)@,', substr($texte, $p), $m)) {
436
+		if (!preg_match(',^%'.preg_quote($sep).'([0-9]+)@,', substr($texte, $p), $m)) {
437 437
 			break;
438 438
 		}
439 439
 		$debut = substr($texte, 0, $p);
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
 					// une maniere tres sale de supprimer les "' autour de {critere "xxx","yyy"}
602 602
 					if (preg_match(',^(["\'])(.*)\1$,', $m[4])) {
603 603
 						$c = null;
604
-						eval('$c = ' . $m[4] . ';');
604
+						eval('$c = '.$m[4].';');
605 605
 						if (isset($c)) {
606 606
 							$m[4] = $c;
607 607
 						}
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
 
680 680
 					if (preg_match(',^ *([0-9-]+) *(/) *(.+) *$,', $param, $m)) {
681 681
 						$crit = phraser_critere_infixe($m[1], $m[3], $v, '/', '', '');
682
-					} elseif (preg_match(',^([!]?)(' . CHAMP_SQL_PLUS_FONC .
682
+					} elseif (preg_match(',^([!]?)('.CHAMP_SQL_PLUS_FONC.
683 683
 						')[[:space:]]*(\??)(!?)(<=?|>=?|==?|\b(?:IN|LIKE)\b)(.*)$,is', $param, $m)) {
684 684
 						$a2 = trim($m[8]);
685 685
 						if ($a2 and ($a2[0] == "'" or $a2[0] == '"') and ($a2[0] == substr($a2, -1))) {
@@ -689,8 +689,8 @@  discard block
 block discarded – undo
689 689
 							(($m[2] == 'lang_select') ? $m[2] : $m[7]),
690 690
 							$m[6], $m[5]);
691 691
 						$crit->exclus = $m[1];
692
-					} elseif (preg_match("/^([!]?)\s*(" .
693
-						CHAMP_SQL_PLUS_FONC .
692
+					} elseif (preg_match("/^([!]?)\s*(".
693
+						CHAMP_SQL_PLUS_FONC.
694 694
 						")\s*(\??)(.*)$/is", $param, $m)) {
695 695
 						// contient aussi les comparaisons implicites !
696 696
 						// Comme ci-dessus: 
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
 		$result->descr = $descr;
770 770
 # attention: reperer la premiere des 2 balises: pre_boucle ou boucle
771 771
 
772
-		if (!preg_match("," . BALISE_PRE_BOUCLE . '[0-9_],', $texte, $r)
772
+		if (!preg_match(",".BALISE_PRE_BOUCLE.'[0-9_],', $texte, $r)
773 773
 			or ($n = strpos($texte, $r[0])) === false
774 774
 			or ($n > $pos_boucle)
775 775
 		) {
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
 				strlen(BALISE_PRE_BOUCLE),
790 790
 				$k - strlen(BALISE_PRE_BOUCLE));
791 791
 
792
-			if (!preg_match("," . BALISE_BOUCLE . $id_boucle . "[[:space:]]*\(,", $milieu, $r)) {
792
+			if (!preg_match(",".BALISE_BOUCLE.$id_boucle."[[:space:]]*\(,", $milieu, $r)) {
793 793
 				$err_b = array('zbug_erreur_boucle_syntaxe', array('id' => $id_boucle));
794 794
 				erreur_squelette($err_b, $result);
795 795
 				$texte = substr($texte, $n + 1);
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
 			$milieu = '';
839 839
 		} else {
840 840
 			$milieu = substr($milieu, 1);
841
-			$s = BALISE_FIN_BOUCLE . $id_boucle . ">";
841
+			$s = BALISE_FIN_BOUCLE.$id_boucle.">";
842 842
 			$p = strpos($milieu, $s);
843 843
 			if ($p === false) {
844 844
 				$err_b = array(
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
 		//
858 858
 		// 1. Recuperer la partie conditionnelle apres
859 859
 		//
860
-		$s = BALISE_POST_BOUCLE . $id_boucle . ">";
860
+		$s = BALISE_POST_BOUCLE.$id_boucle.">";
861 861
 		$p = strpos($suite, $s);
862 862
 		if ($p !== false) {
863 863
 			$result->apres = substr($suite, 0, $p);
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
 		//
868 868
 		// 2. Recuperer la partie alternative
869 869
 		//
870
-		$s = BALISE_ALT_BOUCLE . $id_boucle . ">";
870
+		$s = BALISE_ALT_BOUCLE.$id_boucle.">";
871 871
 		$p = strpos($suite, $s);
872 872
 		if ($p !== false) {
873 873
 			$result->altern = substr($suite, 0, $p);
Please login to merge, or discard this patch.
ecrire/public/styliser_par_z.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$apl_constant = '_Z_AJAX_PARALLEL_LOAD';
54 54
 			$page = _SPIP_PAGE;
55 55
 			$echafauder = charger_fonction('echafauder', 'public', true);
56
-			define('_ZCORE_EXCLURE_PATH', '\bprive|\bsquelettes-dist' . (defined('_DIR_PLUGIN_DIST') ? '|\b' . rtrim(_DIR_PLUGIN_DIST,
56
+			define('_ZCORE_EXCLURE_PATH', '\bprive|\bsquelettes-dist'.(defined('_DIR_PLUGIN_DIST') ? '|\b'.rtrim(_DIR_PLUGIN_DIST,
57 57
 						'/') : ''));
58 58
 		}
59 59
 		$prepend = (defined('_Z_PREPEND_PATH') ? _Z_PREPEND_PATH : "");
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 			and in_array($dir, $z_blocs) // verifier deja qu'on est dans un bloc Z
75 75
 			and defined($apl_constant)
76 76
 			and in_array($dir, explode(',', constant($apl_constant))) // et dans un demande en APL
77
-			and $pipe = z_trouver_bloc($prefix_path . $prepend, $dir, 'z_apl', $ext) // et qui contient le squelette APL
77
+			and $pipe = z_trouver_bloc($prefix_path.$prepend, $dir, 'z_apl', $ext) // et qui contient le squelette APL
78 78
 		) {
79 79
 			$flux['data'] = $pipe;
80 80
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 			$echafauder = "";
88 88
 		}
89 89
 		if ($prepend) {
90
-			$squelette = substr(find_in_path($prefix_path . $prepend . "$fond.$ext"), 0, -strlen(".$ext"));
90
+			$squelette = substr(find_in_path($prefix_path.$prepend."$fond.$ext"), 0, -strlen(".$ext"));
91 91
 			if ($squelette) {
92 92
 				$flux['data'] = $squelette;
93 93
 			}
@@ -111,11 +111,11 @@  discard block
 block discarded – undo
111 111
 				// se brancher sur contenu/xx si il existe
112 112
 				// ou si c'est un objet spip, associe a une table, utiliser le fond homonyme
113 113
 				if (!isset($disponible[$fond])) {
114
-					$disponible[$fond] = z_contenu_disponible($prefix_path . $prepend, $z_contenu, $fond, $ext, $echafauder);
114
+					$disponible[$fond] = z_contenu_disponible($prefix_path.$prepend, $z_contenu, $fond, $ext, $echafauder);
115 115
 				}
116 116
 
117 117
 				if ($disponible[$fond]) {
118
-					$flux['data'] = substr(find_in_path($prefix_path . "page.$ext"), 0, -strlen(".$ext"));
118
+					$flux['data'] = substr(find_in_path($prefix_path."page.$ext"), 0, -strlen(".$ext"));
119 119
 				}
120 120
 			}
121 121
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 					$type = $flux['args']['contexte'][$page];
129 129
 				}
130 130
 				if (!isset($disponible[$type])) {
131
-					$disponible[$type] = z_contenu_disponible($prefix_path . $prepend, $z_contenu, $type, $ext, $echafauder);
131
+					$disponible[$type] = z_contenu_disponible($prefix_path.$prepend, $z_contenu, $type, $ext, $echafauder);
132 132
 				}
133 133
 				if (is_string($disponible[$type])) {
134 134
 					$flux['data'] = $disponible[$type];
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 				) {
142 142
 					$flux['data'] = $echafauder($type, $is[0], $is[1], $is[2], $ext);
143 143
 				} else {
144
-					$flux['data'] = ($disponible['404'] = z_contenu_disponible($prefix_path . $prepend, $z_contenu, '404', $ext,
144
+					$flux['data'] = ($disponible['404'] = z_contenu_disponible($prefix_path.$prepend, $z_contenu, '404', $ext,
145 145
 						$echafauder));
146 146
 				}
147 147
 			}
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
 						$type = $flux['args']['contexte'][$page];
161 161
 					}
162 162
 					if ($type !== 'page' and !isset($disponible[$type])) {
163
-						$disponible[$type] = z_contenu_disponible($prefix_path . $prepend, $z_contenu, $type, $ext, $echafauder);
163
+						$disponible[$type] = z_contenu_disponible($prefix_path.$prepend, $z_contenu, $type, $ext, $echafauder);
164 164
 					}
165 165
 					if ($type == 'page' or $disponible[$type]) {
166
-						$flux['data'] = z_trouver_bloc($prefix_path . $prepend, $dir, 'dist', $ext);
166
+						$flux['data'] = z_trouver_bloc($prefix_path.$prepend, $dir, 'dist', $ext);
167 167
 					}
168 168
 				}
169 169
 			}
@@ -178,16 +178,16 @@  discard block
 block discarded – undo
178 178
 			if (isset($flux['args']['contexte']['type-page'])
179 179
 				and (
180 180
 					(isset($flux['args']['contexte']['composition'])
181
-						and file_exists(($f = $squelette . "-" . $flux['args']['contexte']['type-page'] . "-" . $flux['args']['contexte']['composition']) . ".$ext"))
181
+						and file_exists(($f = $squelette."-".$flux['args']['contexte']['type-page']."-".$flux['args']['contexte']['composition']).".$ext"))
182 182
 					or
183
-					file_exists(($f = $squelette . "-" . $flux['args']['contexte']['type-page']) . ".$ext")
183
+					file_exists(($f = $squelette."-".$flux['args']['contexte']['type-page']).".$ext")
184 184
 				)
185 185
 			) {
186 186
 				$flux['data'] = $f;
187 187
 			}
188 188
 		} elseif ($fond == 'structure'
189 189
 			and z_sanitize_var_zajax()
190
-			and $f = find_in_path($prefix_path . $prepend . 'ajax' . ".$ext")
190
+			and $f = find_in_path($prefix_path.$prepend.'ajax'.".$ext")
191 191
 		) {
192 192
 			$flux['data'] = substr($f, 0, -strlen(".$ext"));
193 193
 		} // chercher le fond correspondant a la composition
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 			and $dir = explode('/', $dir)
198 198
 			and $dir = reset($dir)
199 199
 			and in_array($dir, $z_blocs)
200
-			and $f = find_in_path($prefix_path . $prepend . $fond . "-" . $flux['args']['contexte']['composition'] . ".$ext")
200
+			and $f = find_in_path($prefix_path.$prepend.$fond."-".$flux['args']['contexte']['composition'].".$ext")
201 201
 		) {
202 202
 			$flux['data'] = substr($f, 0, -strlen(".$ext"));
203 203
 		}
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
  **/
259 259
 function z_fond_valide($squelette) {
260 260
 	if (!_ZCORE_EXCLURE_PATH
261
-		or !preg_match(',(' . _ZCORE_EXCLURE_PATH . ')/,', $squelette)
261
+		or !preg_match(',('._ZCORE_EXCLURE_PATH.')/,', $squelette)
262 262
 	) {
263 263
 		return true;
264 264
 	}
@@ -381,23 +381,23 @@  discard block
 block discarded – undo
381 381
 		}
382 382
 		$dir = z_blocs(test_espace_prive());
383 383
 		$dir = reset($dir);
384
-		$scaffold = "<INCLURE{fond=prive/echafaudage/$dir/" . $fond . ",objet=" . $type . ",id_objet=#" . strtoupper($primary) . ",env}>";
384
+		$scaffold = "<INCLURE{fond=prive/echafaudage/$dir/".$fond.",objet=".$type.",id_objet=#".strtoupper($primary).",env}>";
385 385
 	} // page objets
386 386
 	elseif ($type = $desc_exec and strpos($type, "/") === false) {
387 387
 		$dir = z_blocs(test_espace_prive());
388 388
 		$dir = reset($dir);
389
-		$scaffold = "<INCLURE{fond=prive/echafaudage/$dir/objets,objet=" . $type . ",env} />";
389
+		$scaffold = "<INCLURE{fond=prive/echafaudage/$dir/objets,objet=".$type.",env} />";
390 390
 	}
391 391
 	// morceau d'objet : on fournit le fond de sibstitution dans $desc_exec
392 392
 	// et objet et tire de $table
393 393
 	elseif ($fond = $desc_exec) {
394 394
 		$dir = md5(dirname($fond));
395
-		$scaffold = "<INCLURE{fond=$fond,objet=" . objet_type($table) . ",env} />";
395
+		$scaffold = "<INCLURE{fond=$fond,objet=".objet_type($table).",env} />";
396 396
 	}
397 397
 
398 398
 	$base_dir = sous_repertoire(_DIR_CACHE, "scaffold", false);
399 399
 	$base_dir = sous_repertoire($base_dir, $dir, false);
400
-	$f = $base_dir . "$exec";
400
+	$f = $base_dir."$exec";
401 401
 	ecrire_fichier("$f.$ext", $scaffold);
402 402
 
403 403
 	return $f;
Please login to merge, or discard this patch.
ecrire/public/format_html.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -29,36 +29,36 @@  discard block
 block discarded – undo
29 29
 
30 30
 function format_inclure_html($file, $args, $prof) {
31 31
 	if (strpos($file, '#') === false) {
32
-		$t = $file ? ("(" . $file . ")") : "";
32
+		$t = $file ? ("(".$file.")") : "";
33 33
 	} else {
34
-		$t = "{fond=" . $file . '}';
34
+		$t = "{fond=".$file.'}';
35 35
 	}
36
-	$args = !$args ? '' : ("{" . join(", ", $args) . "}");
36
+	$args = !$args ? '' : ("{".join(", ", $args)."}");
37 37
 
38
-	return ("<INCLURE" . $t . $args . ">");
38
+	return ("<INCLURE".$t.$args.">");
39 39
 }
40 40
 
41 41
 function format_polyglotte_html($args, $prof) {
42 42
 	$contenu = array();
43 43
 	foreach ($args as $l => $t) {
44
-		$contenu[] = ($l ? "[$l]" : '') . $t;
44
+		$contenu[] = ($l ? "[$l]" : '').$t;
45 45
 	}
46 46
 
47
-	return ("<multi>" . join(" ", $contenu) . "</multi>");
47
+	return ("<multi>".join(" ", $contenu)."</multi>");
48 48
 }
49 49
 
50 50
 function format_idiome_html($nom, $module, $args, $filtres, $prof) {
51 51
 	foreach ($args as $k => $v) {
52 52
 		$args[$k] = "$k=$v";
53 53
 	}
54
-	$args = (!$args ? '' : ('{' . join(',', $args) . '}'));
54
+	$args = (!$args ? '' : ('{'.join(',', $args).'}'));
55 55
 
56
-	return ("<:" . ($module ? "$module:" : "") . $nom . $args . $filtres . ":>");
56
+	return ("<:".($module ? "$module:" : "").$nom.$args.$filtres.":>");
57 57
 }
58 58
 
59 59
 function format_champ_html($nom, $boucle, $etoile, $avant, $apres, $args, $filtres, $prof) {
60 60
 	$nom = "#"
61
-		. ($boucle ? ($boucle . ":") : "")
61
+		. ($boucle ? ($boucle.":") : "")
62 62
 		. $nom
63 63
 		. $etoile
64 64
 		. $args
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
 		$critere[$k] = $crit_s;
89 89
 	}
90 90
 
91
-	return (!$critere ? "" : ("{" . join(",", $critere) . "}"));
91
+	return (!$critere ? "" : ("{".join(",", $critere)."}"));
92 92
 }
93 93
 
94 94
 function format_liste_html($fonc, $args, $prof) {
95 95
 	return ((($fonc !== '') ? "|$fonc" : $fonc)
96
-		. (!$args ? "" : ("{" . join(",", $args) . "}")));
96
+		. (!$args ? "" : ("{".join(",", $args)."}")));
97 97
 }
98 98
 
99 99
 // Concatenation sans separateur: verifier qu'on ne cree pas de faux lexemes
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 			// si un texte se termine par ( et est suivi d'un champ
110 110
 			// ou assimiles, forcer la notation pleine
111 111
 			if ($c1 == '(' and substr($texte2, 0, 1) == '#') {
112
-				$args[$i + 1][0] = '[(' . $texte2 . ')]';
112
+				$args[$i + 1][0] = '[('.$texte2.')]';
113 113
 			}
114 114
 		} else {
115 115
 			if ($type == 'texte') {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 			if (($c1 == '}' and substr(ltrim($texte2), 0, 1) == '|')
122 122
 				or (preg_match('/[\w\d_*]/', $c1) and preg_match('/^[\w\d_*{|]/', $texte2))
123 123
 			) {
124
-				$args[$i][0] = '[(' . $texte . ')]';
124
+				$args[$i][0] = '[('.$texte.')]';
125 125
 			}
126 126
 		}
127 127
 	}
Please login to merge, or discard this patch.
ecrire/public/boucles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
  **/
84 84
 function boucle_HIERARCHIE_dist($id_boucle, &$boucles) {
85 85
 	$boucle = &$boucles[$id_boucle];
86
-	$id_table = $boucle->id_table . ".id_rubrique";
86
+	$id_table = $boucle->id_table.".id_rubrique";
87 87
 
88 88
 	// Si la boucle mere est une boucle RUBRIQUES il faut ignorer la feuille
89 89
 	// sauf en presence du critere {tout} (vu par phraser_html)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		. '$hierarchie = calcul_hierarchie_in($id_rubrique,'
97 97
 		. (isset($boucle->modificateur['tout']) ? 'true' : 'false')
98 98
 		. ");\n\t"
99
-		. 'if (!$hierarchie) return "";' . "\n\t";
99
+		. 'if (!$hierarchie) return "";'."\n\t";
100 100
 
101 101
 	$boucle->where[] = array("'IN'", "'$id_table'", '"($hierarchie)"');
102 102
 
Please login to merge, or discard this patch.
ecrire/public/sandbox.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  *     Texte
42 42
  */
43 43
 function sandbox_composer_texte($texte, &$p) {
44
-	$code = "'" . str_replace(array("\\", "'"), array("\\\\", "\\'"), $texte) . "'";
44
+	$code = "'".str_replace(array("\\", "'"), array("\\\\", "\\'"), $texte)."'";
45 45
 
46 46
 	return $code;
47 47
 }
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
  */
163 163
 function sandbox_filtrer_squelette($skel, $corps, $filtres) {
164 164
 	$series_filtres = func_get_args();
165
-	array_shift($series_filtres);// skel
166
-	array_shift($series_filtres);// corps
165
+	array_shift($series_filtres); // skel
166
+	array_shift($series_filtres); // corps
167 167
 
168 168
 	// proteger les <INCLUDE> et tous les morceaux de php licites
169 169
 	if ($skel['process_ins'] == 'php') {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 	if (is_array($r)) {
212 212
 		$dst[] = $r[0];
213 213
 
214
-		return $src[] = '___' . md5($r[0]) . '___';
214
+		return $src[] = '___'.md5($r[0]).'___';
215 215
 	}
216 216
 
217 217
 	// si on recoit pas un tableau, on renvoit les couples de substitution
Please login to merge, or discard this patch.
ecrire/exec/404.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	echo pipeline('affiche_droite', array('args' => array('exec' => '404', 'exec_erreur' => $exec), 'data' => ''));
43 43
 
44 44
 	echo debut_droite('404', true);
45
-	echo "<h1 class='grostitre'>" . _T('fichier_introuvable', array('fichier' => $exec)) . '</h1>';
45
+	echo "<h1 class='grostitre'>"._T('fichier_introuvable', array('fichier' => $exec)).'</h1>';
46 46
 	echo pipeline('affiche_milieu', array('args' => array('exec' => '404', 'exec_erreur' => $exec), 'data' => ''));
47 47
 
48 48
 	echo fin_gauche(), fin_page();
Please login to merge, or discard this patch.
ecrire/exec/info_plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 		include_spip('inc/minipres');
26 26
 		echo minipres();
27 27
 	} else {
28
-		$plug = _DIR_RACINE . htmlspecialchars(_request('plugin'));
28
+		$plug = _DIR_RACINE.htmlspecialchars(_request('plugin'));
29 29
 		$get_infos = charger_fonction('get_infos', 'plugins');
30 30
 		$dir = "";
31 31
 		if (strncmp($plug, _DIR_PLUGINS, strlen(_DIR_PLUGINS)) == 0) {
Please login to merge, or discard this patch.
ecrire/exec/403.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		$message = _L("Vous n'avez pas le droit d'acc&eacute;der à la page <b>@exec@</b>.", array('exec' => _request('exec')));
38 38
 	}
39 39
 
40
-	$contenu = "<h1 class='grostitre'>" . _T('info_acces_interdit') . '</h1>' . $message;
40
+	$contenu = "<h1 class='grostitre'>"._T('info_acces_interdit').'</h1>'.$message;
41 41
 
42 42
 	if (_request('var_zajax')) {
43 43
 		include_spip('inc/actions');
Please login to merge, or discard this patch.