[PLUGINS] ~maj globale
[lhc/web/www.git] / www / plugins / verifier / aide / verifier_fonctions.php
index 79d7ab5..26dc98e 100644 (file)
@@ -1,7 +1,9 @@
 <?php
 
 // Sécurité
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 include_spip('inc/verifier');
 include_spip('inc/saisies');
@@ -9,17 +11,17 @@ include_spip('inc/saisies');
 /*
  * Génère une page d'aide listant toutes les saisies et leurs options
  */
-function verifier_generer_aide(){
+function verifier_generer_aide() {
        // On a déjà la liste par saisie
        $verifications = verifier_lister_disponibles();
-       
+
        // On construit une liste par options
        $options = array();
-       foreach ($verifications as $type_verif=>$verification){
+       foreach ($verifications as $type_verif => $verification) {
                $options_verification = saisies_lister_par_nom($verification['options'], false);
-               foreach ($options_verification as $nom=>$option){
+               foreach ($options_verification as $nom => $option) {
                        // Si l'option n'existe pas encore
-                       if (!isset($options[$nom])){
+                       if (!isset($options[$nom])) {
                                $options[$nom] = _T_ou_typo($option['options']);
                        }
                        // On ajoute toujours par qui c'est utilisé
@@ -29,11 +31,9 @@ function verifier_generer_aide(){
                $verifications[$type_verif]['options'] = $options_verification;
        }
        ksort($options);
-       
+
        return array(
                'verifications' => $verifications,
                'options' => $options
        );
 }
-
-?>