Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected function resolveNameIdFormat(string $option = 'nameIdFormat') |
||
20 | { |
||
21 | $value = $this->option($option) ?: 'persistent'; |
||
|
|||
22 | |||
23 | if ($this->validateNameIdFormat($value)) { |
||
24 | return $value; |
||
25 | } |
||
26 | |||
27 | $this->error('Name ID format is invalid. Supported values: ' . implode(', ', $this->supportedNameIdFormats())); |
||
28 | |||
29 | return null; |
||
30 | } |
||
64 | } |