Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected function addQueryString($uri, array $parameters) |
||
20 | { |
||
21 | // If the URI has a fragment we will move it to the end of this URI since it will |
||
22 | // need to come after any query string that may be added to the URL else it is |
||
23 | // not going to be available. We will remove it then append it back on here. |
||
24 | if (! is_null($fragment = parse_url($uri, PHP_URL_FRAGMENT))) { |
||
25 | $uri = preg_replace('/#.*/', '', $uri); |
||
26 | } |
||
27 | |||
28 | $uri .= '/'.$this->getRouteQueryString($parameters); |
||
29 | |||
30 | return is_null($fragment) ? $uri : $uri."#{$fragment}"; |
||
31 | } |
||
32 | } |
||
33 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.