Skip to content

Commit f9d5ca5

Browse files
Merge pull request #85 from CodeForPhilly/develop
Release: v1.3.0
2 parents 865325f + 392f272 commit f9d5ca5

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

.holo/sources/laddr.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/CodeForPhilly/laddr"
3-
ref = "refs/tags/v3.1.4"
3+
ref = "refs/tags/v3.2.1"

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
{
3+
// Use IntelliSense to learn about possible attributes.
4+
// Hover to view descriptions of existing attributes.
5+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Listen for XDebug",
10+
"type": "php",
11+
"request": "launch",
12+
"port": 9000,
13+
"pathMappings": {
14+
"/hab/svc/php-runtime/var/site": "${workspaceRoot}",
15+
"/hab/svc/php-runtime/var/site/php-classes/Emergence/Mueller": "${workspaceRoot:emergence-mueller}/php-classes/Emergence/Mueller"
16+
},
17+
"ignore": [
18+
"**/vendor/**/*.php",
19+
"**/src-compat/File.php"
20+
]
21+
}
22+
]
23+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
namespace Emergence\Mueller;
4+
5+
use Emergence\People\IUser;
6+
7+
Investigator::$tests['has-local-location'] = [
8+
'points' => 500,
9+
'function' => function (IUser $User, array &$userCache) {
10+
if (!$User->Location) {
11+
return false;
12+
}
13+
14+
$location = strtolower($User->Location);
15+
16+
return (
17+
strpos($location, 'philly') !== false
18+
|| strpos($location, 'phila') !== false
19+
|| strpos($location, 'fishtown') !== false
20+
|| strpos($location, 'delaware') !== false
21+
|| strpos($location, 'west chester') !== false
22+
|| strpos($location, 'drexel') !== false
23+
|| strpos($location, 'temple') !== false
24+
|| strpos($location, 'penn') !== false
25+
|| strpos($location, 'fairmount') !== false
26+
|| strpos($location, 'passyunk') !== false
27+
|| strpos($location, 'center city') !== false
28+
|| strpos($location, 'university city') !== false
29+
|| strpos($location, 'ucity') !== false
30+
|| strpos($location, 'new jersey') !== false
31+
|| strpos($location, 'south jersey') !== false
32+
|| strpos($location, 'swarthmore') !== false
33+
|| strpos($location, 'old city') !== false
34+
|| strpos($location, 'olde city') !== false
35+
|| strpos($location, 'northern liberties') !== false
36+
|| strpos($location, 'nolibs') !== false
37+
|| strpos($location, 'kingsessing') !== false
38+
|| strpos($location, 'kensington') !== false
39+
|| strpos($location, 'port richmond') !== false
40+
|| strpos($location, 'rittenhouse') !== false
41+
|| strpos($location, 'lansdale') !== false
42+
|| strpos($location, 'graduate hospital') !== false
43+
|| strpos($location, 'newtown square') !== false
44+
|| strpos($location, 'roxborough') !== false
45+
|| strpos($location, 'manayunk') !== false
46+
|| strpos($location, 'conshohocken') !== false
47+
|| strpos($location, 'cherry hill') !== false
48+
|| strpos($location, 'phoenixville') !== false
49+
|| strpos($location, 'brewerytown') !== false
50+
);
51+
}
52+
];

0 commit comments

Comments
 (0)