| Conditions | 2 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | protected static function validEntityID(string $value, string $message = ''): void |
||
|
|
|||
| 23 | { |
||
| 24 | static::validSAMLAnyURI($value); |
||
| 25 | |||
| 26 | try { |
||
| 27 | parent::notWhitespaceOnly($value); |
||
| 28 | parent::maxLength( |
||
| 29 | $value, |
||
| 30 | C::ENTITYID_MAX_LENGTH, |
||
| 31 | sprintf('An entityID cannot be longer than %d characters.', C::ENTITYID_MAX_LENGTH), |
||
| 32 | ); |
||
| 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.