| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function enable() |
||
| 18 | { |
||
| 19 | 2 | Builder::macro(self::MACRO_METHOD, function (Fluent $builder, $createdAt = 'createdAt', $updatedAt = 'updatedAt', $type = 'dateTime') { |
|
| 20 | 1 | $builder->{$type}($createdAt)->timestampable()->onCreate(); |
|
| 21 | 1 | $builder->{$type}($updatedAt)->timestampable()->onUpdate(); |
|
| 22 | 2 | }); |
|
| 23 | 2 | } |
|
| 24 | } |
||
| 25 |