Completed
Push — master ( 9f5c8b...067bd7 )
by cam
04:23
created
ecrire/inc/install.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -234,6 +234,9 @@  discard block
 block discarded – undo
234 234
 
235 235
 
236 236
 // https://code.spip.net/@info_etape
237
+/**
238
+ * @param string $titre
239
+ */
237 240
 function info_etape($titre, $complement = '') {
238 241
 	return "<h2>" . $titre . "</h2>\n" .
239 242
 	($complement ? "" . $complement . "\n" : '');
@@ -259,6 +262,11 @@  discard block
 block discarded – undo
259 262
 }
260 263
 
261 264
 // https://code.spip.net/@info_progression_etape
265
+/**
266
+ * @param integer $en_cours
267
+ * @param string $phase
268
+ * @param string $dir
269
+ */
262 270
 function info_progression_etape($en_cours, $phase, $dir, $erreur = false) {
263 271
 	//$en_cours = _request('etape')?_request('etape'):"";
264 272
 	$liste = find_all_in_path($dir, $phase . '(([0-9])+|fin)[.]php$');
@@ -315,6 +323,9 @@  discard block
 block discarded – undo
315 323
 
316 324
 
317 325
 // https://code.spip.net/@fieldset
326
+/**
327
+ * @param string $legend
328
+ */
318 329
 function fieldset($legend, $champs = array(), $apres = '', $avant = '') {
319 330
 	return "<fieldset>\n" .
320 331
 	$avant .
@@ -382,6 +393,10 @@  discard block
 block discarded – undo
382 393
 }
383 394
 
384 395
 // https://code.spip.net/@install_connexion_form
396
+/**
397
+ * @param string[] $pass
398
+ * @param integer $etape
399
+ */
385 400
 function install_connexion_form($db, $login, $pass, $predef, $hidden, $etape, $jquery = true) {
386 401
 	$server_db = (is_string($predef[0])) ? $predef[0] : '';
387 402
 
@@ -559,6 +574,9 @@  discard block
 block discarded – undo
559 574
 	return array($checked, $bases);
560 575
 }
561 576
 
577
+/**
578
+ * @param string[] $hidden
579
+ */
562 580
 function install_propager($hidden) {
563 581
 	$res = '';
564 582
 	foreach ($hidden as $k) {
Please login to merge, or discard this patch.
ecrire/inc/invalideur.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  * On ne calcule que la racine pour pour aller vite.
42 42
  *
43 43
  * @param string $dir Chemin du répertoire
44
- * @param string $nb_estim_taille Nombre de fichiers maximum pour estimer la taille
44
+ * @param integer $nb_estim_taille Nombre de fichiers maximum pour estimer la taille
45 45
  * @return bool|array
46 46
  *
47 47
  *     - false si le répertoire ne peut pas être ouvert
@@ -270,6 +270,10 @@  discard block
 block discarded – undo
270 270
 // (note: si absente, n'est pas appellee)
271 271
 
272 272
 // https://code.spip.net/@calcul_invalideurs
273
+/**
274
+ * @param string $corps
275
+ * @param string $id_boucle
276
+ */
273 277
 function calcul_invalideurs($corps, $primary, &$boucles, $id_boucle) {
274 278
 	if ($calcul_invalideurs = charger_fonction('calcul_invalideurs', 'inc', true)) {
275 279
 		return $calcul_invalideurs($corps, $primary, $boucles, $id_boucle);
@@ -292,6 +296,9 @@  discard block
 block discarded – undo
292 296
 
293 297
 // Calcul des pages : noter dans la base les liens d'invalidation
294 298
 // https://code.spip.net/@maj_invalideurs
299
+/**
300
+ * @param string $fichier
301
+ */
295 302
 function maj_invalideurs($fichier, &$page) {
296 303
 	if ($maj_invalideurs = charger_fonction('maj_invalideurs', 'inc', true)) {
297 304
 		return $maj_invalideurs($fichier, $page);
Please login to merge, or discard this patch.
ecrire/inc/lang.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
  *
32 32
  * @param string $lang
33 33
  *     La langue à utiliser
34
- * @return string|bool
34
+ * @return false|string
35 35
  *     string : La langue qui a été utilisée si trouvée
36 36
  *     false : aucune langue ne correspondait à la demande
37 37
  **/
@@ -80,6 +80,9 @@  discard block
 block discarded – undo
80 80
 // retourne son 2e argument si c'est un index du premier
81 81
 // ou un index approchant sinon et si possible, 
82 82
 // la langue X etant consideree comme une approche de X_Y
83
+/**
84
+ * @return string
85
+ */
83 86
 function approcher_langue($trads, $lang = '') {
84 87
 
85 88
 	if (!$lang) {
@@ -175,6 +178,9 @@  discard block
 block discarded – undo
175 178
 // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax
176 179
 // 
177 180
 // https://code.spip.net/@menu_langues
181
+/**
182
+ * @param string $nom_select
183
+ */
178 184
 function menu_langues($nom_select, $default = '') {
179 185
 	include_spip('inc/actions');
180 186
 
@@ -209,6 +215,10 @@  discard block
 block discarded – undo
209 215
 }
210 216
 
211 217
 // https://code.spip.net/@select_langues
218
+/**
219
+ * @param string $change
220
+ * @param string $options
221
+ */
212 222
 function select_langues($nom_select, $change, $options, $label = "") {
213 223
 	static $cpt = 0;
214 224
 	$id = "menu_langues" . $cpt++;
Please login to merge, or discard this patch.
ecrire/inc/lien.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
 define('_RACCOURCI_LIEN', "/\[([^][]*?([[]\w*[]][^][]*)*)->(>?)([^]]*)\]/msS");
43 43
 
44 44
 // https://code.spip.net/@expanser_liens
45
+/**
46
+ * @return string
47
+ */
45 48
 function expanser_liens($t, $connect = '', $env = array()) {
46 49
 
47 50
 	$t = pipeline('pre_liens', $t);
@@ -56,6 +59,9 @@  discard block
 block discarded – undo
56 59
 // Meme analyse mais pour eliminer les liens
57 60
 // et ne laisser que leur titre, a expliciter si ce n'est fait
58 61
 // https://code.spip.net/@nettoyer_raccourcis_typo
62
+/**
63
+ * @param string $texte
64
+ */
59 65
 function nettoyer_raccourcis_typo($texte, $connect = '') {
60 66
 	return $texte;
61 67
 }
@@ -96,6 +102,9 @@  discard block
 block discarded – undo
96 102
 // 'url':   seulement U  (i.e. generer_url_RACCOURCI)
97 103
 
98 104
 // https://code.spip.net/@calculer_url
105
+/**
106
+ * @return string
107
+ */
99 108
 function calculer_url($ref, $texte = '', $pour = 'url', $connect = '', $echappe_typo = true) {
100 109
 	$r = traiter_lien_implicite($ref, $texte, $pour, $connect, $echappe_typo);
101 110
 
@@ -256,7 +265,7 @@  discard block
 block discarded – undo
256 265
  * @param int $id Identifiant de l'objet
257 266
  * @param string $type Type d'objet
258 267
  * @param string|null $connect Connecteur SQL utilisé
259
- * @return array {
268
+ * @return string {
260 269
  * @var string $titre Titre si présent, sinon ''
261 270
  * @var string $lang Langue si présente, sinon ''
262 271
  * }
@@ -302,6 +311,9 @@  discard block
 block discarded – undo
302 311
 define('_RACCOURCI_MODELE_DEBUT', '@^' . _RACCOURCI_MODELE . '@isS');
303 312
 
304 313
 // https://code.spip.net/@traiter_modeles
314
+/**
315
+ * @return string
316
+ */
305 317
 function traiter_modeles($texte, $doublons = false, $echap = '', $connect = '', $liens = null, $env = array()) {
306 318
 	// preserver la compatibilite : true = recherche des documents
307 319
 	if ($doublons === true) {
Please login to merge, or discard this patch.
ecrire/inc/math.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 //
22 22
 
23 23
 // https://code.spip.net/@image_math
24
+/**
25
+ * @param string $tex
26
+ */
24 27
 function produire_image_math($tex) {
25 28
 
26 29
 	switch ($GLOBALS['traiter_math']) {
Please login to merge, or discard this patch.
ecrire/inc/presentation.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 include_spip('inc/filtres_boites');
31 31
 
32 32
 // https://code.spip.net/@debut_cadre
33
+/**
34
+ * @param string $style
35
+ */
33 36
 function debut_cadre($style, $icone = "", $fonction = "", $titre = "", $id = "", $class = "", $padding = true) {
34 37
 	$style_mapping = array(
35 38
 		'r' => 'simple',
@@ -183,6 +186,10 @@  discard block
 block discarded – undo
183 186
 function fin_onglet() { return "</ul></div>\n"; }
184 187
 
185 188
 // https://code.spip.net/@onglet
189
+/**
190
+ * @param string $texte
191
+ * @param string $onglet
192
+ */
186 193
 function onglet($texte, $lien, $onglet_ref, $onglet, $icone = "") {
187 194
 	return "<li>"
188 195
 	. ($icone ? http_img_pack($icone, '', " class='cadre-icone'") : '')
Please login to merge, or discard this patch.
ecrire/inc/texte_mini.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
 // une $source differente ; le script detecte automagiquement si ce qu'on
79 79
 // echappe est un div ou un span
80 80
 // https://code.spip.net/@code_echappement
81
+/**
82
+ * @param string $mode
83
+ */
81 84
 function code_echappement($rempl, $source = '', $no_transform = false, $mode = null) {
82 85
 	if (!strlen($rempl)) {
83 86
 		return '';
@@ -282,6 +285,9 @@  discard block
 block discarded – undo
282 285
 // Reinserer le javascript de confiance (venant des modeles)
283 286
 
284 287
 // https://code.spip.net/@echappe_retour_modeles
288
+/**
289
+ * @param string $letexte
290
+ */
285 291
 function echappe_retour_modeles($letexte, $interdire_scripts = false) {
286 292
 	$letexte = echappe_retour($letexte);
287 293
 
@@ -427,6 +433,9 @@  discard block
 block discarded – undo
427 433
 }
428 434
 
429 435
 
436
+/**
437
+ * @param string $letexte
438
+ */
430 439
 function echapper_faux_tags($letexte) {
431 440
 	if (strpos($letexte, '<') === false) {
432 441
 		return $letexte;
Please login to merge, or discard this patch.
ecrire/inc/utils.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -985,6 +985,9 @@  discard block
 block discarded – undo
985 985
 // Renvoie False si un fichier n'est pas plus vieux que $duree secondes,
986 986
 // sinon renvoie True et le date sauf si ca n'est pas souhaite
987 987
 // https://code.spip.net/@spip_touch
988
+/**
989
+ * @param string $fichier
990
+ */
988 991
 function spip_touch($fichier, $duree = 0, $touch = true) {
989 992
 	if ($duree) {
990 993
 		clearstatcache();
@@ -1062,7 +1065,7 @@  discard block
 block discarded – undo
1062 1065
  * @param string $description
1063 1066
  *     Une description humainement compréhensible de ce que fait la tâche
1064 1067
  *     (essentiellement pour l’affichage dans la page de suivi de l’espace privé)
1065
- * @param array $arguments
1068
+ * @param integer[] $arguments
1066 1069
  *     Facultatif, vide par défaut : les arguments qui seront passés à la fonction, sous forme de tableau PHP
1067 1070
  * @param string $file
1068 1071
  *     Facultatif, vide par défaut : nom du fichier à inclure, via `include_spip($file)`
@@ -1101,7 +1104,7 @@  discard block
 block discarded – undo
1101 1104
  *
1102 1105
  * @param int $id_job
1103 1106
  *  id of jonb to delete
1104
- * @return bool
1107
+ * @return boolean|string
1105 1108
  */
1106 1109
 function job_queue_remove($id_job) {
1107 1110
 	include_spip('inc/queue');
@@ -1417,6 +1420,9 @@  discard block
 block discarded – undo
1417 1420
 	return $themes;
1418 1421
 }
1419 1422
 
1423
+/**
1424
+ * @return string
1425
+ */
1420 1426
 function find_in_theme($file, $subdir = '', $include = false) {
1421 1427
 	static $themefiles = array();
1422 1428
 	if (isset($themefiles["$subdir$file"])) {
@@ -1861,6 +1867,9 @@  discard block
 block discarded – undo
1861 1867
 }
1862 1868
 
1863 1869
 // https://code.spip.net/@generer_url_entite_absolue
1870
+/**
1871
+ * @param boolean|string $connect
1872
+ */
1864 1873
 function generer_url_entite_absolue($id = '', $entite = '', $args = '', $ancre = '', $connect = null) {
1865 1874
 	if (!$connect) {
1866 1875
 		$connect = true;
@@ -2118,7 +2127,7 @@  discard block
 block discarded – undo
2118 2127
  *
2119 2128
  * @param string $script
2120 2129
  *     Nom de la page
2121
- * @param string|array $args
2130
+ * @param string $args
2122 2131
  *     Arguments à transmettre a l'URL,
2123 2132
  *      soit sous la forme d'un string tel que `arg1=yy&arg2=zz`
2124 2133
  *      soit sous la forme d'un array tel que array( `arg1` => `yy`, `arg2` => `zz` )
@@ -3315,7 +3324,7 @@  discard block
 block discarded – undo
3315 3324
 /**
3316 3325
  * Trouve un squelette dans le repertoire modeles/
3317 3326
  *
3318
- * @param  $nom
3327
+ * @param  string $nom
3319 3328
  * @return string
3320 3329
  */
3321 3330
 function trouve_modele($nom) {
@@ -3533,7 +3542,7 @@  discard block
 block discarded – undo
3533 3542
 		 *
3534 3543
 		 * @param array $input A multi-dimensional array (record set) from which to pull
3535 3544
 		 *                     a column of values.
3536
-		 * @param mixed $columnKey The column of values to return. This value may be the
3545
+		 * @param string $columnKey The column of values to return. This value may be the
3537 3546
 		 *                         integer key of the column you wish to retrieve, or it
3538 3547
 		 *                         may be the string key name for an associative array.
3539 3548
 		 * @param mixed $indexKey (Optional.) The column to use as the index/keys for
Please login to merge, or discard this patch.
ecrire/install/etape_3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -248,6 +248,9 @@
 block discarded – undo
248 248
 
249 249
 
250 250
 // https://code.spip.net/@install_premier_auteur
251
+/**
252
+ * @param string $hidden
253
+ */
251 254
 function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_obligatoire) {
252 255
 	return info_progression_etape(3, 'etape_', 'install/') .
253 256
 	info_etape(
Please login to merge, or discard this patch.