Skip to content

Commit

Permalink
feat(php): make isBlacklisted in PHP public, fixes #131
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Mar 11, 2018
1 parent 2706b93 commit 4b138cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion platform/php/MailChecker.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ private static function validEmail($email) {
}
}

private static function isBlacklisted($email) {
/**
* Check if an email is blacklisted or not
* @param String $email
* @return boolean true if $email is blacklisted
*/
public static function isBlacklisted($email) {
$parts = explode("@", $email);
$domain = end($parts);

Expand Down

0 comments on commit 4b138cc

Please sign in to comment.