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 | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
22 | final class DateTimeException extends ValidationException |
||
23 | { |
||
24 | public const FORMAT = 1; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public static $defaultTemplates = [ |
||
30 | self::MODE_DEFAULT => [ |
||
31 | self::STANDARD => '{{name}} must be a valid date/time', |
||
32 | self::FORMAT => '{{name}} must be a valid date/time in the format {{sample}}', |
||
33 | ], |
||
34 | self::MODE_NEGATIVE => [ |
||
35 | self::STANDARD => '{{name}} must not be a valid date/time', |
||
36 | self::FORMAT => '{{name}} must not be a valid date/time in the format {{sample}}', |
||
37 | ], |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function configure($name, array $params = []) |
||
44 | { |
||
45 | $params['sample'] = date( |
||
46 | (string) $params['format'], |
||
47 | strtotime('2005-12-30 01:02:03') |
||
48 | ); |
||
49 | |||
50 | return parent::configure($name, $params); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function chooseTemplate() |
||
59 | } |
||
60 | } |
||
61 |