Skip to content

Commit 4f24e65

Browse files
Merge pull request #262 from CodeForPhilly/develop
Release: v3.2.3
2 parents e22a192 + 3e04bf7 commit 4f24e65

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Emergence\Slack\API as SlackAPI;
88

99
Investigator::$tests['email-invalid'] = false;
10+
Investigator::$tests['ip-whitelist'] = false;
1011

1112
Investigator::$tests['has-about-url'] = [
1213
'points' => -100,
@@ -15,6 +16,15 @@
1516
}
1617
];
1718

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+
1828
Investigator::$tests['has-comment-url'] = [
1929
'points' => -100,
2030
'function' => function (IUser $User, array &$userCache) {

0 commit comments

Comments
 (0)