Code Duplication    Length = 7-7 lines in 2 locations

src/Dispatchers/DispatcherClass.php 1 location

@@ 311-317 (lines=7) @@
308
            $parameters = array_values($parameters);
309
            $matches    = array_values($matches);
310
311
            foreach ($parameters as $key => $valueName) {
312
                foreach ($paramMap as $possition => $value) {
313
                    if ($value == $valueName[1][0]) {
314
                        $output[] = $matches[$possition];
315
                    }
316
                }
317
            }
318
        }
319
320
        return $output;

src/Dispatchers/DispatcherClosure.php 1 location

@@ 118-124 (lines=7) @@
115
        $output  = [];
116
        $matches = array_values($matches);
117
        if (isset($parameters)) {
118
            foreach ($parameters as $key => $valueName) {
119
                foreach ($paramMap as $possition => $value) {
120
                    if ($value == $valueName[1][0]) {
121
                        $output[] = $matches[$possition];
122
                    }
123
                }
124
            }
125
        }
126
127
        return $output;