| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | protected static function validSAMLString(string $value, string $message = ''): void | ||
| 21 |     { | ||
| 22 | parent::validString($value, $message, SchemaViolationException::class); | ||
| 23 | |||
| 24 |         try { | ||
| 25 | /** | ||
| 26 | * 1.2.1 String and URI Values | ||
| 27 | * | ||
| 28 | * All strings in SAML messages MUST consist of at least one non-whitespace character | ||
| 29 | * (whitespace is defined in the XML Recommendation [XML] §2.3). | ||
| 30 | * Empty and whitespace-only values are disallowed. | ||
| 31 | */ | ||
| 32 | static::notWhitespaceOnly($value, $message ?: '%s is not a SAML1.1-compliant string'); | ||
| 33 |         } catch (AssertionFailedException $e) { | ||
| 34 | throw new ProtocolViolationException($e->getMessage()); | ||
| 35 | } | ||
| 38 |