route : the debug is now HTML valid

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5278 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-22 19:10:44 +00:00
parent 398e567800
commit 059f1383db

View File

@@ -350,11 +350,11 @@ class route
{ {
$route = $this->preroute.$route; $route = $this->preroute.$route;
if ($this->debug) if ($this->debug)
echo "<pre>==> GET $route ?? "; echo "<tt>==> GET $route ?? ";
if ($this->method () !== "GET") if ($this->method () !== "GET")
{ {
if ($this->debug) if ($this->debug)
echo "==> Not a GET Method\n"; echo "==> Not a GET Method<tt><br/>\n";
return $this; return $this;
} }
@@ -375,11 +375,11 @@ class route
{ {
$route = $this->preroute.$route; $route = $this->preroute.$route;
if ($this->debug) if ($this->debug)
echo "<pre>==> POST $route ?? "; echo "<tt>==> POST $route ?? ";
if ($this->method () !== "POST") if ($this->method () !== "POST")
{ {
if ($this->debug) if ($this->debug)
echo "==> Not a POST Method\n"; echo "==> Not a POST Method<tt><br/>\n";
return $this; return $this;
} }
@@ -400,11 +400,11 @@ class route
{ {
$route = $this->preroute.$route; $route = $this->preroute.$route;
if ($this->debug) if ($this->debug)
echo "<pre>==> PUT $route ?? "; echo "<tt>==> PUT $route ?? ";
if ($this->method () !== "PUT") if ($this->method () !== "PUT")
{ {
if ($this->debug) if ($this->debug)
echo "==> Not a PUT Method\n"; echo "==> Not a PUT Method<tt><br/>\n";
return $this; return $this;
} }
@@ -425,11 +425,11 @@ class route
{ {
$route = $this->preroute.$route; $route = $this->preroute.$route;
if ($this->debug) if ($this->debug)
echo "<pre>==> DELETE $route ?? "; echo "<tt>==> DELETE $route ?? ";
if ($this->method () !== "DELETE") if ($this->method () !== "DELETE")
{ {
if ($this->debug) if ($this->debug)
echo "==> Not a DELETE Method\n"; echo "==> Not a DELETE Method<tt><br/>\n";
return $this; return $this;
} }
@@ -450,11 +450,11 @@ class route
{ {
$route = $this->preroute.$route; $route = $this->preroute.$route;
if ($this->debug) if ($this->debug)
echo "<pre>==> OPTIONS $route ?? "; echo "<tt>==> OPTIONS $route ?? ";
if ($this->method () !== "OPTIONS") if ($this->method () !== "OPTIONS")
{ {
if ($this->debug) if ($this->debug)
echo "==> Not a OPTIONS Method\n"; echo "==> Not a OPTIONS Method<tt><br/>\n";
return $this; return $this;
} }
@@ -497,7 +497,7 @@ class route
if ($url === $route) if ($url === $route)
{ {
if ($this->debug) if ($this->debug)
echo "==> FOUND EQUAL !\n"; echo "==> FOUND EQUAL !<tt><br/>\n";
$this->mapRoute = $route; $this->mapRoute = $route;
try try
{ {
@@ -543,7 +543,7 @@ class route
if ($rcRegex !== FALSE && $rcRegex !== 0) if ($rcRegex !== FALSE && $rcRegex !== 0)
{ {
if ($this->debug) if ($this->debug)
echo "==> FOUND REGEX !\n"; echo "==> FOUND REGEX !<tt><br/>\n";
$this->mapRoute = $route; $this->mapRoute = $route;
$params = array (); $params = array ();
$reflect = new \ReflectionFunction ($function); $reflect = new \ReflectionFunction ($function);
@@ -581,7 +581,7 @@ class route
} }
if ($this->debug) if ($this->debug)
echo "==> NO MATCH\n"; echo "==> NO MATCH<tt><br/>\n";
return $this; return $this;
} }