Remove unnecessary variable
This commit is contained in:
parent
f533c70e68
commit
3a10c34367
@ -309,7 +309,7 @@ class Route2
|
|||||||
public static function dispatch(?string $method = null, ?string $uri = null): bool
|
public static function dispatch(?string $method = null, ?string $uri = null): bool
|
||||||
{
|
{
|
||||||
$method = strtoupper($method ?? $_SERVER['REQUEST_METHOD']);
|
$method = strtoupper($method ?? $_SERVER['REQUEST_METHOD']);
|
||||||
$uri = rawurldecode($uri = strtok($uri ?? self::getRelativeRequestUri(), '?'));
|
$uri = rawurldecode(strtok($uri ?? self::getRelativeRequestUri(), '?'));
|
||||||
|
|
||||||
$routes = self::matchRoute($uri);
|
$routes = self::matchRoute($uri);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user