Skip to content

Commit

Permalink
feat(mueller): add has-twitter-url check
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Oct 18, 2022
1 parent 88ca664 commit 3e04bf7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions php-config/Emergence/Mueller/Investigator.config.d/laddr.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
}
];

Investigator::$tests['has-twitter-url'] = [
'points' => -100,
'function' => function (IUser $User) {
return $User->Twitter
&& stripos($User->Twitter, 'https://twitter.com/') !== 0
&& (stripos($User->Twitter, 'http://') !== false || stripos($User->Twitter, 'https://') !== false);
}
];

Investigator::$tests['has-comment-url'] = [
'points' => -100,
'function' => function (IUser $User, array &$userCache) {
Expand Down

0 comments on commit 3e04bf7

Please sign in to comment.