Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .holo/sources/laddr.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[holosource]
url = "https://github.com/CodeForPhilly/laddr"
ref = "refs/tags/v3.1.4"
ref = "refs/tags/v3.2.1"
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/hab/svc/php-runtime/var/site": "${workspaceRoot}",
"/hab/svc/php-runtime/var/site/php-classes/Emergence/Mueller": "${workspaceRoot:emergence-mueller}/php-classes/Emergence/Mueller"
},
"ignore": [
"**/vendor/**/*.php",
"**/src-compat/File.php"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php

namespace Emergence\Mueller;

use Emergence\People\IUser;

Investigator::$tests['has-local-location'] = [
'points' => 500,
'function' => function (IUser $User, array &$userCache) {
if (!$User->Location) {
return false;
}

$location = strtolower($User->Location);

return (
strpos($location, 'philly') !== false
|| strpos($location, 'phila') !== false
|| strpos($location, 'fishtown') !== false
|| strpos($location, 'delaware') !== false
|| strpos($location, 'west chester') !== false
|| strpos($location, 'drexel') !== false
|| strpos($location, 'temple') !== false
|| strpos($location, 'penn') !== false
|| strpos($location, 'fairmount') !== false
|| strpos($location, 'passyunk') !== false
|| strpos($location, 'center city') !== false
|| strpos($location, 'university city') !== false
|| strpos($location, 'ucity') !== false
|| strpos($location, 'new jersey') !== false
|| strpos($location, 'south jersey') !== false
|| strpos($location, 'swarthmore') !== false
|| strpos($location, 'old city') !== false
|| strpos($location, 'olde city') !== false
|| strpos($location, 'northern liberties') !== false
|| strpos($location, 'nolibs') !== false
|| strpos($location, 'kingsessing') !== false
|| strpos($location, 'kensington') !== false
|| strpos($location, 'port richmond') !== false
|| strpos($location, 'rittenhouse') !== false
|| strpos($location, 'lansdale') !== false
|| strpos($location, 'graduate hospital') !== false
|| strpos($location, 'newtown square') !== false
|| strpos($location, 'roxborough') !== false
|| strpos($location, 'manayunk') !== false
|| strpos($location, 'conshohocken') !== false
|| strpos($location, 'cherry hill') !== false
|| strpos($location, 'phoenixville') !== false
|| strpos($location, 'brewerytown') !== false
);
}
];