Completed
Pull Request — master (#32)
by
unknown
05:57
created
ecrire/inc/filtres_mini.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 /**
148 148
  * Verifier qu'une url est absolue et que son protocole est bien parmi une liste autorisee
149 149
  * @param string $url_absolue
150
- * @param array $protocoles_autorises
150
+ * @param string[] $protocoles_autorises
151 151
  * @return bool
152 152
  */
153 153
 function protocole_verifier($url_absolue, $protocoles_autorises = array('http','https')) {
Please login to merge, or discard this patch.
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.