| @@ 320-326 (lines=7) @@ | ||
| 317 | $parameters = array_values($parameters); |
|
| 318 | $matches = array_values($matches); |
|
| 319 | ||
| 320 | foreach ($parameters as $key => $valueName) { |
|
| 321 | foreach ($paramMap as $possition => $value) { |
|
| 322 | if ($value == $valueName[1][0]) { |
|
| 323 | $output[] = $matches[$possition]; |
|
| 324 | } |
|
| 325 | } |
|
| 326 | } |
|
| 327 | } |
|
| 328 | ||
| 329 | return $output; |
|
| @@ 124-130 (lines=7) @@ | ||
| 121 | $output = []; |
|
| 122 | $matches = array_values($matches); |
|
| 123 | if (isset($parameters)) { |
|
| 124 | foreach ($parameters as $valueName) { |
|
| 125 | foreach ($paramMap as $possition => $value) { |
|
| 126 | if ($value == $valueName[1][0]) { |
|
| 127 | $output[] = $matches[$possition]; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | return $output; |
|