We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class KeyValueException extends ValidationException |
||
| 17 | { |
||
| 18 | public const COMPONENT = 'component'; |
||
| 19 | |||
| 20 | public static $defaultTemplates = [ |
||
| 21 | self::MODE_DEFAULT => [ |
||
| 22 | self::STANDARD => 'Key {{name}} must be present', |
||
| 23 | self::COMPONENT => '{{baseKey}} must be valid to validate {{comparedKey}}', |
||
| 24 | ], |
||
| 25 | self::MODE_NEGATIVE => [ |
||
| 26 | self::STANDARD => 'Key {{name}} must not be present', |
||
| 27 | self::COMPONENT => '{{baseKey}} must not be valid to validate {{comparedKey}}', |
||
| 28 | ], |
||
| 29 | ]; |
||
| 30 | |||
| 31 | public function chooseTemplate(): string |
||
| 36 |