Code Duplication    Length = 2-2 lines in 2 locations

src/Routing/RouteCollection.php 2 locations

@@ 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