Skip to content
Extraits de code Groupes Projets
Valider ada12870 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

chore: Indiquer le type de retour de test_login()

parent be56d0a1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -192,9 +192,8 @@ function inscription_nouveau($desc) { ...@@ -192,9 +192,8 @@ function inscription_nouveau($desc) {
* *
* @param string $nom * @param string $nom
* @param string $mail * @param string $mail
* @return string
*/ */
function test_login($nom, $mail) { function test_login($nom, $mail): string {
include_spip('inc/charsets'); include_spip('inc/charsets');
$nom = strtolower((string) translitteration($nom)); $nom = strtolower((string) translitteration($nom));
$login_base = preg_replace('/[^\w\d_]/', '_', $nom); $login_base = preg_replace('/[^\w\d_]/', '_', $nom);
......
parameters: parameters:
ignoreErrors: ignoreErrors:
-
message: "#^Function test_login\\(\\) should return string but return statement is missing\\.$#"
count: 1
path: ecrire/action/inscrire_auteur.php
- -
message: "#^Instantiated class csstidy not found\\.$#" message: "#^Instantiated class csstidy not found\\.$#"
count: 1 count: 1
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter