Completed
Push — master ( 604e76...351d3e )
by cam
08:44
created
ecrire/xml/sax.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
 		: xml_entites_html($data);
103 103
 }
104 104
 
105
+/**
106
+ * @param IndenteurXML $phraseur
107
+ */
105 108
 function xml_piElement($phraseur, $target, $data) {
106 109
 	$depth = $phraseur->depth;
107 110
 
@@ -118,6 +121,9 @@  discard block
 block discarded – undo
118 121
 
119 122
 
120 123
 // https://code.spip.net/@xml_defautElement
124
+/**
125
+ * @param IndenteurXML $phraseur
126
+ */
121 127
 function xml_defaultElement($phraseur, $data) {
122 128
 	$depth = $phraseur->depth;
123 129
 
@@ -149,6 +155,9 @@  discard block
 block discarded – undo
149 155
 }
150 156
 
151 157
 // https://code.spip.net/@coordonnees_erreur
158
+/**
159
+ * @param string $msg
160
+ */
152 161
 function coordonnees_erreur($phraseur, $msg) {
153 162
 	$entete_length = substr_count($phraseur->entete, "\n");
154 163
 	$phraseur->err[] = array(
Please login to merge, or discard this patch.
ecrire/public/phraser_html.php 1 patch
Doc Comments   +22 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,6 +102,10 @@  discard block
 block discarded – undo
102 102
 }
103 103
 
104 104
 // https://code.spip.net/@phraser_polyglotte
105
+/**
106
+ * @param string $texte
107
+ * @param integer $ligne
108
+ */
105 109
 function phraser_polyglotte($texte, $ligne, $result) {
106 110
 
107 111
 	if (preg_match_all(BALISE_POLYGLOTTE, $texte, $m, PREG_SET_ORDER)) {
@@ -266,6 +270,9 @@  discard block
 block discarded – undo
266 270
 // on recommence tant qu'il y a des [...] en substituant a l'appel suivant
267 271
 
268 272
 // https://code.spip.net/@phraser_champs_etendus
273
+/**
274
+ * @param integer $ligne
275
+ */
269 276
 function phraser_champs_etendus($texte, $ligne, $result) {
270 277
 	if ($texte === "") {
271 278
 		return $result;
@@ -314,6 +321,10 @@  discard block
 block discarded – undo
314 321
 }
315 322
 
316 323
 // https://code.spip.net/@phraser_arg
324
+/**
325
+ * @param string $texte
326
+ * @param string $sep
327
+ */
317 328
 function phraser_arg(&$texte, $sep, $result, &$pointeur_champ) {
318 329
 	preg_match(",^(\|?[^}{)|]*)(.*)$,ms", $texte, $match);
319 330
 	$suite = ltrim($match[2]);
@@ -451,6 +462,9 @@  discard block
 block discarded – undo
451 462
 
452 463
 
453 464
 // https://code.spip.net/@phraser_champs_exterieurs
465
+/**
466
+ * @param string $texte
467
+ */
454 468
 function phraser_champs_exterieurs($texte, $ligne, $sep, $nested) {
455 469
 	$res = array();
456 470
 	while (($p = strpos($texte, "%$sep")) !== false) {
@@ -470,6 +484,9 @@  discard block
 block discarded – undo
470 484
 }
471 485
 
472 486
 // https://code.spip.net/@phraser_champs_interieurs
487
+/**
488
+ * @param string $sep
489
+ */
473 490
 function phraser_champs_interieurs($texte, $ligne, $sep, $result) {
474 491
 	$i = 0; // en fait count($result)
475 492
 	$x = "";
@@ -766,6 +783,10 @@  discard block
 block discarded – undo
766 783
 }
767 784
 
768 785
 // https://code.spip.net/@phraser_critere_infixe
786
+/**
787
+ * @param string $arg1
788
+ * @param string $arg2
789
+ */
769 790
 function phraser_critere_infixe($arg1, $arg2, $args, $op, $not, $cond) {
770 791
 	$args[0] = new Texte;
771 792
 	$args[0]->texte = $arg1;
@@ -895,7 +916,7 @@  discard block
 block discarded – undo
895 916
  * @param $texte
896 917
  * @param $id_parent
897 918
  * @param $boucle
898
- * @param $pos_debut_texte
919
+ * @param integer $pos_debut_texte
899 920
  * @param $result
900 921
  * @return mixed
901 922
  */
Please login to merge, or discard this patch.
ecrire/public/assembler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -467,7 +467,7 @@
 block discarded – undo
467 467
  *
468 468
  * @param string|null $arg
469 469
  * @param string $operation
470
- * @return mixed
470
+ * @return null|string
471 471
  */
472 472
 function arguments_balise_dyn_depuis_modele($arg, $operation = 'set') {
473 473
 	static $balise_dyn_appellee_par_modele = null;
Please login to merge, or discard this patch.
ecrire/public/cacher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
  * Attention a modifier simultanement le sanity check de
42 42
  * la fonction retire_cache() de inc/invalideur
43 43
  *
44
- * @param $nom_cache
44
+ * @param string $nom_cache
45 45
  * @return string
46 46
  */
47 47
 function cache_chemin_fichier($nom_cache, $ecrire = false) {
Please login to merge, or discard this patch.
ecrire/public/composer.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,10 @@  discard block
 block discarded – undo
148 148
 	return $nom ? $nom : false;
149 149
 }
150 150
 
151
+/**
152
+ * @param string $squelette
153
+ * @param string $phpfile
154
+ */
151 155
 function squelette_traduit($squelette, $sourcefile, $phpfile, $boucles) {
152 156
 
153 157
 	// Le dernier index est '' (fonction principale)
@@ -172,6 +176,9 @@  discard block
 block discarded – undo
172 176
 
173 177
 // Le squelette compile est-il trop vieux ?
174 178
 // https://code.spip.net/@squelette_obsolete
179
+/**
180
+ * @param string $skel
181
+ */
175 182
 function squelette_obsolete($skel, $squelette) {
176 183
 	static $date_change = null;
177 184
 	// ne verifier la date de mes_fonctions et mes_options qu'une seule fois
@@ -485,7 +492,7 @@  discard block
 block discarded – undo
485 492
  * tel que "A_B_C_", sinon "A_B_" sinon "A_"
486 493
  * 
487 494
  * @param string $nom
488
- * @return array|null
495
+ * @return string
489 496
  */
490 497
 function chercher_balise_generique($nom) {
491 498
 	if (false === strpos($nom, "_")) {
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 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
  * @return false|void
38 38
  */
39 39
 function _sqlite_init_functions(&$sqlite) {
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
  * soit inadapté.
338 338
  *
339 339
  * @param string $conv
340
- * @return void
340
+ * @return string
341 341
  */
342 342
 function _sqlite_func_strftime_format_converter(string $conv) : string {
343 343
 	// ok : %a %b %d %e %H %I %l %j %k %m %p %r %S %T %w %y %Y
Please login to merge, or discard this patch.
prive/themes/spip/vars.css_fonctions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 /**
28 28
  * Génère les variables CSS relatif à la typo et langue pour l'espace privé
29 29
  *
30
- * @param Pile $pile Pile
30
+ * @param Pile $Pile Pile
31 31
  */
32 32
 function spip_generer_variables_css_typo(array $Pile) : \Spip_Css_Vars_Collection {
33 33
 	$vars = new \Spip_Css_Vars_Collection();
Please login to merge, or discard this patch.