Completed
Branch master (47aeae)
by cam
06:39
created
ecrire/inc/texte_mini.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@  discard block
 block discarded – undo
80 80
 // une $source differente ; le script detecte automagiquement si ce qu'on
81 81
 // echappe est un div ou un span
82 82
 // http://code.spip.net/@code_echappement
83
+/**
84
+ * @param string $mode
85
+ */
83 86
 function code_echappement($rempl, $source = '', $no_transform = false, $mode = null) {
84 87
 	if (!strlen($rempl)) {
85 88
 		return '';
@@ -284,6 +287,9 @@  discard block
 block discarded – undo
284 287
 // Reinserer le javascript de confiance (venant des modeles)
285 288
 
286 289
 // http://code.spip.net/@echappe_retour_modeles
290
+/**
291
+ * @param string $letexte
292
+ */
287 293
 function echappe_retour_modeles($letexte, $interdire_scripts = false) {
288 294
 	$letexte = echappe_retour($letexte);
289 295
 
@@ -433,6 +439,9 @@  discard block
 block discarded – undo
433 439
 }
434 440
 
435 441
 
442
+/**
443
+ * @param string $letexte
444
+ */
436 445
 function echapper_faux_tags($letexte) {
437 446
 	if (strpos($letexte, '<') === false) {
438 447
 		return $letexte;
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -98,6 +98,10 @@  discard block
 block discarded – undo
98 98
 }
99 99
 
100 100
 // http://code.spip.net/@phraser_polyglotte
101
+/**
102
+ * @param string $texte
103
+ * @param integer $ligne
104
+ */
101 105
 function phraser_polyglotte($texte, $ligne, $result) {
102 106
 
103 107
 	if (preg_match_all(BALISE_POLYGLOTTE, $texte, $m, PREG_SET_ORDER)) {
@@ -260,6 +264,9 @@  discard block
 block discarded – undo
260 264
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
261 265
 
262 266
 // http://code.spip.net/@phraser_champs_etendus
267
+/**
268
+ * @param integer $ligne
269
+ */
263 270
 function phraser_champs_etendus($texte, $ligne, $result) {
264 271
 	if ($texte === "") {
265 272
 		return $result;
@@ -279,6 +286,9 @@  discard block
 block discarded – undo
279 286
 // Tres chevelu
280 287
 
281 288
 // http://code.spip.net/@phraser_args
289
+/**
290
+ * @param string $fin
291
+ */
282 292
 function phraser_args($texte, $fin, $sep, $result, &$pointeur_champ) {
283 293
 	$texte = ltrim($texte);
284 294
 	while (($texte !== "") && strpos($fin, $texte[0]) === false) {
@@ -293,6 +303,9 @@  discard block
 block discarded – undo
293 303
 }
294 304
 
295 305
 // http://code.spip.net/@phraser_arg
306
+/**
307
+ * @param string $texte
308
+ */
296 309
 function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
297 310
 	preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
298 311
 	$suite = ltrim($match[2]);
@@ -430,6 +443,9 @@  discard block
 block discarded – undo
430 443
 
431 444
 
432 445
 // http://code.spip.net/@phraser_champs_exterieurs
446
+/**
447
+ * @param string $texte
448
+ */
433 449
 function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) {
434 450
 	$res = array();
435 451
 	while (($p = strpos($texte, "%$sep")) !== false) {
@@ -449,6 +465,9 @@  discard block
 block discarded – undo
449 465
 }
450 466
 
451 467
 // http://code.spip.net/@phraser_champs_interieurs
468
+/**
469
+ * @param string $sep
470
+ */
452 471
 function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
453 472
 	$i = 0; // en fait count($result)
454 473
 	$x = "";
@@ -742,6 +761,10 @@  discard block
 block discarded – undo
742 761
 }
743 762
 
744 763
 // http://code.spip.net/@phraser_critere_infixe
764
+/**
765
+ * @param string $arg1
766
+ * @param string $arg2
767
+ */
745 768
 function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond) {
746 769
 	$args[0] = new Texte;
747 770
 	$args[0]->texte = $arg1;
Please login to merge, or discard this patch.
ecrire/req/mysql.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -337,8 +337,8 @@  discard block
 block discarded – undo
337 337
  * @param string|array $select Champs sélectionnés
338 338
  * @param string|array $from Tables sélectionnées
339 339
  * @param string|array $where Contraintes
340
- * @param string|array $groupby Regroupements
341
- * @param string|array $orderby Tris
340
+ * @param string $groupby Regroupements
341
+ * @param string $orderby Tris
342 342
  * @param string $limit Limites de résultats
343 343
  * @param string|array $having Contraintes posts sélections
344 344
  * @param string $serveur Nom de la connexion
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
  * @param int $row_number Position. Déplacer le pointeur à cette ligne
971 971
  * @param string $serveur Nom de la connexion
972 972
  * @param bool $requeter Inutilisé
973
- * @return bool True si déplacement réussi, false sinon.
973
+ * @return boolean|null True si déplacement réussi, false sinon.
974 974
  **/
975 975
 function spip_mysql_seek($r, $row_number, $serveur = '', $requeter = true) {
976 976
 	if ($r and mysqli_num_rows($r)) {
Please login to merge, or discard this patch.
ecrire/xml/valider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
 	/**
320 320
 	 * Constructeur
321 321
 	 *
322
-	 * @param array $process ?
322
+	 * @param boolean $process ?
323 323
 	 **/
324 324
 	public function __construct($process = array()) {
325 325
 		if (is_array($process)) {
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
  * @link http://www.sqlite.org/lang_corefunc.html Liste des fonctions natives
34 34
  * @link http://sqlite.org/changes.html Liste des évolutions
35 35
  * 
36
- * @param PDO|resource $sqlite Représente la connexion Sqlite
36
+ * @param PDO $sqlite Représente la connexion Sqlite
37 37
  */
38 38
 function _sqlite_init_functions(&$sqlite) {
39 39
 
Please login to merge, or discard this patch.
ecrire/action/editer_article.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
  * @param int $id_rubrique
161 161
  *     Identifiant de la rubrique parente
162 162
  * @param array|null $set
163
- * @return int
163
+ * @return boolean|string
164 164
  *     Identifiant du nouvel article
165 165
  *
166 166
  */
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
  *
534 534
  * @param int $id_rubrique
535 535
  *     Identifiant de la rubrique
536
- * @return int
536
+ * @return boolean|string
537 537
  *     Identifiant du nouvel article
538 538
  */
539 539
 function insert_article($id_rubrique) {
Please login to merge, or discard this patch.
ecrire/action/editer_liens.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
  *
208 208
  * @api
209 209
  * @param array $objets_source
210
- * @param array|string $objets_lies
210
+ * @param string $objets_lies
211 211
  * @return int
212 212
  */
213 213
 function objet_optimiser_liens($objets_source, $objets_lies) {
Please login to merge, or discard this patch.
ecrire/inc/idna_convert.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * the constructor
89 89
      *
90 90
      * @param array $options
91
-     * @return boolean
91
+     * @return boolean|null
92 92
      * @since 0.5.2
93 93
      */
94 94
     public function __construct($options = false)
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     /**
394 394
      * Use this method to get the last error ocurred
395 395
      * @param    void
396
-     * @return   string   The last error, that occured
396
+     * @return   boolean   The last error, that occured
397 397
      */
398 398
     public function get_last_error()
399 399
     {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     /**
404 404
      * The actual decoding algorithm
405 405
      * @param string
406
-     * @return mixed
406
+     * @return false|string
407 407
      */
408 408
     protected function _decode($encoded)
409 409
     {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     /**
465 465
      * The actual encoding algorithm
466 466
      * @param  string
467
-     * @return mixed
467
+     * @return false|string
468 468
      */
469 469
     protected function _encode($decoded)
470 470
     {
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
      * Decomposes a Hangul syllable
700 700
      * (see http://www.unicode.org/unicode/reports/tr15/#Hangul
701 701
      * @param    integer  32bit UCS4 code point
702
-     * @return   array    Either Hangul Syllable decomposed or original 32bit value as one value array
702
+     * @return   integer[]    Either Hangul Syllable decomposed or original 32bit value as one value array
703 703
      */
704 704
     protected function _hangul_decompose($char)
705 705
     {
Please login to merge, or discard this patch.
ecrire/action/editer_auteur.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
  * @param string|null $source
86 86
  *     D'où provient l'auteur créé ? par défaut 'spip', mais peut être 'ldap' ou autre.
87 87
  * @param array|null $set
88
- * @return int
88
+ * @return boolean|string
89 89
  *     Identifiant de l'auteur créé
90 90
  */
91 91
 function auteur_inserer($source = null, $set = null) {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
  * @param bool $force_update
141 141
  *   Permet de forcer la maj en base des champs fournis, sans passer par instancier.
142 142
  *   Utilise par auth/spip
143
- * @return string|null
143
+ * @return string|false
144 144
  *
145 145
  *     - Chaîne vide si aucune erreur,
146 146
  *     - Chaîne contenant un texte d'erreur sinon.
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
  *     Couples (colonne => valeur) des données à instituer
305 305
  * @param bool $force_webmestre
306 306
  *     Autoriser un auteur à passer webmestre (force l'autorisation)
307
- * @return bool|string
307
+ * @return false|string
308 308
  */
309 309
 function auteur_instituer($id_auteur, $c, $force_webmestre = false) {
310 310
 	if (!$id_auteur = intval($id_auteur)) {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
  * @see auteur_inserer()
450 450
  *
451 451
  * @param string|null $source
452
- * @return int
452
+ * @return boolean|string
453 453
  */
454 454
 function insert_auteur($source = null) {
455 455
 	return auteur_inserer($source);
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
  *
464 464
  * @param int $id_auteur
465 465
  * @param array|null $set
466
- * @return string|null
466
+ * @return string|false
467 467
  */
468 468
 function auteurs_set($id_auteur, $set = null) {
469 469
 	return auteur_modifier($id_auteur, $set);
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
  * @param int $id_auteur
479 479
  * @param array $c
480 480
  * @param bool $force_webmestre
481
- * @return bool|string
481
+ * @return false|string
482 482
  */
483 483
 function instituer_auteur($id_auteur, $c, $force_webmestre = false) {
484 484
 	return auteur_instituer($id_auteur, $c, $force_webmestre);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
  *
493 493
  * @param int $id_auteur
494 494
  * @param array $c
495
- * @return string|null
495
+ * @return string|false
496 496
  */
497 497
 function revision_auteur($id_auteur, $c = false) {
498 498
 	return auteur_modifier($id_auteur, $c);
Please login to merge, or discard this patch.