class
Analyzer::Php::Laravel
- Analyzer::Php::Laravel
- Analyzer::Php::PhpEngine
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/php/laravel.crConstant Summary
-
ACTION_FILTER_RES =
{"only" => Regex.new("->\\s*only\\s*\\((.*?)\\)", Regex::Options::IGNORE_CASE | Regex::Options::MULTILINE), "except" => Regex.new("->\\s*except\\s*\\((.*?)\\)", Regex::Options::IGNORE_CASE | Regex::Options::MULTILINE)} -
API_RESOURCE_ACTIONS =
["index", "store", "show", "update", "destroy"] -
EMPTY_IMPORTS =
{} of String => String -
EMPTY_RESOURCE_PARAMS =
{} of String => String -
RESOURCE_ACTIONS =
["index", "create", "store", "show", "edit", "update", "destroy"] -
RESOURCE_CALL_RES =
{"resource" => Regex.new("Route::resource\\s*\\(\\s*['\"]([^'\"]+)['\"]", Regex::Options::IGNORE_CASE | Regex::Options::MULTILINE), "apiResource" => Regex.new("Route::apiResource\\s*\\(\\s*['\"]([^'\"]+)['\"]", Regex::Options::IGNORE_CASE | Regex::Options::MULTILINE)} -
Hoisted patterns for
extract_resource_route_calls/extract_resource_action_filter— both call sites pass literal names ("resource"/"apiResource", "only"/"except"), and the previousRegex.newinterpolation recompiled the pattern on every call (per file, and per resource statement respectively).