Completed
Pull Request — master (#36)
by
unknown
06:08
created
ecrire/inc/utils.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -946,6 +946,9 @@  discard block
 block discarded – undo
946 946
 // Renvoie False si un fichier n'est pas plus vieux que $duree secondes,
947 947
 // sinon renvoie True et le date sauf si ca n'est pas souhaite
948 948
 // http://code.spip.net/@spip_touch
949
+/**
950
+ * @param string $fichier
951
+ */
949 952
 function spip_touch($fichier, $duree = 0, $touch = true) {
950 953
 	if ($duree) {
951 954
 		clearstatcache();
@@ -1023,7 +1026,7 @@  discard block
 block discarded – undo
1023 1026
  * @param string $description
1024 1027
  *     Une description humainement compréhensible de ce que fait la tâche
1025 1028
  *     (essentiellement pour l’affichage dans la page de suivi de l’espace privé)
1026
- * @param array $arguments
1029
+ * @param integer[] $arguments
1027 1030
  *     Facultatif, vide par défaut : les arguments qui seront passés à la fonction, sous forme de tableau PHP
1028 1031
  * @param string $file
1029 1032
  *     Facultatif, vide par défaut : nom du fichier à inclure, via `include_spip($file)`
@@ -1062,7 +1065,7 @@  discard block
 block discarded – undo
1062 1065
  *
1063 1066
  * @param int $id_job
1064 1067
  *  id of jonb to delete
1065
- * @return bool
1068
+ * @return boolean|string
1066 1069
  */
1067 1070
 function job_queue_remove($id_job) {
1068 1071
 	include_spip('inc/queue');
@@ -1378,6 +1381,9 @@  discard block
 block discarded – undo
1378 1381
 	return $themes;
1379 1382
 }
1380 1383
 
1384
+/**
1385
+ * @return string
1386
+ */
1381 1387
 function find_in_theme($file, $subdir = '', $include = false) {
1382 1388
 	static $themefiles = array();
1383 1389
 	if (isset($themefiles["$subdir$file"])) {
@@ -1792,6 +1798,9 @@  discard block
 block discarded – undo
1792 1798
 }
1793 1799
 
1794 1800
 // http://code.spip.net/@generer_url_entite_absolue
1801
+/**
1802
+ * @param boolean|string $connect
1803
+ */
1795 1804
 function generer_url_entite_absolue($id = '', $entite = '', $args = '', $ancre = '', $connect = null) {
1796 1805
 	if (!$connect) {
1797 1806
 		$connect = true;
@@ -2049,7 +2058,7 @@  discard block
 block discarded – undo
2049 2058
  *
2050 2059
  * @param string $script
2051 2060
  *     Nom de la page
2052
- * @param string|array $args
2061
+ * @param string $args
2053 2062
  *     Arguments à transmettre a l'URL,
2054 2063
  *      soit sous la forme d'un string tel que `arg1=yy&arg2=zz`
2055 2064
  *      soit sous la forme d'un array tel que array( `arg1` => `yy`, `arg2` => `zz` )
@@ -3224,7 +3233,7 @@  discard block
 block discarded – undo
3224 3233
 /**
3225 3234
  * Trouve un squelette dans le repertoire modeles/
3226 3235
  *
3227
- * @param  $nom
3236
+ * @param  string $nom
3228 3237
  * @return string
3229 3238
  */
3230 3239
 function trouve_modele($nom) {
@@ -3397,7 +3406,7 @@  discard block
 block discarded – undo
3397 3406
 		 *
3398 3407
 		 * @param array $input A multi-dimensional array (record set) from which to pull
3399 3408
 		 *                     a column of values.
3400
-		 * @param mixed $columnKey The column of values to return. This value may be the
3409
+		 * @param string $columnKey The column of values to return. This value may be the
3401 3410
 		 *                         integer key of the column you wish to retrieve, or it
3402 3411
 		 *                         may be the string key name for an associative array.
3403 3412
 		 * @param mixed $indexKey (Optional.) The column to use as the index/keys for
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 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.