Completed
Push — spip-3.0 ( cd2822...016705 )
by cam
08:31
created
ecrire/install/etape_3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -184,6 +184,9 @@
 block discarded – undo
184 184
 
185 185
 
186 186
 // http://doc.spip.org/@install_premier_auteur
187
+/**
188
+ * @param string $hidden
189
+ */
187 190
 function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_obligatoire)
188 191
 {
189 192
 	return info_progression_etape(3,'etape_','install/') .
Please login to merge, or discard this patch.
ecrire/public/composer.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
113 113
 	return $nom ? $nom : false;
114 114
 }
115 115
 
116
+/**
117
+ * @param string $phpfile
118
+ */
116 119
 function squelette_traduit($squelette, $sourcefile, $phpfile, $boucles)
117 120
 {
118 121
 
@@ -135,6 +138,9 @@  discard block
 block discarded – undo
135 138
 
136 139
 // Le squelette compile est-il trop vieux ?
137 140
 // http://doc.spip.org/@squelette_obsolete
141
+/**
142
+ * @param string $skel
143
+ */
138 144
 function squelette_obsolete($skel, $squelette) {
139 145
 	static $date_change = null;
140 146
 	// ne verifier la date de mes_fonctions et mes_options qu'une seule fois
@@ -470,6 +476,9 @@  discard block
 block discarded – undo
470 476
 	return false;
471 477
 }
472 478
 // http://doc.spip.org/@remplace_sous_requete
479
+/**
480
+ * @param string $sousrequete
481
+ */
473 482
 function remplace_sous_requete($w,$sousrequete){
474 483
 	if (is_array($w)) {
475 484
 		if (in_array(reset($w),array("SELF","SUBSELECT"))) return $sousrequete;
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -200,6 +200,9 @@  discard block
 block discarded – undo
200 200
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
201 201
 
202 202
 // http://doc.spip.org/@phraser_champs_etendus
203
+/**
204
+ * @param integer $ligne
205
+ */
203 206
 function phraser_champs_etendus($texte, $ligne, $result){
204 207
 	if ($texte==="") return $result;
205 208
 	$sep = '##';
@@ -216,6 +219,9 @@  discard block
 block discarded – undo
216 219
 // Tres chevelu
217 220
 
218 221
 // http://doc.spip.org/@phraser_args
222
+/**
223
+ * @param string $fin
224
+ */
219 225
 function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ){
220 226
 	$texte = ltrim($texte);
221 227
 	while (($texte!=="") && strpos($fin, $texte[0])===false){
@@ -230,6 +236,9 @@  discard block
 block discarded – undo
230 236
 }
231 237
 
232 238
 // http://doc.spip.org/@phraser_arg
239
+/**
240
+ * @param string $texte
241
+ */
233 242
 function phraser_arg(&$texte, $sep, $result, &$pointeur_champ){
234 243
 	preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
235 244
 	$suite = ltrim($match[2]);
@@ -355,6 +364,9 @@  discard block
 block discarded – undo
355 364
 
356 365
 
357 366
 // http://doc.spip.org/@phraser_champs_exterieurs
367
+/**
368
+ * @param string $texte
369
+ */
358 370
 function phraser_champs_exterieurs($texte, $ligne, $sep, $nested){
359 371
 	$res = array();
360 372
 	while (($p = strpos($texte, "%$sep"))!==false){
@@ -372,6 +384,9 @@  discard block
 block discarded – undo
372 384
 }
373 385
 
374 386
 // http://doc.spip.org/@phraser_champs_interieurs
387
+/**
388
+ * @param string $sep
389
+ */
375 390
 function phraser_champs_interieurs($texte, $ligne, $sep, $result){
376 391
 	$i = 0; // en fait count($result)
377 392
 	$x = "";
@@ -634,6 +649,10 @@  discard block
 block discarded – undo
634 649
 }
635 650
 
636 651
 // http://doc.spip.org/@phraser_critere_infixe
652
+/**
653
+ * @param string $arg1
654
+ * @param string $arg2
655
+ */
637 656
 function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond){
638 657
 	$args[0] = new Texte;
639 658
 	$args[0]->texte = $arg1;
Please login to merge, or discard this patch.
ecrire/public/quete.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
  * retourne l'url de redirection d'un article virtuel, seulement si il est publié
25 25
  * http://doc.spip.org/@quete_chapo
26 26
  *
27
- * @param $id_article
28
- * @param $connect
29
- * @return array|bool|null
27
+ * @param integer $id_article
28
+ * @param string $connect
29
+ * @return string
30 30
  */
31 31
 function quete_virtuel($id_article, $connect) {
32 32
 	return sql_getfetsel('virtuel', 'spip_articles', array("id_article=".intval($id_article), "statut='publie'"), '','','','',$connect);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  * http://doc.spip.org/@quete_rubrique
92 92
  *
93 93
  * @param int $id_article
94
- * @param $serveur
94
+ * @param string $serveur
95 95
  * @return
96 96
  */
97 97
 function quete_rubrique($id_article, $serveur) {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
  *
221 221
  * @param int $id_document
222 222
  * @param string $serveur
223
- * @return array|bool|null
223
+ * @return string
224 224
  */
225 225
 function quete_fichier($id_document, $serveur='') {
226 226
 	return sql_getfetsel('fichier', 'spip_documents', ("id_document=" . intval($id_document)),	'',array(), '', '', $serveur);
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
  *
243 243
  * http://doc.spip.org/@quete_meta
244 244
  *
245
- * @param $nom
246
- * @param $serveur
245
+ * @param string $nom
246
+ * @param string $serveur
247 247
  * @return array|bool|null
248 248
  */
249 249
 function quete_meta($nom, $serveur) {
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
  * 
22 22
  */
23 23
 // http://doc.spip.org/@_sqlite_init_functions
24
+/**
25
+ * @param PDO $sqlite
26
+ */
24 27
 function _sqlite_init_functions(&$sqlite){
25 28
 	
26 29
 	if (!$sqlite) return false;
@@ -89,6 +92,9 @@  discard block
 block discarded – undo
89 92
 
90 93
 // permet au besoin de charger des fonctions ailleurs par _sqlite_init_functions();
91 94
 // http://doc.spip.org/@_sqlite_add_function
95
+/**
96
+ * @param string $f
97
+ */
92 98
 function _sqlite_add_function(&$sqlite, &$f, &$r){
93 99
 	if (_sqlite_is_version(3, $sqlite)){
94 100
 		isset($r[1])
Please login to merge, or discard this patch.
ecrire/xml/sax.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
 	  : xml_entites_html($data);
97 97
 }
98 98
 
99
+/**
100
+ * @param IndenteurXML $phraseur
101
+ */
99 102
 function xml_piElement($phraseur, $target, $data)
100 103
 {
101 104
 	$depth = $phraseur->depth;
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
 
114 117
 
115 118
 // http://doc.spip.org/@xml_defautElement
119
+/**
120
+ * @param IndenteurXML $phraseur
121
+ */
116 122
 function xml_defaultElement($phraseur, $data)
117 123
 {
118 124
 	$depth = $phraseur->depth;
@@ -144,6 +150,9 @@  discard block
 block discarded – undo
144 150
 }
145 151
 
146 152
 // http://doc.spip.org/@coordonnees_erreur
153
+/**
154
+ * @param string $msg
155
+ */
147 156
 function coordonnees_erreur($phraseur, $msg)
148 157
 {
149 158
 	$entete_length = substr_count($phraseur->entete,"\n");
Please login to merge, or discard this patch.
prive/formulaires/configurer_multilinguisme.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
80 80
 }
81 81
 
82 82
 
83
+/**
84
+ * @param string $name
85
+ */
83 86
 function saisie_langues_utiles($name, $selection) {
84 87
 	include_spip('inc/lang_liste');
85 88
 	$langues = $GLOBALS['codes_langues'];
Please login to merge, or discard this patch.
ecrire/inc/chercher_rubrique.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -62,6 +62,11 @@  discard block
 block discarded – undo
62 62
 }
63 63
 
64 64
 // http://doc.spip.org/@sous_menu_rubriques
65
+/**
66
+ * @param integer $root
67
+ * @param integer $niv
68
+ * @param integer $exclus
69
+ */
65 70
 function sous_menu_rubriques($id_rubrique, $root, $niv, &$data, &$enfants, $exclus, $restreint, $type) {
66 71
 	static $decalage_secteur;
67 72
 
@@ -205,6 +210,12 @@  discard block
 block discarded – undo
205 210
 // getElement en mode Ajax est trop couteux).
206 211
 
207 212
 // http://doc.spip.org/@construire_selecteur
213
+/**
214
+ * @param string $url
215
+ * @param string $js
216
+ * @param string $idom
217
+ * @param string $name
218
+ */
208 219
 function construire_selecteur($url, $js, $idom, $name, $init='', $id=0){
209 220
 	$icone = (strpos($idom, 'auteur')!==false) ? 'auteur-24.png' : 'rechercher-20.png';
210 221
 	return
Please login to merge, or discard this patch.