Completed
Branch master (47aeae)
by cam
06:39
created
ecrire/inc/charsets.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  * @param string $charset
38 38
  *     Charset à charger.
39 39
  *     Par défaut (AUTO), utilise le charset du site
40
- * @return string|bool
40
+ * @return string|false
41 41
  *     - Nom du charset
42 42
  *     - false si le charset n'est pas décrit dans le répertoire charsets/
43 43
  **/
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
  *
707 707
  * @param int $num
708 708
  *    Numéro de l'entité unicode
709
- * @return char
709
+ * @return string
710 710
  *    Caractère utf8 si trouvé, '' sinon
711 711
  **/
712 712
 function caractere_utf_8($num) {
Please login to merge, or discard this patch.
ecrire/inc/cvt_autosave.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 /**
24 24
  * Nettoyer les échappements
25 25
  *
26
- * @param $val
26
+ * @param string $val
27 27
  * @return string
28 28
  */
29 29
 function autosave_clean_value($val) {
Please login to merge, or discard this patch.
ecrire/inc/distant.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
  *   permet de specifier le nom du fichier local (stockage d'un cache par exemple, et non document IMG)
65 65
  * @param int $taille_max
66 66
  *   taille maxi de la copie local, par defaut _COPIE_LOCALE_MAX_SIZE
67
- * @return bool|string
67
+ * @return string|false
68 68
  */
69 69
 function copie_locale($source, $mode = 'auto', $local = null, $taille_max = null) {
70 70
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
  * La fonction PHP idn_to_ascii depend d'un package php5-intl et est rarement disponible
247 247
  *
248 248
  * @param string $url_idn
249
- * @return array|string
249
+ * @return string|boolean
250 250
  */
251 251
 function url_to_ascii($url_idn) {
252 252
 
@@ -642,13 +642,13 @@  discard block
 block discarded – undo
642 642
  *
643 643
  * @param string $url
644 644
  *     URL de la page à récupérer
645
- * @param bool|null|string $trans
645
+ * @param boolean $trans
646 646
  *     - chaîne longue : c'est un nom de fichier (nom pour sa copie locale)
647 647
  *     - true : demande d'encodage/charset
648 648
  *     - null : ne retourner que les headers
649 649
  * @param string $get
650 650
  *     Type de requête HTTP à faire (HEAD, GET ou POST)
651
- * @param int|bool $taille_max
651
+ * @param integer $taille_max
652 652
  *     Arrêter le contenu au-delà (0 = seulement les entetes ==> requête HEAD).
653 653
  *     Par defaut taille_max = 1Mo.
654 654
  * @param string|array $datas
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
  *
775 775
  * @param resource $handle
776 776
  * @param int|bool $if_modified_since
777
- * @return bool|array
777
+ * @return string
778 778
  *   int status
779 779
  *   string headers
780 780
  *   int last_modified
@@ -1251,9 +1251,9 @@  discard block
 block discarded – undo
1251 1251
  *   donnees postees
1252 1252
  * @param string $vers
1253 1253
  *   version HTTP
1254
- * @param int|string $date
1254
+ * @param string $date
1255 1255
  *   timestamp pour entente If-Modified-Since
1256
- * @return bool|resource
1256
+ * @return string
1257 1257
  *   false|int si echec
1258 1258
  *   resource socket vers l'url demandee
1259 1259
  */
Please login to merge, or discard this patch.
ecrire/inc/documents.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * @uses _DIR_IMG
44 44
  *
45 45
  * @param string $fichier
46
- * @return bool|string
46
+ * @return string|false
47 47
  */
48 48
 function get_spip_doc($fichier) {
49 49
 	// fichier distant
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
  * @param string $ext
126 126
  * @param string $orig
127 127
  * @param string $source
128
- * @return bool|mixed|string
128
+ * @return string|false
129 129
  */
130 130
 function copier_document($ext, $orig, $source) {
131 131
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
  * @uses sous_repertoire()
163 163
  *
164 164
  * @param string $type
165
- * @return bool|string
165
+ * @return false|string
166 166
  */
167 167
 function determine_upload($type = '') {
168 168
 	if (!function_exists('autoriser')) {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
  * @param bool $move
203 203
  *     - `true` : on déplace le fichier source vers le fichier de destination
204 204
  *     - `false` : valeur par défaut. On ne fait que copier le fichier source vers la destination.
205
- * @return bool|mixed|string
205
+ * @return string|false
206 206
  */
207 207
 function deplacer_fichier_upload($source, $dest, $move = false) {
208 208
 	// Securite
Please login to merge, or discard this patch.
ecrire/inc/editer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
  * utile pour les textes > 32ko
315 315
  *
316 316
  * @param  string $texte
317
- * @return array
317
+ * @return string[]
318 318
  */
319 319
 function coupe_trop_long($texte) {
320 320
 	$aider = charger_fonction('aider', 'inc');
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
  *
348 348
  * @param string $texte
349 349
  * @param string $att_text
350
- * @return array
350
+ * @return string[]
351 351
  */
352 352
 function editer_texte_recolle($texte, $att_text) {
353 353
 	if ((strlen($texte) < 29 * 1024)
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
 /**
374 374
  * auto-renseigner le titre si il n'existe pas
375 375
  *
376
- * @param $champ_titre
377
- * @param $champs_contenu
376
+ * @param string $champ_titre
377
+ * @param string[] $champs_contenu
378 378
  * @param int $longueur
379 379
  */
380 380
 function titre_automatique($champ_titre, $champs_contenu, $longueur = null) {
Please login to merge, or discard this patch.
ecrire/inc/envoyer_mail.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
  * @param string $to
188 188
  * @param string $texte
189 189
  * @param string $parts
190
- * @return array
190
+ * @return string[]
191 191
  */
192 192
 function mail_normaliser_headers($headers, $from, $to, $texte, $parts = '') {
193 193
 	$charset = $GLOBALS['meta']['charset'];
Please login to merge, or discard this patch.
ecrire/inc/filtres.php 1 patch
Doc Comments   +12 added lines, -9 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
  *
70 70
  * @param string $fonc
71 71
  *     Nom du filtre
72
- * @param null $default
72
+ * @param string $default
73 73
  *     Nom du filtre appliqué par défaut si celui demandé n'est pas trouvé
74 74
  * @return string
75 75
  *     Fonction PHP correspondante du filtre demandé
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
  *
117 117
  * @see filtrer() Assez proche
118 118
  *
119
- * @param mixed $arg
119
+ * @param string $arg
120 120
  *     Texte (le plus souvent) sur lequel appliquer le filtre
121 121
  * @param string $filtre
122 122
  *     Nom du filtre à appliquer
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
  *   corriger toutes les `&amp;xx;` en `&xx;`
674 674
  * @param bool $quote
675 675
  *   Échapper aussi les simples quotes en `&#039;`
676
- * @return mixed|string
676
+ * @return string
677 677
  */
678 678
 function entites_html($texte, $tout = false, $quote = true) {
679 679
 	if (!is_string($texte) or !$texte
@@ -1310,7 +1310,7 @@  discard block
 block discarded – undo
1310 1310
  *
1311 1311
  * @param mixed $texte
1312 1312
  *     Contenu de reference a tester
1313
- * @param mixed $sinon
1313
+ * @param string|null $sinon
1314 1314
  *     Contenu a retourner si le contenu de reference est vide
1315 1315
  * @return mixed
1316 1316
  *     Retourne $texte, sinon $sinon.
@@ -1568,7 +1568,7 @@  discard block
 block discarded – undo
1568 1568
  * @param string $letexte
1569 1569
  * @param string $lang
1570 1570
  *     Langue à retrouver (si vide, utilise la langue en cours).
1571
- * @param array $options Options {
1571
+ * @param boolean $options Options {
1572 1572
  * @type bool $echappe_span
1573 1573
  *         True pour échapper les balises span (false par défaut)
1574 1574
  * @type string $lang_defaut
@@ -1658,7 +1658,7 @@  discard block
 block discarded – undo
1658 1658
  * @param string $letexte
1659 1659
  * @param string $lang
1660 1660
  *     Langue à retrouver (si vide, utilise la langue en cours).
1661
- * @param array $options Options {
1661
+ * @param boolean $options Options {
1662 1662
  * @type bool $echappe_span
1663 1663
  *         True pour échapper les balises span (false par défaut)
1664 1664
  * @type string $lang_defaut
@@ -2042,6 +2042,9 @@  discard block
 block discarded – undo
2042 2042
 // Quelques fonctions de calcul arithmetique
2043 2043
 //
2044 2044
 function floatstr($a) { return str_replace(',','.',(string)floatval($a)); }
2045
+/**
2046
+ * @param string $f
2047
+ */
2045 2048
 function strize($f, $a, $b) { return floatstr($f(floatstr($a),floatstr($b))); }
2046 2049
 
2047 2050
 /**
@@ -2184,7 +2187,7 @@  discard block
 block discarded – undo
2184 2187
  *
2185 2188
  * @param string $adresses
2186 2189
  *      Adresse ou liste d'adresse
2187
- * @return bool|string
2190
+ * @return false|string
2188 2191
  *      - false si pas conforme,
2189 2192
  *      - la normalisation de la dernière adresse donnée sinon
2190 2193
  **/
@@ -2518,7 +2521,7 @@  discard block
 block discarded – undo
2518 2521
  * @param int $a
2519 2522
  * @param int $b
2520 2523
  * @param int $c
2521
- * @return int
2524
+ * @return double
2522 2525
  *      Retourne `$a*$b/$c`
2523 2526
  **/
2524 2527
 function regledetrois($a, $b, $c) {
@@ -4551,7 +4554,7 @@  discard block
 block discarded – undo
4551 4554
  *     Nombre d'éléments
4552 4555
  * @param string $objet
4553 4556
  *     Objet
4554
- * @return mixed|string
4557
+ * @return string
4555 4558
  *     Texte traduit du comptage, tel que '3 articles'
4556 4559
  */
4557 4560
 function objet_afficher_nb($nb, $objet) {
Please login to merge, or discard this patch.
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
 // http://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
 // http://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
 // http://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
 // http://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
 
@@ -549,6 +564,9 @@  discard block
 block discarded – undo
549 564
 	return array($checked, $bases);
550 565
 }
551 566
 
567
+/**
568
+ * @param string[] $hidden
569
+ */
552 570
 function install_propager($hidden) {
553 571
 	$res = '';
554 572
 	foreach ($hidden as $k) {
Please login to merge, or discard this patch.
ecrire/inc/invalideur.php 1 patch
Doc Comments   +4 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
@@ -336,6 +336,9 @@  discard block
 block discarded – undo
336 336
 
337 337
 // Calcul des pages : noter dans la base les liens d'invalidation
338 338
 // http://code.spip.net/@maj_invalideurs
339
+/**
340
+ * @param string $fichier
341
+ */
339 342
 function maj_invalideurs($fichier, &$page) {
340 343
 }
341 344
 
Please login to merge, or discard this patch.