Code Duplication    Length = 2-2 lines in 2 locations

src/Routing/RouteCollection.php 2 locations

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