Compare commits
No commits in common. "41e151f0311915a4fa1bea14b20398a6f6898ce6" and "012d306d3abc7b1b222e771778d06f7f858dd915" have entirely different histories.
41e151f031
...
012d306d3a
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sharkk/router",
|
||||
"description": "A simple node-based router.",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.7",
|
||||
"type": "library",
|
||||
"license": "MIT",
|
||||
"autoload": {
|
||||
|
||||
@ -128,11 +128,14 @@ class Router
|
||||
*/
|
||||
private function checkForHandlers(array $node): bool
|
||||
{
|
||||
foreach (['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'] as $m)
|
||||
if (isset($node[$m]))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
$hasHandlers = false;
|
||||
foreach (['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'] as $m) {
|
||||
if (isset($node[$m])) {
|
||||
$hasHandlers = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $hasHandlers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user