Completed
Push — spip-2-stable ( 0df267...d79e3d )
by cam
39:09 queued 24:29
created
ecrire/action/referencer_traduction.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -44,6 +44,10 @@
 block discarded – undo
44 44
 }
45 45
 
46 46
 // http://doc.spip.org/@instituer_langue_article
47
+/**
48
+ * @param string $id_article
49
+ * @param string $id_rubrique
50
+ */
47 51
 function instituer_langue_article($id_article, $id_rubrique) {
48 52
 
49 53
 	$changer_lang = _request('changer_lang');
Please login to merge, or discard this patch.
ecrire/action/tourner.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
 }
24 24
 
25 25
 // http://doc.spip.org/@action_tourner_post
26
+/**
27
+ * @param string[] $r
28
+ */
26 29
 function action_tourner_post($r)
27 30
 {
28 31
 	$arg = $r[1];
@@ -120,6 +123,11 @@  discard block
 block discarded – undo
120 123
 // Faire tourner une image
121 124
 //
122 125
 // http://doc.spip.org/@gdRotate
126
+/**
127
+ * @param string $src
128
+ * @param string $dest
129
+ * @param integer $rtt
130
+ */
123 131
 function gdRotate ($src, $dest, $rtt){
124 132
 	$src_img = '';
125 133
 	if(preg_match("/\.(png|gif|jpe?g|bmp)$/i", $src, $regs)) {
Please login to merge, or discard this patch.
ecrire/action/virtualiser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
 }
28 28
 
29 29
 // http://doc.spip.org/@action_virtualiser_post
30
+/**
31
+ * @param string[] $r
32
+ */
30 33
 function action_virtualiser_post($r, $url)
31 34
 {
32 35
 	$url = preg_replace(",^ *https?://$,i", "", rtrim($url));
Please login to merge, or discard this patch.
ecrire/auth/ldap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -138,6 +138,9 @@
 block discarded – undo
138 138
 	return '';
139 139
 }
140 140
 
141
+/**
142
+ * @param string $dn
143
+ */
141 144
 function auth_ldap_retrouver($dn, $desc=array(), $serveur='')
142 145
 {
143 146
 	// Lire les infos sur l'utilisateur a partir de son DN depuis LDAP
Please login to merge, or discard this patch.
ecrire/auth/sha256.inc.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -135,15 +135,41 @@  discard block
 block discarded – undo
135 135
             return (int)$x >> (int)$n;
136 136
         }
137 137
 
138
+        /**
139
+         * @param integer $n
140
+         */
138 141
         function ROTR($x, $n) { return (int)(($this->SHR($x, $n) | ($x << (32-$n)) & 0xFFFFFFFF)); }
142
+
143
+        /**
144
+         * @param integer $x
145
+         * @param integer $y
146
+         * @param integer $z
147
+         */
139 148
         function Ch($x, $y, $z) { return ($x & $y) ^ ((~$x) & $z); }
149
+
150
+        /**
151
+         * @param integer $x
152
+         * @param integer $y
153
+         * @param integer $z
154
+         */
140 155
         function Maj($x, $y, $z) { return ($x & $y) ^ ($x & $z) ^ ($y & $z); }
156
+
157
+        /**
158
+         * @param integer $x
159
+         */
141 160
         function Sigma0($x) { return (int) ($this->ROTR($x, 2)^$this->ROTR($x, 13)^$this->ROTR($x, 22)); }
161
+
162
+        /**
163
+         * @param integer $x
164
+         */
142 165
         function Sigma1($x) { return (int) ($this->ROTR($x, 6)^$this->ROTR($x, 11)^$this->ROTR($x, 25)); }
143 166
         function sigma_0($x) { return (int) ($this->ROTR($x, 7)^$this->ROTR($x, 18)^$this->SHR($x, 3)); }
144 167
         function sigma_1($x) { return (int) ($this->ROTR($x, 17)^$this->ROTR($x, 19)^$this->SHR($x, 10)); }
145 168
 
146 169
 
170
+				/**
171
+				 * @param integer $byteSize
172
+				 */
147 173
 				function string2ordUTF8($s,&$byteSize){
148 174
 					$chars = array();
149 175
 					// par defaut sur 8bits
@@ -219,6 +245,9 @@  discard block
 block discarded – undo
219 245
 					return $bin;
220 246
 				}
221 247
 
248
+				/**
249
+				 * @param integer $n
250
+				 */
222 251
 				function array_split($a, $n) {
223 252
 					$split = array();
224 253
 					while (count($a)>$n) {
@@ -434,6 +463,10 @@  discard block
 block discarded – undo
434 463
 if (!function_exists('hash'))
435 464
 {
436 465
     define('_NO_HASH_DEFINED',true);
466
+
467
+    /**
468
+     * @param string $algo
469
+     */
437 470
     function hash($algo, $data)
438 471
     {
439 472
         if (empty($algo) || !is_string($algo) || !is_string($data)) {
Please login to merge, or discard this patch.
ecrire/balise/formulaire_.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
 
58 58
 /* prendre en charge par defaut les balises dynamiques formulaires simples */
59 59
 // http://doc.spip.org/@balise_FORMULAIRE__dyn
60
+/**
61
+ * @param string $form
62
+ */
60 63
 function balise_FORMULAIRE__dyn($form)
61 64
 {
62 65
 	$form = existe_formulaire($form);
@@ -77,6 +80,9 @@  discard block
 block discarded – undo
77 80
 	return array("formulaires/$form", 3600, $contexte);
78 81
 }
79 82
 
83
+/**
84
+ * @param string $form
85
+ */
80 86
 function balise_FORMULAIRE__contexte($form, $args)
81 87
 {
82 88
 	// tester si ce formulaire vient d'etre poste (memes arguments)
Please login to merge, or discard this patch.
ecrire/balise/formulaire_admin.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -130,6 +130,9 @@  discard block
 block discarded – undo
130 130
 
131 131
 
132 132
 // http://doc.spip.org/@admin_preview
133
+/**
134
+ * @param string $id
135
+ */
133 136
 function admin_preview($id, $id_type)
134 137
 {
135 138
 	if ($GLOBALS['var_preview']) return '';
@@ -199,6 +202,9 @@  discard block
 block discarded – undo
199 202
 
200 203
 // Tant que les stats ne sont pas passees dans une extension, il faut les traiter ici
201 204
 // http://doc.spip.org/@admin_stats
205
+/**
206
+ * @param string $id
207
+ */
202 208
 function admin_stats($id, $id_type, $var_preview)
203 209
 {
204 210
 	if ($GLOBALS['meta']["activer_statistiques"] != "non" 
Please login to merge, or discard this patch.
ecrire/balise/logo_.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -96,6 +96,13 @@
 block discarded – undo
96 96
 	return $p;
97 97
 }
98 98
 
99
+/**
100
+ * @param string $id_objet
101
+ * @param string $_id_objet
102
+ * @param string $type
103
+ * @param integer $fichier
104
+ * @param string $suite
105
+ */
99 106
 function logo_survol($id_objet, $_id_objet, $type, $align, $fichier, $lien, $p, $suite)
100 107
 {
101 108
 	$code = "quete_logo('$id_objet', '" .
Please login to merge, or discard this patch.
ecrire/balise/url_.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
 // car rien ne garantit que le .htaccess soit identique. A approfondir
26 26
 
27 27
 // http://doc.spip.org/@generer_generer_url
28
+/**
29
+ * @param string $type
30
+ */
28 31
 function generer_generer_url($type, $p)
29 32
 {
30 33
 	$_id = interprete_argument_balise(1,$p);
Please login to merge, or discard this patch.