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