@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public static function enable() |
| 48 | 48 | { |
| 49 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
| 49 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
| 50 | 50 | return new static($builder->getClassMetadata(), $builder->getName()); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public static function enable() |
| 48 | 48 | { |
| 49 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
| 49 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
| 50 | 50 | return new static($builder->getClassMetadata(), $builder->getName()); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public static function enable() |
| 18 | 18 | { |
| 19 | - Builder::macro(self::MACRO_METHOD, function (Fluent $builder, $createdAt = 'createdAt', $updatedAt = 'updatedAt', $type = 'dateTime') { |
|
| 19 | + Builder::macro(self::MACRO_METHOD, function(Fluent $builder, $createdAt = 'createdAt', $updatedAt = 'updatedAt', $type = 'dateTime') { |
|
| 20 | 20 | $builder->{$type}($createdAt)->timestampable()->onCreate(); |
| 21 | 21 | $builder->{$type}($updatedAt)->timestampable()->onUpdate(); |
| 22 | 22 | }); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public static function enable() |
| 17 | 17 | { |
| 18 | - Field::macro(static::MACRO_METHOD, function (Field $builder) { |
|
| 18 | + Field::macro(static::MACRO_METHOD, function(Field $builder) { |
|
| 19 | 19 | return new static($builder->getClassMetadata(), $builder->getName()); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function enable() |
| 39 | 39 | { |
| 40 | - Field::macro(self::MACRO_METHOD, function (Field $field) { |
|
| 40 | + Field::macro(self::MACRO_METHOD, function(Field $field) { |
|
| 41 | 41 | return new static($field->getClassMetadata(), $field->getName()); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function enable() |
| 39 | 39 | { |
| 40 | - Field::macro(self::MACRO_METHOD, function (Field $field) { |
|
| 40 | + Field::macro(self::MACRO_METHOD, function(Field $field) { |
|
| 41 | 41 | return new static($field->getClassMetadata(), $field->getName()); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | public static function enable() |
| 61 | 61 | { |
| 62 | - Field::macro(self::MACRO_METHOD, function (Field $field, $separator = '|') { |
|
| 62 | + Field::macro(self::MACRO_METHOD, function(Field $field, $separator = '|') { |
|
| 63 | 63 | return new static($field->getClassMetadata(), $field->getName(), $separator); |
| 64 | 64 | }); |
| 65 | 65 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function enable() |
| 39 | 39 | { |
| 40 | - Field::macro(self::MACRO_METHOD, function (Field $field) { |
|
| 40 | + Field::macro(self::MACRO_METHOD, function(Field $field) { |
|
| 41 | 41 | return new static($field->getClassMetadata(), $field->getName()); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public static function enable() |
| 39 | 39 | { |
| 40 | - Field::macro(self::MACRO_METHOD, function (Field $field) { |
|
| 40 | + Field::macro(self::MACRO_METHOD, function(Field $field) { |
|
| 41 | 41 | return new static($field->getClassMetadata(), $field->getName()); |
| 42 | 42 | }); |
| 43 | 43 | } |