Code Duplication    Length = 11-11 lines in 2 locations

src/Channel/Router/RouterComposite.php 2 locations

@@ 128-138 (lines=11) @@
125
     * @override
126
     * @inheritDoc
127
     */
128
    public function addRule(callable $matcher, callable $handler, $propagate = false, $limit = 0)
129
    {
130
        $handlers = [];
131
132
        foreach ($this->bus as $bus=>$router)
133
        {
134
            $handlers[] = $router->addRule($matcher, $handler, $propagate, $limit);
135
        }
136
137
        return $handlers;
138
    }
139
140
    /**
141
     * @override
@@ 144-154 (lines=11) @@
141
     * @override
142
     * @inheritDoc
143
     */
144
    public function addDefault(callable $handler, $propagate = false, $limit = 0)
145
    {
146
        $handlers = [];
147
148
        foreach ($this->bus as $bus=>$router)
149
        {
150
            $handlers[] = $router->addDefault($handler, $propagate, $limit);
151
        }
152
153
        return $handlers;
154
    }
155
}
156