diff --git a/.holo/sources/laddr.toml b/.holo/sources/laddr.toml index ae1d2eb1..66d0b0d3 100644 --- a/.holo/sources/laddr.toml +++ b/.holo/sources/laddr.toml @@ -1,3 +1,3 @@ [holosource] url = "https://github.com/CodeForPhilly/laddr" -ref = "refs/tags/v3.1.4" +ref = "refs/tags/v3.2.1" diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..2487439f --- /dev/null +++ b/.vscode/launch.json @@ -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" + ] + } + ] +} \ No newline at end of file diff --git a/php-config/Emergence/Mueller/Investigator.config.d/codeforphilly.php b/php-config/Emergence/Mueller/Investigator.config.d/codeforphilly.php new file mode 100644 index 00000000..742d1b80 --- /dev/null +++ b/php-config/Emergence/Mueller/Investigator.config.d/codeforphilly.php @@ -0,0 +1,52 @@ + 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 + ); + } +];