@@ -39,11 +39,11 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | if (preg_match('/^[a-zA-Z]{3} \d{4}$/', $input)) { |
| 42 | - return (new \DateTime($input))->format('Y-m').'-00'; |
|
| 42 | + return (new \DateTime($input))->format('Y-m') . '-00'; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | if (preg_match('/^\d{4}$/', $input)) { |
| 46 | - return $input.'-00-00'; |
|
| 46 | + return $input . '-00-00'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | throw new UnrecognizedDateFormat($input); |