| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 22 | protected static function validGeolocation(string $value, string $message = ''): void  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 23 |     { | 
            ||
| 24 | // Assert::regex(  | 
            ||
| 25 | // $value,  | 
            ||
| 26 |         //     '/^geo:([-+]?\d+(?:\.\d+)?),([-+]?\d+(?:\.\d+)?)(?:\?z=(\d{1,2}))?$/', | 
            ||
| 27 | // 'Content is not a valid geolocation: %s'  | 
            ||
| 28 | // );  | 
            ||
| 29 | // The regex above is incomplete, so for now we only test for a valid URI  | 
            ||
| 30 | |||
| 31 |         try { | 
            ||
| 32 | static::validAnyURI($value);  | 
            ||
| 33 |         } catch (AssertionFailedException $e) { | 
            ||
| 34 | throw new ProtocolViolationException($e->getMessage());  | 
            ||
| 35 | }  | 
            ||
| 38 | 
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.