We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 4 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | 14 | private function isDateTime(string $format, string $value): bool  | 
            |
| 32 |     { | 
            ||
| 33 | $exceptionalFormats = [  | 
            ||
| 34 | 14 | 'c' => 'Y-m-d\TH:i:sP',  | 
            |
| 35 | 'r' => 'D, d M Y H:i:s O',  | 
            ||
| 36 | ];  | 
            ||
| 37 | |||
| 38 | 14 | $info = date_parse_from_format($exceptionalFormats[$format] ?? $format, $value);  | 
            |
| 39 | |||
| 40 | 14 | return ($info['error_count'] + $info['warning_count']) === 0;  | 
            |
| 41 | }  | 
            ||
| 43 |