| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function addQueryString($uri, array $parameters) |
||
| 33 | { |
||
| 34 | // If the URI has a fragment we will move it to the end of this URI since it will |
||
| 35 | // need to come after any query string that may be added to the URL else it is |
||
| 36 | // not going to be available. We will remove it then append it back on here. |
||
| 37 | if (! is_null($fragment = parse_url($uri, PHP_URL_FRAGMENT))) { |
||
| 38 | $uri = preg_replace('/#.*/', '', $uri); |
||
| 39 | } |
||
| 40 | |||
| 41 | $uri .= '/'.$this->getRouteQueryString($parameters); |
||
| 42 | |||
| 43 | return is_null($fragment) ? $uri : $uri."#{$fragment}"; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.