Completed
Branch master (47aeae)
by cam
06:39
created
ecrire/base/dump.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@
 block discarded – undo
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
  */
Please login to merge, or discard this patch.
ecrire/inc/cookie.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
ecrire/inc/modifier.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
ecrire/auth/sha256.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		 */
Please login to merge, or discard this patch.
ecrire/inc/filtres_images_lib_mini.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
ecrire/inc/filtres_images_mini.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
ecrire/inc/flock.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -644,7 +644,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
ecrire/inc/importer_csv.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
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
 // 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
 block discarded – undo
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++;
Please login to merge, or discard this patch.