Completed
Branch master (47aeae)
by cam
06:39
created
ecrire/inc/utils.php 1 patch
Doc Comments   +15 added lines, -3 removed lines patch added patch discarded remove patch
@@ -559,6 +559,9 @@  discard block
 block discarded – undo
559 559
 // pour l'ancre on translitere, vire les non alphanum du debut,
560 560
 // et on remplace ceux a l'interieur ou au bout par -
561 561
 // http://code.spip.net/@ancre_url
562
+/**
563
+ * @param string $ancre
564
+ */
562 565
 function ancre_url($url, $ancre) {
563 566
 	// lever l'#ancre
564 567
 	if (preg_match(',^([^#]*)(#.*)$,', $url, $r)) {
@@ -853,6 +856,9 @@  discard block
 block discarded – undo
853 856
 // Renvoie False si un fichier n'est pas plus vieux que $duree secondes,
854 857
 // sinon renvoie True et le date sauf si ca n'est pas souhaite
855 858
 // http://code.spip.net/@spip_touch
859
+/**
860
+ * @param string $fichier
861
+ */
856 862
 function spip_touch($fichier, $duree = 0, $touch = true) {
857 863
 	if ($duree) {
858 864
 		clearstatcache();
@@ -930,7 +936,7 @@  discard block
 block discarded – undo
930 936
  * @param string $description
931 937
  *     Une description humainement compréhensible de ce que fait la tâche
932 938
  *     (essentiellement pour l’affichage dans la page de suivi de l’espace privé)
933
- * @param array $arguments
939
+ * @param integer[] $arguments
934 940
  *     Facultatif, vide par défaut : les arguments qui seront passés à la fonction, sous forme de tableau PHP
935 941
  * @param string $file
936 942
  *     Facultatif, vide par défaut : nom du fichier à inclure, via `include_spip($file)`
@@ -969,7 +975,7 @@  discard block
 block discarded – undo
969 975
  *
970 976
  * @param int $id_job
971 977
  *  id of jonb to delete
972
- * @return bool
978
+ * @return boolean|string
973 979
  */
974 980
 function job_queue_remove($id_job) {
975 981
 	include_spip('inc/queue');
@@ -1285,6 +1291,9 @@  discard block
 block discarded – undo
1285 1291
 	return $themes;
1286 1292
 }
1287 1293
 
1294
+/**
1295
+ * @return string
1296
+ */
1288 1297
 function find_in_theme($file, $subdir = '', $include = false) {
1289 1298
 	static $themefiles = array();
1290 1299
 	if (isset($themefiles["$subdir$file"])) {
@@ -1699,6 +1708,9 @@  discard block
 block discarded – undo
1699 1708
 }
1700 1709
 
1701 1710
 // http://code.spip.net/@generer_url_entite_absolue
1711
+/**
1712
+ * @param boolean|string $connect
1713
+ */
1702 1714
 function generer_url_entite_absolue($id = '', $entite = '', $args = '', $ancre = '', $connect = null) {
1703 1715
 	if (!$connect) {
1704 1716
 		$connect = true;
@@ -3177,7 +3189,7 @@  discard block
 block discarded – undo
3177 3189
 /**
3178 3190
  * Trouve un squelette dans le repertoire modeles/
3179 3191
  *
3180
- * @param  $nom
3192
+ * @param  string $nom
3181 3193
  * @return string
3182 3194
  */
3183 3195
 function trouve_modele($nom) {
Please login to merge, or discard this patch.