@@ -311,7 +311,7 @@ |
||
| 311 | 311 | * peut etre utilise pour l'import depuis xml, |
| 312 | 312 | * ou la copie de base a base (mysql<->sqlite par exemple) |
| 313 | 313 | * |
| 314 | - * @param array $tables |
|
| 314 | + * @param string[] $tables |
|
| 315 | 315 | * @param array $exclure_tables |
| 316 | 316 | * @param string $serveur |
| 317 | 317 | */ |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * Chemin sur lequel le cookie sera disponible |
| 36 | 36 | * @param string $domain |
| 37 | 37 | * Domaine à partir duquel le cookie est disponible |
| 38 | - * @param bool $secure |
|
| 38 | + * @param string|boolean $secure |
|
| 39 | 39 | * cookie sécurisé ou non ? |
| 40 | 40 | * @return bool |
| 41 | 41 | * true si le cookie a été posé, false sinon. |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * Couples champ/valeur à modifier |
| 84 | 84 | * @param string $serveur |
| 85 | 85 | * Nom du connecteur à la base de données |
| 86 | - * @return bool|string |
|
| 86 | + * @return string|false |
|
| 87 | 87 | * - false : Aucune modification, aucun champ n'est à modifier |
| 88 | 88 | * - chaîne vide : Vide si tout s'est bien passé |
| 89 | 89 | * - chaîne : Texte d'un message d'erreur |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | |
| 329 | 329 | /** Array split |
| 330 | 330 | * |
| 331 | - * @param array $a |
|
| 331 | + * @param integer[] $a |
|
| 332 | 332 | * @param int $n |
| 333 | 333 | * @return array |
| 334 | 334 | **/ |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | /** |
| 353 | 353 | * Process and return the hash. |
| 354 | 354 | * |
| 355 | - * @param $str Input string to hash |
|
| 355 | + * @param string $str Input string to hash |
|
| 356 | 356 | * @param $ig_func Option param to ignore checking for php > 5.1.2 |
| 357 | 357 | * @return string Hexadecimal representation of the message digest |
| 358 | 358 | */ |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @param bool|string $stat |
| 85 | 85 | * true, false ou le statut déjà défini si traitements enchaînés. |
| 86 | - * @return bool |
|
| 86 | + * @return false|null |
|
| 87 | 87 | * true si il faut supprimer le fichier temporaire ; false sinon. |
| 88 | 88 | */ |
| 89 | 89 | function statut_effacer_images_temporaires($stat) { |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | * |
| 555 | 555 | * @uses statut_effacer_images_temporaires() |
| 556 | 556 | * |
| 557 | - * @param ressource $img |
|
| 557 | + * @param resource $img |
|
| 558 | 558 | * Une ressource de type Image GD. |
| 559 | 559 | * @param array $valeurs |
| 560 | 560 | * Un tableau des informations (tailles, traitement, path...) accompagnant |
@@ -1400,7 +1400,7 @@ discard block |
||
| 1400 | 1400 | /** |
| 1401 | 1401 | * Transforme une ressource GD en image au format ICO |
| 1402 | 1402 | * |
| 1403 | - * @param array $gd_image_array |
|
| 1403 | + * @param Ressource[] $gd_image_array |
|
| 1404 | 1404 | * Tableau de ressources d'images GD |
| 1405 | 1405 | * @return string |
| 1406 | 1406 | * Image au format ICO |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | * @param int $height_max |
| 123 | 123 | * Hauteur minimale de l'image à traiter (10000 par défaut) |
| 124 | 124 | * @return |
| 125 | - * Le tag html `<img src=... />` avec une class `filtre_inactif` ou pas |
|
| 125 | + string Le tag html `<img src=... />` avec une class `filtre_inactif` ou pas |
|
| 126 | 126 | */ |
| 127 | 127 | function image_select($img, $width_min = 0, $height_min = 0, $width_max = 10000, $height_max = 1000) { |
| 128 | 128 | if (!$img) { |
@@ -644,7 +644,7 @@ |
||
| 644 | 644 | * |
| 645 | 645 | * @param string $dir |
| 646 | 646 | * Répertoire à parcourir |
| 647 | - * @param int|string $pattern |
|
| 647 | + * @param integer $pattern |
|
| 648 | 648 | * Expression régulière pour trouver des fichiers, tel que `[.]lock$` |
| 649 | 649 | * @param int $maxfiles |
| 650 | 650 | * Nombre de fichiers maximums retournés |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * Importer le charset d'une ligne |
| 33 | 33 | * |
| 34 | 34 | * @param string $texte |
| 35 | - * @return array |
|
| 35 | + * @return string |
|
| 36 | 36 | */ |
| 37 | 37 | function importer_csv_importcharset($texte) { |
| 38 | 38 | // le plus frequent, en particulier avec les trucs de ms@@@ |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * @param string $delim |
| 67 | 67 | * @param string $enclos |
| 68 | 68 | * @param int $len |
| 69 | - * @return array |
|
| 69 | + * @return boolean |
|
| 70 | 70 | */ |
| 71 | 71 | function inc_importer_csv_dist($file, $head = false, $delim = ", ", $enclos = '"', $len = 10000) { |
| 72 | 72 | $return = false; |
@@ -31,7 +31,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 175 | 178 | // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax |
| 176 | 179 | // |
| 177 | 180 | // http://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 |
||
| 209 | 215 | } |
| 210 | 216 | |
| 211 | 217 | // http://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++; |