Correction de bug
continuous-integration/drone/push Build encountered an error Details

ServeurDeTest
Noé GARNIER 2 years ago
parent ce0f073ed9
commit 9861736e85

@ -7,7 +7,7 @@ Class Nettoyage{
* *
* @return string The output of the function. * @return string The output of the function.
*/ */
public function clean(string $input) : string public function clean(string $input)
{ {
$output = trim($input); $output = trim($input);
$output = strip_tags($output); $output = strip_tags($output);
@ -22,7 +22,7 @@ Class Nettoyage{
* *
* @return string The output is being returned. * @return string The output is being returned.
*/ */
public function cleanEmail(string $input) : string{ public function cleanEmail(string $input){
$output = $this->clean($input); $output = $this->clean($input);
$output = filter_var($output, FILTER_SANITIZE_EMAIL); $output = filter_var($output, FILTER_SANITIZE_EMAIL);
return $output; return $output;

Loading…
Cancel
Save