Completed
Push — spip-3.0 ( 5d8b58 )
by cam
53:01 queued 42:30
created
ecrire/inc/plugin.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
  *
441 441
  * @param $liste
442 442
  * 		Liste de description des plugins
443
- * @param $nom
443
+ * @param string $nom
444 444
  * 		Le plugin donc on cherche la presence
445 445
  * @param $version
446 446
  * 		L'éventuelle intervalle de compatibilité de la dependance. ex: [1.1.0;]
@@ -681,6 +681,9 @@  discard block
 block discarded – undo
681 681
 	ecrire_fichier_php(_CACHE_PLUGINS_FCT, $contenu['fonctions']);
682 682
 }
683 683
 
684
+/**
685
+ * @param string $nom
686
+ */
684 687
 function plugin_ongletbouton($nom, $val)
685 688
 {
686 689
 	if (!$val) $val = array();
@@ -698,6 +701,9 @@  discard block
 block discarded – undo
698 701
 // $GLOBALS['spip_pipeline']
699 702
 // $GLOBALS['spip_matrice']
700 703
 
704
+/**
705
+ * @param boolean $pipe_recherche
706
+ */
701 707
 function pipeline_matrice_precompile($plugin_valides, $ordre, $pipe_recherche)
702 708
 {
703 709
 	static $liste_pipe_manquants=array();
@@ -837,6 +843,9 @@  discard block
 block discarded – undo
837 843
 	ecrire_meta('plugin_installes',serialize($meta_plug_installes),'non');
838 844
 }
839 845
 
846
+/**
847
+ * @param string $nom
848
+ */
840 849
 function ecrire_fichier_php($nom, $contenu, $comment='')
841 850
 {
842 851
 	ecrire_fichier($nom, 
Please login to merge, or discard this patch.
ecrire/inc/presentation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 include_spip('inc/filtres_boites');
24 24
 
25 25
 // http://doc.spip.org/@debut_cadre
26
+/**
27
+ * @param string $style
28
+ */
26 29
 function debut_cadre($style, $icone = "", $fonction = "", $titre = "", $id="", $class="", $padding=true) {
27 30
 	$style_mapping=array('r'=>'simple','e'=>'raccourcis','couleur'=>'basic highlight','couleur-foncee'=>'basic highlight','trait-couleur'=>'important','alerte'=>'notice','info'=>'info','sous_rub'=>'simple sous-rub');
28 31
 	$style_titre_mapping=array('couleur'=>'topper','trait-couleur'=>'section');
Please login to merge, or discard this patch.
ecrire/inc/puce_statut.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -243,6 +243,12 @@  discard block
 block discarded – undo
243 243
 }
244 244
 
245 245
 // http://doc.spip.org/@puce_statut_article_dist
246
+/**
247
+ * @param integer $id
248
+ * @param string $statut
249
+ * @param integer $id_rubrique
250
+ * @param boolean $menu_rapide
251
+ */
246 252
 function puce_statut_changement_rapide($id, $statut, $id_rubrique, $type='article', $ajax = false, $menu_rapide=_ACTIVER_PUCE_RAPIDE) {
247 253
 	$src = statut_image($type, $statut);
248 254
 	if (!$src)
@@ -317,6 +323,11 @@  discard block
 block discarded – undo
317 323
 }
318 324
 
319 325
 // http://doc.spip.org/@afficher_script_statut
326
+/**
327
+ * @param string $type
328
+ * @param double $n
329
+ * @param string $img
330
+ */
320 331
 function afficher_script_statut($id, $type, $n, $img, $statut, $titre, $act='') {
321 332
 	$h = generer_action_auteur("instituer_objet","$type-$id-$statut");
322 333
 	$h = "selec_statut('$id', '$type', $n, jQuery('img',this).attr('src'), '$h');return false;";
Please login to merge, or discard this patch.
ecrire/inc/queue.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
  *
269 269
  * @param array $force_jobs
270 270
  *   list of id_job to execute when provided
271
- * @return null|false
271
+ * @return null|boolean
272 272
  */
273 273
 function queue_schedule($force_jobs = null){
274 274
 	$time = time();
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
  *
395 395
  * @param <type> $function
396 396
  * @param <type> $inclure
397
- * @return <type>
397
+ * @return integer
398 398
  */
399 399
 function queue_is_cron_job($function,$inclure){
400 400
 	static $taches = null;
Please login to merge, or discard this patch.
ecrire/inc/rubriques.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
  *     Ancien statut de la rubrique
45 45
  * @param bool $postdate
46 46
  *     true pour recalculer aussi la date du prochain article post-daté
47
- * @return bool
47
+ * @return boolean|null
48 48
  *     true si le statut change effectivement
49 49
 **/
50 50
 function calculer_rubriques_if ($id_rubrique, $modifs, $statut_ancien='', $postdate = false)
Please login to merge, or discard this patch.
ecrire/inc/surligne.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
 
22 22
 // http://doc.spip.org/@surligner_mots
23
+/**
24
+ * @param string $page
25
+ */
23 26
 function surligner_mots($page, $surcharge_surligne = '') {
24 27
 	$surlignejs_engines = array(
25 28
 		array(",".str_replace(array("/", "."), array("\/", "\."), $GLOBALS['meta']['adresse_site']).",i", ",recherche=([^&]+),i"), //SPIP
Please login to merge, or discard this patch.
ecrire/inc/texte.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
 
66 66
 // afficher joliment les <script>
67 67
 // http://doc.spip.org/@echappe_js
68
+/**
69
+ * @param string $t
70
+ */
68 71
 function echappe_js($t,$class=' class="echappe-js"') {
69 72
 	if (preg_match_all(',<script.*?($|</script.),isS', $t, $r, PREG_SET_ORDER))
70 73
 	foreach ($r as $regs)
@@ -256,6 +259,9 @@  discard block
 block discarded – undo
256 259
 //
257 260
 // http://doc.spip.org/@paragrapher
258 261
 // /!\ appelee dans inc/filtres et public/composer
262
+/**
263
+ * @param string $letexte
264
+ */
259 265
 function paragrapher($letexte, $forcer=true) {
260 266
 	return $letexte;
261 267
 }
Please login to merge, or discard this patch.
ecrire/inc/texte_mini.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
 // une $source differente ; le script detecte automagiquement si ce qu'on
59 59
 // echappe est un div ou un span
60 60
 // http://doc.spip.org/@code_echappement
61
+/**
62
+ * @param string $mode
63
+ */
61 64
 function code_echappement($rempl, $source='', $no_transform=false, $mode=NULL) {
62 65
 	if (!strlen($rempl)) return '';
63 66
 
@@ -453,6 +456,9 @@  discard block
 block discarded – undo
453 456
 // Sert aussi a nettoyer un texte qu'on veut mettre dans un <a> etc.
454 457
 // TODO: gerer les modeles ?
455 458
 // http://doc.spip.org/@supprime_img
459
+/**
460
+ * @param string $message
461
+ */
456 462
 function supprime_img($letexte, $message=NULL) {
457 463
 	if ($message===NULL) $message = '(' . _T('img_indisponible') . ')';
458 464
 	return preg_replace(',<(img|doc|emb)([0-9]+)(\|([^>]*))?'.'\s*/?'.'>,i',
Please login to merge, or discard this patch.
ecrire/inc/traduire.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * version dediee et optimisee pour cet usage de find_in_path
19 19
  *
20 20
  * @staticvar <type> $dirs
21
- * @param <type> $file
21
+ * @param string $file
22 22
  * @param <type> $dirname
23 23
  * @return <type>
24 24
  */
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 // Charger un fichier langue
41 41
 //
42 42
 // http://doc.spip.org/@chercher_module_lang
43
+/**
44
+ * @param string $module
45
+ */
43 46
 function chercher_module_lang($module, $lang = '') {
44 47
 	if ($lang)
45 48
 		$lang = '_'.$lang;
Please login to merge, or discard this patch.