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 | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class NotOptionalException extends ValidationException |
||
| 17 | { |
||
| 18 | const STANDARD = 0; |
||
| 19 | const NAMED = 1; |
||
| 20 | |||
| 21 | public static $defaultTemplates = [ |
||
| 22 | self::MODE_DEFAULT => [ |
||
| 23 | self::STANDARD => 'The value must not be optional', |
||
| 24 | self::NAMED => '{{name}} must not be optional', |
||
| 25 | ], |
||
| 26 | self::MODE_NEGATIVE => [ |
||
| 27 | self::STANDARD => 'The value must be optional', |
||
| 28 | self::NAMED => '{{name}} must be optional', |
||
| 29 | ], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | public function chooseTemplate() |
||
| 37 |