Completed
Pull Request — master (#39)
by
unknown
09:06
created
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.
ecrire/public/compiler.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,10 @@  discard block
 block discarded – undo
59 59
 
60 60
 
61 61
 // http://code.spip.net/@argumenter_inclure
62
+/**
63
+ * @param boolean $rejet_filtres
64
+ * @param string $id_boucle
65
+ */
62 66
 function argumenter_inclure(
63 67
 	$params,
64 68
 	$rejet_filtres,
@@ -747,7 +751,7 @@  discard block
 block discarded – undo
747 751
  *    Nom de la commande
748 752
  * @param string $val
749 753
  *    Code PHP décrivant la valeur à affecter
750
- * @return array
754
+ * @return string[]
751 755
  *
752 756
  *    - index 0 : Code pour une affectation statique. Si non rempli, la propriété devra
753 757
  *                être ré-affectée à chaque appel de la boucle.
@@ -855,6 +859,9 @@  discard block
 block discarded – undo
855 859
 }
856 860
 
857 861
 // http://code.spip.net/@calculer_order
862
+/**
863
+ * @param Boucle $boucle
864
+ */
858 865
 function calculer_order(&$boucle) {
859 866
 	if (!$order = $boucle->order
860 867
 		and !$order = $boucle->default_order
@@ -924,6 +931,9 @@  discard block
 block discarded – undo
924 931
 define('_REGEXP_CONCAT_NON_VIDE', "/^(.*)[.]\s*'[^']+'\s*$/");
925 932
 
926 933
 // http://code.spip.net/@compile_cas
934
+/**
935
+ * @param string $id_boucle
936
+ */
927 937
 function compile_cas($tableau, $descr, &$boucles, $id_boucle) {
928 938
 
929 939
 	$codes = array();
@@ -1113,6 +1123,9 @@  discard block
 block discarded – undo
1113 1123
 // de meme si EXP est de la forme (t ? '' : 'C')
1114 1124
 
1115 1125
 // http://code.spip.net/@compile_retour
1126
+/**
1127
+ * @param string $tab
1128
+ */
1116 1129
 function compile_retour($code, $avant, $apres, $altern, $tab, $n) {
1117 1130
 	if ($avant == "''") {
1118 1131
 		$avant = '';
Please login to merge, or discard this patch.
ecrire/public/composer.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -133,6 +133,10 @@  discard block
 block discarded – undo
133 133
 	return $nom ? $nom : false;
134 134
 }
135 135
 
136
+/**
137
+ * @param string $squelette
138
+ * @param string $phpfile
139
+ */
136 140
 function squelette_traduit($squelette, $sourcefile, $phpfile, $boucles) {
137 141
 
138 142
 	// Le dernier index est '' (fonction principale)
@@ -157,6 +161,9 @@  discard block
 block discarded – undo
157 161
 
158 162
 // Le squelette compile est-il trop vieux ?
159 163
 // http://code.spip.net/@squelette_obsolete
164
+/**
165
+ * @param string $skel
166
+ */
160 167
 function squelette_obsolete($skel, $squelette) {
161 168
 	static $date_change = null;
162 169
 	// ne verifier la date de mes_fonctions et mes_options qu'une seule fois
Please login to merge, or discard this patch.