Completed
Push — spip-3.0 ( c45da6...b00f84 )
by cam
93:44 queued 82:27
created
ecrire/inc/documents.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  * @uses _DIR_IMG
41 41
  *
42 42
  * @param string $fichier
43
- * @return bool|string
43
+ * @return string|false
44 44
  */
45 45
 function get_spip_doc($fichier) {
46 46
 	// fichier distant
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
  * @param string $ext
116 116
  * @param string $orig
117 117
  * @param string $source
118
- * @return bool|mixed|string
118
+ * @return string|false
119 119
  */
120 120
 function copier_document($ext, $orig, $source) {
121 121
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
  * @uses sous_repertoire()
150 150
  * 
151 151
  * @param string $type
152
- * @return bool|string
152
+ * @return false|string
153 153
  */
154 154
 function determine_upload($type='') {
155 155
 	if(!function_exists('autoriser'))
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
  * @param bool $move
185 185
  *     - `true` : on déplace le fichier source vers le fichier de destination
186 186
  *     - `false` : valeur par défaut. On ne fait que copier le fichier source vers la destination.
187
- * @return bool|mixed|string
187
+ * @return string|false
188 188
  */
189 189
 function deplacer_fichier_upload($source, $dest, $move=false) {
190 190
 	// Securite
Please login to merge, or discard this patch.
ecrire/inc/lang.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
  * 
31 31
  * @param string $lang
32 32
  *     La langue à utiliser
33
- * @return string|bool
33
+ * @return false|string
34 34
  *     string : La langue qui a été utilisée si trouvée
35 35
  *     false : aucune langue ne correspondait à la demande
36 36
 **/
@@ -164,6 +164,9 @@  discard block
 block discarded – undo
164 164
 // pour 'changer_lang' (langue de l'article, espace prive), c'est en Ajax
165 165
 // 
166 166
 // http://code.spip.net/@menu_langues
167
+/**
168
+ * @param string $nom_select
169
+ */
167 170
 function menu_langues($nom_select, $default='') {
168 171
 	include_spip('inc/actions');
169 172
 
@@ -194,6 +197,10 @@  discard block
 block discarded – undo
194 197
 }
195 198
 
196 199
 // http://code.spip.net/@select_langues
200
+/**
201
+ * @param string $change
202
+ * @param string $options
203
+ */
197 204
 function select_langues($nom_select, $change, $options, $label="")
198 205
 {
199 206
 	static $cpt = 0;
Please login to merge, or discard this patch.
ecrire/inc/math.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 //
20 20
 
21 21
 // http://code.spip.net/@image_math
22
+/**
23
+ * @param string $tex
24
+ */
22 25
 function produire_image_math($tex) {
23 26
 	global $traiter_math;
24 27
 	switch ($traiter_math) {
Please login to merge, or discard this patch.
ecrire/inc/pclzip.php 1 patch
Doc Comments   +31 added lines patch added patch discarded remove patch
@@ -28,6 +28,11 @@  discard block
 block discarded – undo
28 28
     define('PCLZIP_TEMPORARY_DIR', _DIR_TMP);
29 29
   }
30 30
   if (!function_exists('gzopen') && function_exists('gzopen64')) {
31
+
32
+    /**
33
+     * @param string $filename
34
+     * @param string $mode
35
+     */
31 36
     function gzopen($filename, $mode, $use_include_path = 0) {
32 37
       return gzopen64($filename, $mode, $use_include_path);
33 38
     }
@@ -221,6 +226,10 @@  discard block
 block discarded – undo
221 226
   //   Note that no real action is taken, if the archive does not exist it is not
222 227
   //   created. Use create() for that.
223 228
   // --------------------------------------------------------------------------------
229
+
230
+  /**
231
+   * @param string $p_zipname
232
+   */
224 233
   function PclZip($p_zipname)
225 234
   {
226 235
 
@@ -2344,6 +2353,10 @@  discard block
 block discarded – undo
2344 2353
   // Description :
2345 2354
   // Parameters :
2346 2355
   // --------------------------------------------------------------------------------
2356
+
2357
+  /**
2358
+   * @param string $p_mode
2359
+   */
2347 2360
   function privOpenFd($p_mode)
2348 2361
   {
2349 2362
     $v_result=1;
@@ -4160,6 +4173,10 @@  discard block
 block discarded – undo
4160 4173
   // Parameters :
4161 4174
   // Return Values :
4162 4175
   // --------------------------------------------------------------------------------
4176
+
4177
+  /**
4178
+   * @param string $p_string
4179
+   */
4163 4180
   function privExtractFileAsString(&$p_entry, &$p_string, &$p_options)
4164 4181
   {
4165 4182
     $v_result=1;
@@ -5053,6 +5070,10 @@  discard block
 block discarded – undo
5053 5070
   // Parameters :
5054 5071
   // Return Values :
5055 5072
   // --------------------------------------------------------------------------------
5073
+
5074
+  /**
5075
+   * @param PclZip $p_archive_to_add
5076
+   */
5056 5077
   function privMerge(&$p_archive_to_add)
5057 5078
   {
5058 5079
     $v_result=1;
@@ -5560,6 +5581,11 @@  discard block
 block discarded – undo
5560 5581
   //             3 : src & dest gzip
5561 5582
   // Return Values :
5562 5583
   // --------------------------------------------------------------------------------
5584
+
5585
+  /**
5586
+   * @param integer $p_src
5587
+   * @param integer $p_dest
5588
+   */
5563 5589
   function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
5564 5590
   {
5565 5591
     $v_result = 1;
@@ -5622,6 +5648,11 @@  discard block
 block discarded – undo
5622 5648
   // Return Values :
5623 5649
   //   1 on success, 0 on failure.
5624 5650
   // --------------------------------------------------------------------------------
5651
+
5652
+  /**
5653
+   * @param string $p_src
5654
+   * @param string $p_dest
5655
+   */
5625 5656
   function PclZipUtilRename($p_src, $p_dest)
5626 5657
   {
5627 5658
     $v_result = 1;
Please login to merge, or discard this patch.
ecrire/inc/prepare_recherche.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
  * @param string $primary
139 139
  * @param array $rows
140 140
  * @param string $serveur
141
- * @return array
141
+ * @return string[]
142 142
  */
143 143
 function generer_select_where_explicites($table, $primary, $rows, $serveur){
144 144
 	# calculer le {id_article IN()} et le {... as points}
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
@@ -101,6 +101,10 @@  discard block
 block discarded – undo
101 101
 // checkbox pour activer ou desactiver
102 102
 // si ce n'est pas une extension
103 103
 
104
+/**
105
+ * @param integer $id_input
106
+ * @param string $file
107
+ */
104 108
 function plugin_checkbox($id_input, $file, $actif)
105 109
 {
106 110
 	$name = substr(md5($file),0,16);
@@ -162,6 +166,9 @@  discard block
 block discarded – undo
162 166
 	. "</div>";
163 167
 }
164 168
 
169
+/**
170
+ * @param string $nom
171
+ */
165 172
 function plugin_desintalle($plug_file, $nom, $dir_plugins=null){
166 173
 	if (!$dir_plugins)
167 174
 		$dir_plugins = _DIR_PLUGINS;
Please login to merge, or discard this patch.
ecrire/public/iterateur.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -412,6 +412,10 @@
 block discarded – undo
412 412
 	 * aller a la position $n en parcourant
413 413
 	 * un par un tous les elements
414 414
 	 */
415
+
416
+	/**
417
+	 * @param integer $n
418
+	 */
415 419
 	private function seek_loop($n) {
416 420
 		if ($this->pos > $n)
417 421
 			$this->rewind();
Please login to merge, or discard this patch.
ecrire/public/jointures.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
  *
212 212
  * @param array $depart
213 213
  * @param array $arrivee
214
- * @param string|array $col
214
+ * @param string $col
215 215
  * @return bool
216 216
  */
217 217
 function nogroupby_if($depart, $arrivee, $col){
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -214,6 +214,9 @@  discard block
 block discarded – undo
214 214
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
215 215
 
216 216
 // http://code.spip.net/@phraser_champs_etendus
217
+/**
218
+ * @param integer $ligne
219
+ */
217 220
 function phraser_champs_etendus($texte, $ligne,$result) {
218 221
 	if ($texte==="") return $result;
219 222
 	$sep = '##';
@@ -229,6 +232,9 @@  discard block
 block discarded – undo
229 232
 // Tres chevelu
230 233
 
231 234
 // http://code.spip.net/@phraser_args
235
+/**
236
+ * @param string $fin
237
+ */
232 238
 function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ) {
233 239
   $texte = ltrim($texte);
234 240
   while (($texte!=="") && strpos($fin, $texte[0]) === false) {
@@ -242,6 +248,9 @@  discard block
 block discarded – undo
242 248
 }
243 249
 
244 250
 // http://code.spip.net/@phraser_arg
251
+/**
252
+ * @param string $texte
253
+ */
245 254
 function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
246 255
 	preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
247 256
 	$suite = ltrim($match[2]);
@@ -359,6 +368,9 @@  discard block
 block discarded – undo
359 368
 
360 369
 
361 370
 // http://code.spip.net/@phraser_champs_exterieurs
371
+/**
372
+ * @param string $texte
373
+ */
362 374
 function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) {
363 375
 	$res = array();
364 376
 	while (($p=strpos($texte, "%$sep"))!==false) {
@@ -375,6 +387,9 @@  discard block
 block discarded – undo
375 387
 }
376 388
 
377 389
 // http://code.spip.net/@phraser_champs_interieurs
390
+/**
391
+ * @param string $sep
392
+ */
378 393
 function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
379 394
 	$i = 0; // en fait count($result)
380 395
 	$x = "";
@@ -649,6 +664,10 @@  discard block
 block discarded – undo
649 664
 }
650 665
 
651 666
 // http://code.spip.net/@phraser_critere_infixe
667
+/**
668
+ * @param string $arg1
669
+ * @param string $arg2
670
+ */
652 671
 function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond)
653 672
 {
654 673
 	$args[0] = new Texte;
Please login to merge, or discard this patch.