class
Analyzer::Php::Slim
- Analyzer::Php::Slim
- Analyzer::Php::PhpEngine
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/php/slim.crConstant Summary
-
PARAM_PATTERNS =
[{/\$args\s*\[\s*['"]([^'"]+)['"]\s*\]/, "path"}, {/->getQueryParams\s*\(\s*\)\s*\[\s*['"]([^'"]+)['"]\s*\]/, "query"}, {/->getParsedBody\s*\(\s*\)\s*\[\s*['"]([^'"]+)['"]\s*\]/, "form"}, {/->getHeaderLine\s*\(\s*['"]([^'"]+)['"]\s*\)/, "header"}, {/->getHeader\s*\(\s*['"]([^'"]+)['"]\s*\)/, "header"}, {/->getCookieParams\s*\(\s*\)\s*\[\s*['"]([^'"]+)['"]\s*\]/, "cookie"}] -
RELEVANCE_MARKER_RE =
/Slim\\|SlimFramework|AppFactory|RouteCollectorProxy/ -
Precompiled once at load: these four markers used to be four separate
String#includes?scans of the whole file ORed together. Crystal'sString#includes?is measurably slower than a single precompiledRegex#matches?call, and this runs on every .php file fed into the analyzer during a project-wide scan.