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