Code Duplication    Length = 2-2 lines in 2 locations

src/Routing/RouteCollection.php 2 locations

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