| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | protected static function validAnyURI(string $value, string $message = ''): void |
||
| 22 | { |
||
| 23 | parent::validAnyURI($value, $message); |
||
| 24 | |||
| 25 | try { |
||
| 26 | /** |
||
| 27 | * 1.2.1 String and URI Values |
||
| 28 | * |
||
| 29 | * Unless otherwise indicated in this specification, all URI reference values MUST consist |
||
| 30 | * of at least one non-whitespace character |
||
| 31 | */ |
||
| 32 | static::notWhitespaceOnly($value, $message ?: '%s is not a SAML1.1-compliant URI', ProtocolViolationException::class); |
||
| 33 | } catch (InvalidArgumentException $e) { |
||
| 34 | throw new ProtocolViolationException($e->getMessage()); |
||
| 35 | } |
||
| 38 |