| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | View Code Duplication | public static function root($location = "", $query = ""){ |
|
| 41 | |||
| 42 | if(!empty($query)){ |
||
| 43 | $query = '?' . http_build_query((array)$query, null, '&'); |
||
| 44 | } |
||
| 45 | |||
| 46 | $response = new Response('', 302, ["Location" => PUBLIC_ROOT . $location . $query]); |
||
| 47 | $response->send(); |
||
| 48 | } |
||
| 49 | |||
| 72 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.