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