@@ 74-75 (lines=2) @@ | ||
71 | { |
|
72 | if (is_array($args)) { |
|
73 | $nbrArgs = count($args); |
|
74 | for ($i = 0; $i < $nbrArgs; ++$i) |
|
75 | $this->routes['prefix_' . $i] = '/' . trim($args[$i], '/'); |
|
76 | } elseif (is_string($args)) |
|
77 | for ($i = 0; $i < $this->countRoutes; ++$i) |
|
78 | $this->routes['prefix_' . $i] = '/' . trim($args, '/'); |
|
@@ 77-78 (lines=2) @@ | ||
74 | for ($i = 0; $i < $nbrArgs; ++$i) |
|
75 | $this->routes['prefix_' . $i] = '/' . trim($args[$i], '/'); |
|
76 | } elseif (is_string($args)) |
|
77 | for ($i = 0; $i < $this->countRoutes; ++$i) |
|
78 | $this->routes['prefix_' . $i] = '/' . trim($args, '/'); |
|
79 | if ($this->countRoutes == 0) $this->countRoutes++; |
|
80 | } |
|
81 |