| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | protected static function validSAMLDateTime(string $value, string $message = ''): void |
||
|
|
|||
| 20 | { |
||
| 21 | parent::validDateTime($value); |
||
| 22 | |||
| 23 | try { |
||
| 24 | parent::endsWith( |
||
| 25 | $value, |
||
| 26 | 'Z', |
||
| 27 | '%s is not a DateTime expressed in the UTC timezone using the \'Z\' timezone identifier.', |
||
| 28 | ); |
||
| 29 | } catch (AssertionFailedException $e) { |
||
| 30 | throw new ProtocolViolationException($e->getMessage()); |
||
| 31 | } |
||
| 34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.