Skip to content

Commit 3e04bf7

Browse files
feat(mueller): add has-twitter-url check
1 parent 88ca664 commit 3e04bf7

File tree

1 file changed

+9
-0
lines changed
  • php-config/Emergence/Mueller/Investigator.config.d

1 file changed

+9
-0
lines changed

php-config/Emergence/Mueller/Investigator.config.d/laddr.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
}
1717
];
1818

19+
Investigator::$tests['has-twitter-url'] = [
20+
'points' => -100,
21+
'function' => function (IUser $User) {
22+
return $User->Twitter
23+
&& stripos($User->Twitter, 'https://twitter.com/') !== 0
24+
&& (stripos($User->Twitter, 'http://') !== false || stripos($User->Twitter, 'https://') !== false);
25+
}
26+
];
27+
1928
Investigator::$tests['has-comment-url'] = [
2029
'points' => -100,
2130
'function' => function (IUser $User, array &$userCache) {

0 commit comments

Comments
 (0)