We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class NotOptionalException extends ValidationException |
||
| 17 | { |
||
| 18 | public const NAMED = 'named'; |
||
| 19 | |||
| 20 | public static $defaultTemplates = [ |
||
| 21 | self::MODE_DEFAULT => [ |
||
| 22 | self::STANDARD => 'The value must not be optional', |
||
| 23 | self::NAMED => '{{name}} must not be optional', |
||
| 24 | ], |
||
| 25 | self::MODE_NEGATIVE => [ |
||
| 26 | self::STANDARD => 'The value must be optional', |
||
| 27 | self::NAMED => '{{name}} must be optional', |
||
| 28 | ], |
||
| 29 | ]; |
||
| 30 | |||
| 31 | public function chooseTemplate(): string |
||
| 40 |