We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 14 | class DateException extends ValidationException |
||
| 15 | { |
||
| 16 | const FORMAT = 1; |
||
| 17 | |||
| 18 | public static $defaultTemplates = [ |
||
| 19 | self::MODE_DEFAULT => [ |
||
| 20 | self::STANDARD => '{{name}} must be a valid date', |
||
| 21 | self::FORMAT => '{{name}} must be a valid date. Sample format: {{format}}', |
||
| 22 | ], |
||
| 23 | self::MODE_NEGATIVE => [ |
||
| 24 | self::STANDARD => '{{name}} must not be a valid date', |
||
| 25 | self::FORMAT => '{{name}} must not be a valid date in the format {{format}}', |
||
| 26 | ], |
||
| 27 | ]; |
||
| 28 | |||
| 29 | 18 | public function configure($name, array $params = []) |
|
| 30 | { |
||
| 31 | 18 | $params['format'] = date( |
|
| 32 | 18 | $params['format'], |
|
| 33 | 18 | strtotime('2005-12-30') |
|
| 34 | ); |
||
| 35 | |||
| 36 | 18 | return parent::configure($name, $params); |
|
| 37 | } |
||
| 38 | |||
| 39 | 18 | public function chooseTemplate() |
|
| 43 | } |
||
| 44 |