@@ -64,7 +64,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | */ |
@@ -314,7 +314,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) { |
@@ -187,7 +187,7 @@ |
||
| 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']; |
@@ -623,11 +623,11 @@ |
||
| 623 | 623 | * |
| 624 | 624 | * @param $liste |
| 625 | 625 | * Liste de description des plugins |
| 626 | - * @param $nom |
|
| 626 | + * @param string $nom |
|
| 627 | 627 | * Le plugin donc on cherche la presence |
| 628 | 628 | * @param $intervalle |
| 629 | 629 | * L'éventuelle intervalle de compatibilité de la dépendance. ex: [1.1.0;] |
| 630 | - * @param $balise |
|
| 630 | + * @param string $balise |
|
| 631 | 631 | * Permet de définir si on teste un utilise ou un nécessite |
| 632 | 632 | * @return string. |
| 633 | 633 | * Vide si ok, |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * @param string $primary |
| 166 | 166 | * @param array $rows |
| 167 | 167 | * @param string $serveur |
| 168 | - * @return array |
|
| 168 | + * @return string[] |
|
| 169 | 169 | */ |
| 170 | 170 | function generer_select_where_explicites($table, $primary, $rows, $serveur) { |
| 171 | 171 | # calculer le {id_article IN()} et le {... as points} |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Raccourcis dépendant du sens de la langue |
| 33 | 33 | * |
| 34 | - * @return array Tablea ('','') |
|
| 34 | + * @return string[] Tablea ('','') |
|
| 35 | 35 | */ |
| 36 | 36 | function definir_raccourcis_alineas() { |
| 37 | 37 | return array('', ''); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | * Ne fait rien ici. Voir plugin Textwheel |
| 355 | 355 | * |
| 356 | 356 | * @param string $letexte |
| 357 | - * @param null $forcer |
|
| 357 | + * @param boolean|null $forcer |
|
| 358 | 358 | * @return string |
| 359 | 359 | */ |
| 360 | 360 | function paragrapher($letexte, $forcer = true) { |
@@ -245,7 +245,7 @@ |
||
| 245 | 245 | * @param array $matches |
| 246 | 246 | * Branches de l'arbre validant la rexgep |
| 247 | 247 | * @param bool $init ? |
| 248 | - * @return bool |
|
| 248 | + * @return integer |
|
| 249 | 249 | * false si aucun élément ne valide l'expression régulière, true sinon. |
| 250 | 250 | **/ |
| 251 | 251 | function spip_xml_match_nodes($regexp, &$arbre, &$matches, $init = true) { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Déclarer les critères exceptions |
| 135 | 135 | * |
| 136 | - * @return array |
|
| 136 | + * @return string[] |
|
| 137 | 137 | */ |
| 138 | 138 | public function exception_des_criteres() { |
| 139 | 139 | return array('tableau'); |
@@ -787,7 +787,7 @@ discard block |
||
| 787 | 787 | * pour la syntaxe cf la fonction spip preg_files |
| 788 | 788 | * |
| 789 | 789 | * @param string $dir |
| 790 | - * @param string $regexp |
|
| 790 | + * @param integer $regexp |
|
| 791 | 791 | * @param int $limit |
| 792 | 792 | * @return array|bool |
| 793 | 793 | */ |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | /** |
| 827 | 827 | * Object -> tableau |
| 828 | 828 | * |
| 829 | - * @param Object $object |
|
| 829 | + * @param SimpleXMLIterator $object |
|
| 830 | 830 | * @return array|bool |
| 831 | 831 | */ |
| 832 | 832 | function XMLObjectToArray($object) { |
@@ -457,6 +457,10 @@ |
||
| 457 | 457 | * aller a la position $n en parcourant |
| 458 | 458 | * un par un tous les elements |
| 459 | 459 | */ |
| 460 | + |
|
| 461 | + /** |
|
| 462 | + * @param integer $n |
|
| 463 | + */ |
|
| 460 | 464 | private function seek_loop($n) { |
| 461 | 465 | if ($this->pos > $n) { |
| 462 | 466 | $this->rewind(); |