Completed
Pull Request — master (#36)
by
unknown
06:08
created
ecrire/inc/puce_statut.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -415,6 +415,13 @@
 block discarded – undo
415 415
 }
416 416
 
417 417
 
418
+/**
419
+ * @param integer $id
420
+ * @param string $type
421
+ * @param double $n
422
+ * @param string|null $img
423
+ * @param string $titre
424
+ */
418 425
 function afficher_script_statut($id, $type, $n, $img, $statut, $titre, $act = '') {
419 426
 	$h = generer_action_auteur("instituer_objet", "$type-$id-$statut");
420 427
 	$h = "selec_statut('$id', '$type', $n, jQuery('img',this).attr('src'), '$h');return false;";
Please login to merge, or discard this patch.
ecrire/inc/rubriques.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
  *     Ancien statut de la rubrique
51 51
  * @param bool $postdate
52 52
  *     true pour recalculer aussi la date du prochain article post-daté
53
- * @return bool
53
+ * @return boolean|null
54 54
  *     true si le statut change effectivement
55 55
  **/
56 56
 function calculer_rubriques_if($id_rubrique, $modifs, $statut_ancien = '', $postdate = false) {
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
  * de la rubrique parente lorsque langue_choisie est différent de oui,
425 425
  * et les corrige.
426 426
  *
427
- * @return bool
427
+ * @return boolean|string
428 428
  *     true si un changement a eu lieu
429 429
  **/
430 430
 function calculer_langues_rubriques_etape() {
Please login to merge, or discard this patch.
ecrire/inc/texte.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
ecrire/inc/xml.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
ecrire/install/etape_3.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -235,6 +235,9 @@
 block discarded – undo
235 235
 
236 236
 
237 237
 // http://code.spip.net/@install_premier_auteur
238
+/**
239
+ * @param string $hidden
240
+ */
238 241
 function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_obligatoire) {
239 242
 	return info_progression_etape(3, 'etape_', 'install/') .
240 243
 	info_etape(
Please login to merge, or discard this patch.
ecrire/iterateur/data.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
ecrire/plugins/afficher_plugin.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -121,6 +121,10 @@  discard block
 block discarded – undo
121 121
 // checkbox pour activer ou desactiver
122 122
 // si ce n'est pas une extension
123 123
 
124
+/**
125
+ * @param integer $id_input
126
+ * @param string $file
127
+ */
124 128
 function plugin_checkbox($id_input, $file, $actif) {
125 129
 	$name = substr(md5($file), 0, 16);
126 130
 
@@ -185,6 +189,9 @@  discard block
 block discarded – undo
185 189
 	. "</div>";
186 190
 }
187 191
 
192
+/**
193
+ * @param string $nom
194
+ */
188 195
 function plugin_desintalle($plug_file, $nom, $dir_plugins = null) {
189 196
 	if (!$dir_plugins) {
190 197
 		$dir_plugins = _DIR_PLUGINS;
Please login to merge, or discard this patch.
ecrire/plugins/afficher_repertoires.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -75,11 +75,19 @@
 block discarded – undo
75 75
 // vraiment n'importe quoi la gestion des chemins des plugins
76 76
 // une fonction pour aider...
77 77
 // http://code.spip.net/@chemin_plug
78
+/**
79
+ * @param string $racine
80
+ *
81
+ * @return string
82
+ */
78 83
 function chemin_plug($racine, $plug) {
79 84
 	return preg_replace(',[^/]+/\.\./,', '', "$racine/$plug");
80 85
 }
81 86
 
82 87
 // http://code.spip.net/@tree_open_close_dir
88
+/**
89
+ * @param string $target
90
+ */
83 91
 function tree_open_close_dir(&$current, $target, $deplie = array()) {
84 92
 	if ($current == $target) {
85 93
 		return "";
Please login to merge, or discard this patch.
ecrire/public/aiguiller.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 	return;
15 15
 }
16 16
 
17
+/**
18
+ * @return string|null
19
+ */
17 20
 function securiser_redirect_action($redirect) {
18 21
 	if ((tester_url_absolue($redirect) or preg_match(',^\w+:,',trim($redirect)))
19 22
 		and !defined('_AUTORISER_ACTION_ABS_REDIRECT')) {
Please login to merge, or discard this patch.