| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function transform($str, array $mapping = null) |
||
| 15 | { |
||
| 16 | try { |
||
| 17 | return new \DateTime($str); |
||
| 18 | } catch (\Exception $e) { |
||
| 19 | throw new \Exception(sprintf('"%s" is not a supported date/time/datetime format. To know which formats are supported, please visit http://www.php.net/manual/en/datetime.formats.php', $str)); |
||
| 20 | } |
||
| 33 |