Completed
Push — master ( 6ce5ea...988365 )
by cam
06:31 queued 01:40
created
ecrire/public/quete.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 /**
29 29
  * Retourne l'URL de redirection d'un article virtuel, seulement si il est publié
30 30
  *
31
- * @param $id_article
32
- * @param $connect
33
- * @return array|bool|null
31
+ * @param integer $id_article
32
+ * @param string $connect
33
+ * @return string
34 34
  */
35 35
 function quete_virtuel($id_article, $connect) {
36 36
 	return sql_getfetsel(
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
  * @uses quete_parent_lang()
123 123
  *
124 124
  * @param int $id_article
125
- * @param $serveur
125
+ * @param string $serveur
126 126
  * @return int
127 127
  */
128 128
 function quete_rubrique($id_article, $serveur) {
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
  *
294 294
  * @param int $id_document
295 295
  * @param string $serveur
296
- * @return array|bool|null
296
+ * @return string
297 297
  */
298 298
 function quete_fichier($id_document, $serveur = '') {
299 299
 	return sql_getfetsel('fichier', 'spip_documents', ('id_document=' . intval($id_document)), '', array(), '', '', $serveur);
Please login to merge, or discard this patch.
ecrire/req/sqlite_generique.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1528,8 +1528,8 @@  discard block
 block discarded – undo
1528 1528
  * @param string|array $select Champs sélectionnés
1529 1529
  * @param string|array $from Tables sélectionnées
1530 1530
  * @param string|array $where Contraintes
1531
- * @param string|array $groupby Regroupements
1532
- * @param string|array $orderby Tris
1531
+ * @param string $groupby Regroupements
1532
+ * @param string $orderby Tris
1533 1533
  * @param string $limit Limites de résultats
1534 1534
  * @param string|array $having Contraintes posts sélections
1535 1535
  * @param string $serveur Nom de la connexion
@@ -1687,7 +1687,7 @@  discard block
 block discarded – undo
1687 1687
  * @param string $nom_table Nom de la table SQL
1688 1688
  * @param string $serveur Nom de la connexion
1689 1689
  * @param bool $requeter Exécuter la requête, sinon la retourner
1690
- * @return array|string
1690
+ * @return string
1691 1691
  *     - chaîne vide si pas de description obtenue
1692 1692
  *     - string Texte de la requête si demandé
1693 1693
  *     - array description de la table sinon
@@ -2194,7 +2194,7 @@  discard block
 block discarded – undo
2194 2194
  * 4) Renommer la table B en A
2195 2195
  * 5) Remettre les index (qui sont supprimés avec la table A)
2196 2196
  *
2197
- * @param string|array $table
2197
+ * @param string $table
2198 2198
  *     - string : Nom de la table table,
2199 2199
  *     - array : couple (nom de la table => nom futur)
2200 2200
  * @param string|array $colonne
@@ -2597,7 +2597,7 @@  discard block
 block discarded – undo
2597 2597
  * stocke le resultat pour ne pas faire
2598 2598
  * de requetes showtable intempestives
2599 2599
  *
2600
- * @param  $table
2600
+ * @param  string $table
2601 2601
  * @param  $couples
2602 2602
  * @param string $desc
2603 2603
  * @param string $serveur
@@ -2789,7 +2789,7 @@  discard block
 block discarded – undo
2789 2789
 	 * Constructeur
2790 2790
 	 *
2791 2791
 	 * @param string $serveur
2792
-	 * @return bool
2792
+	 * @return false|null
2793 2793
 	 */
2794 2794
 	public function __construct($serveur = '') {
2795 2795
 		_sqlite_init();
Please login to merge, or discard this patch.
ecrire/inc/filtres_mini.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 /**
148 148
  * Verifier qu'une url est absolue et que son protocole est bien parmi une liste autorisee
149 149
  * @param string $url_absolue
150
- * @param array $protocoles_autorises
150
+ * @param string[] $protocoles_autorises
151 151
  * @return bool
152 152
  */
153 153
 function protocole_verifier($url_absolue, $protocoles_autorises = array('http','https')) {
Please login to merge, or discard this patch.
ecrire/action/editer_liens.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 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) {
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 /**
503 503
  * Une table de lien est-elle triable ?
504 504
  * elle doit disposer d'un champ rang_lien pour cela
505
- * @param $table_lien
505
+ * @param string $table_lien
506 506
  * @return mixed
507 507
  */
508 508
 function lien_triables($table_lien) {
Please login to merge, or discard this patch.
ecrire/inc/svg.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
 /**
324 324
  * Extract all colors in SVG
325
- * @param $img
325
+ * @param string $img
326 326
  * @return array|mixed
327 327
  */
328 328
 function svg_extract_couleurs($img) {
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
 
397 397
 /**
398 398
  * Ajouter un background au SVG : un rect pleine taille avec la bonne couleur
399
- * @param $img
400
- * @param $background_color
399
+ * @param string $img
400
+ * @param string $background_color
401 401
  * @return bool|string
402 402
  */
403 403
 function svg_ajouter_background($img, $background_color) {
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
 /**
456 456
  * Ajouter un background au SVG : un rect pleine taille avec la bonne couleur
457
- * @param $img
457
+ * @param string $img
458 458
  * @array $attributs
459 459
  * @return bool|string
460 460
  */
Please login to merge, or discard this patch.
ecrire/inc/documents.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * @uses _DIR_IMG
44 44
  *
45 45
  * @param string $fichier
46
- * @return bool|string
46
+ * @return string|false
47 47
  */
48 48
 function get_spip_doc($fichier) {
49 49
 	// fichier distant
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
  * @param string $orig
131 131
  * @param string $source
132 132
  * @param string $subdir
133
- * @return bool|mixed|string
133
+ * @return string|false
134 134
  */
135 135
 function copier_document($ext, $orig, $source, $subdir = null) {
136 136
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
  * @uses sous_repertoire()
168 168
  *
169 169
  * @param string $type
170
- * @return bool|string
170
+ * @return string
171 171
  */
172 172
 function determine_upload($type = '') {
173 173
 	if (!function_exists('autoriser')) {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
  * @param bool $move
208 208
  *     - `true` : on déplace le fichier source vers le fichier de destination
209 209
  *     - `false` : valeur par défaut. On ne fait que copier le fichier source vers la destination.
210
- * @return bool|mixed|string
210
+ * @return string|false
211 211
  */
212 212
 function deplacer_fichier_upload($source, $dest, $move = false) {
213 213
 	// Securite
Please login to merge, or discard this patch.
ecrire/balise/logo_.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
  * @param int $fichier
149 149
  *     - -1 pour retourner juste le chemin de l'image
150 150
  *     - 0 pour retourner le code HTML de l'image
151
- * @param string $lien
151
+ * @param string $_lien
152 152
  *     Lien pour encadrer l'image avec si présent
153 153
  * @param Champ $p
154 154
  *     Pile au niveau de la balise
Please login to merge, or discard this patch.
ecrire/public/fonctions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@
 block discarded – undo
592 592
  * [(#ENV{objet_source}|rang_lien{#ID_AUTEUR,#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}})]
593 593
  *
594 594
  * @param $objet_source
595
- * @param $ids
595
+ * @param integer $ids
596 596
  * @param $objet_lie
597 597
  * @param $idl
598 598
  * @param $objet_lien
Please login to merge, or discard this patch.
ecrire/public/aiguiller.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 	return;
15 15
 }
16 16
 
17
+/**
18
+ * @return string|null
19
+ */
17 20
 function securiser_redirect_action($redirect) {
18 21
 	// cas d'un double urlencode : si un urldecode de l'url n'est pas secure, on retient ca comme redirect
19 22
 	if (strpos($redirect, '%') !== false) {
Please login to merge, or discard this patch.