| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait GeolocationTrait |
||
| 13 | { |
||
| 14 | // @TODO: this regex is incomplete, so reverting to the default URI-check |
||
| 15 | //private static string $geolocation_regex = '/^geo:([-+]?\d+(?:\.\d+)?),([-+]?\d+(?:\.\d+)?)(?:\?z=(\d{1,2}))?$/'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | */ |
||
| 19 | protected static function validGeolocation(string $value, string $message = ''): void |
||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.