Completed
Pull Request — master (#32)
by
unknown
05:57
created
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.
ecrire/public/criteres.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -661,6 +661,11 @@  discard block
 block discarded – undo
661 661
 }
662 662
 
663 663
 // http://code.spip.net/@calculer_critere_arg_dynamique
664
+/**
665
+ * @param string $idb
666
+ *
667
+ * @return string
668
+ */
664 669
 function calculer_critere_arg_dynamique($idb, &$boucles, $crit, $suffix = '') {
665 670
 	$boucle = $boucles[$idb];
666 671
 	$alt = "('" . $boucle->id_table . '.\' . $x' . $suffix . ')';
@@ -1509,6 +1514,10 @@  discard block
 block discarded – undo
1509 1514
 }
1510 1515
 
1511 1516
 // http://code.spip.net/@critere_IN_cas
1517
+/**
1518
+ * @param string $idb
1519
+ * @param string $crit2
1520
+ */
1512 1521
 function critere_IN_cas($idb, &$boucles, $crit2, $arg, $op, $val, $col) {
1513 1522
 	static $num = array();
1514 1523
 	$descr = $boucles[$idb]->descr;
Please login to merge, or discard this patch.
ecrire/public/debusquer.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -418,6 +418,10 @@  discard block
 block discarded – undo
418 418
 }
419 419
 
420 420
 // http://code.spip.net/@reference_boucle_debug
421
+/**
422
+ * @param string $nom
423
+ * @param string $self
424
+ */
421 425
 function reference_boucle_debug($n, $nom, $self) {
422 426
 	list($skel, $boucle, $ligne) = trouve_boucle_debug($n, $nom);
423 427
 
@@ -806,6 +810,9 @@  discard block
 block discarded – undo
806 810
 }
807 811
 
808 812
 // http://code.spip.net/@debusquer_entete
813
+/**
814
+ * @param string $corps
815
+ */
809 816
 function debusquer_entete($titre, $corps) {
810 817
 
811 818
 	include_spip('balise/formulaire_admin');
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
@@ -457,6 +457,10 @@
 block discarded – undo
457 457
 	 * aller a la position $n en parcourant
458 458
 	 * un par un tous les elements
459 459
 	 */
460
+
461
+	/**
462
+	 * @param integer $n
463
+	 */
460 464
 	private function seek_loop($n) {
461 465
 		if ($this->pos > $n) {
462 466
 			$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
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
  *
232 232
  * @param array $depart
233 233
  * @param array $arrivee
234
- * @param string|array $col
234
+ * @param string $col
235 235
  * @return bool
236 236
  */
237 237
 function nogroupby_if($depart, $arrivee, $col) {
Please login to merge, or discard this patch.
ecrire/public/normaliser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@
 block discarded – undo
75 75
 }
76 76
 
77 77
 
78
+/**
79
+ * @param string $nom
80
+ */
78 81
 function phraser_logo_faux_filtres($nom) {
79 82
 	switch ($nom) {
80 83
 		case 'top':
Please login to merge, or discard this patch.
ecrire/public/parametrer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
  *
232 232
  * @uses public_tester_redirection_dist()
233 233
  * @param string $fond
234
- * @param array $contexte
234
+ * @param string $contexte
235 235
  * @param string $connect
236 236
  * @return array|bool
237 237
  */
Please login to merge, or discard this patch.
ecrire/public/references.php 1 patch
Doc Comments   +16 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
  *           est dans une autre table et construit la jointure dessus
294 294
  *         - liste (table, champ, fonction) idem, mais en passant un
295 295
  *           nom de fonction qui s'occupera de créer la jointure.
296
- * @return array
296
+ * @return string[]
297 297
  *     Liste (nom du champ alias, nom du champ). Le nom du champ alias
298 298
  *     est une expression pour le SELECT de la boucle du style "mots.titre AS titre_mot"
299 299
  **/
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
  *     Nom de la balise
472 472
  * @param Champ $p
473 473
  *     AST au niveau de la balise
474
- * @return string
474
+ * @return Champ
475 475
  *     Code PHP pour d'exécution de la balise et de ses filtres
476 476
  **/
477 477
 function calculer_balise_DEFAUT_dist($nom, $p) {
@@ -755,6 +755,9 @@  discard block
 block discarded – undo
755 755
 //  - deux etoiles => pas de securite non plus !
756 756
 //
757 757
 // http://code.spip.net/@applique_filtres
758
+/**
759
+ * @param Champ $p
760
+ */
758 761
 function applique_filtres($p) {
759 762
 
760 763
 	// Traitements standards (cf. supra)
@@ -829,6 +832,9 @@  discard block
 block discarded – undo
829 832
 
830 833
 // Filtres et,ou,oui,non,sinon,xou,xor,and,or,not,yes
831 834
 // et comparateurs
835
+/**
836
+ * @param string $arg
837
+ */
832 838
 function filtre_logique($fonc, $code, $arg) {
833 839
 
834 840
 	switch (true) {
@@ -852,6 +858,9 @@  discard block
 block discarded – undo
852 858
 }
853 859
 
854 860
 // http://code.spip.net/@compose_filtres_args
861
+/**
862
+ * @param string $sep
863
+ */
855 864
 function compose_filtres_args($p, $args, $sep) {
856 865
 	$arglist = "";
857 866
 	foreach ($args as $arg) {
@@ -899,6 +908,11 @@  discard block
 block discarded – undo
899 908
 //
900 909
 
901 910
 // http://code.spip.net/@rindex_pile
911
+/**
912
+ * @param Champ $p
913
+ * @param string $champ
914
+ * @param string $motif
915
+ */
902 916
 function rindex_pile($p, $champ, $motif) {
903 917
 	$n = 0;
904 918
 	$b = $p->id_boucle;
Please login to merge, or discard this patch.