@@ -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 | } |
@@ -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 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public static function enable() |
36 | 36 | { |
37 | - Builder::macro('loggable', function (Builder $builder, $logEntry = null) { |
|
37 | + Builder::macro('loggable', function(Builder $builder, $logEntry = null) { |
|
38 | 38 | $loggable = new static($builder->getClassMetadata(), $logEntry); |
39 | 39 | $loggable->build(); |
40 | 40 | }); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public static function enable() |
39 | 39 | { |
40 | - Builder::macro(self::MACRO_METHOD, function (Builder $builder, $class) { |
|
40 | + Builder::macro(self::MACRO_METHOD, function(Builder $builder, $class) { |
|
41 | 41 | return new static($builder->getClassMetadata(), $class); |
42 | 42 | }); |
43 | 43 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | public static function enable() |
55 | 55 | { |
56 | 56 | foreach (self::$validTypes as $type) { |
57 | - Field::macro("asFile$type", function (Field $builder) use ($type) { |
|
57 | + Field::macro("asFile$type", function(Field $builder) use ($type) { |
|
58 | 58 | return new static($builder->getClassMetadata(), $builder->getName(), $type); |
59 | 59 | }); |
60 | 60 | } |
@@ -37,15 +37,15 @@ |
||
37 | 37 | |
38 | 38 | public static function enable() |
39 | 39 | { |
40 | - Field::macro(self::MACRO_METHOD, function (Field $builder) { |
|
40 | + Field::macro(self::MACRO_METHOD, function(Field $builder) { |
|
41 | 41 | return new static($builder->getClassMetadata(), $builder->getName()); |
42 | 42 | }); |
43 | 43 | |
44 | - ManyToOne::macro(self::MACRO_METHOD, function (ManyToOne $builder) { |
|
44 | + ManyToOne::macro(self::MACRO_METHOD, function(ManyToOne $builder) { |
|
45 | 45 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
46 | 46 | }); |
47 | 47 | |
48 | - OneToOne::macro(self::MACRO_METHOD, function (OneToOne $builder) { |
|
48 | + OneToOne::macro(self::MACRO_METHOD, function(OneToOne $builder) { |
|
49 | 49 | return new static($builder->getClassMetadata(), $builder->getRelation()); |
50 | 50 | }); |
51 | 51 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function map(Fluent $builder) |
24 | 24 | { |
25 | - $builder->integer('id')->unsigned()->primary()->generatedValue(function (GeneratedValue $builder) { |
|
25 | + $builder->integer('id')->unsigned()->primary()->generatedValue(function(GeneratedValue $builder) { |
|
26 | 26 | $builder->identity(); |
27 | 27 | }); |
28 | 28 | $builder->string('locale')->length(8); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function map(Fluent $builder) |
24 | 24 | { |
25 | - $builder->integer('id')->unsigned()->primary()->generatedValue(function (GeneratedValue $builder) { |
|
25 | + $builder->integer('id')->unsigned()->primary()->generatedValue(function(GeneratedValue $builder) { |
|
26 | 26 | $builder->identity(); |
27 | 27 | }); |
28 | 28 | $builder->integer('depth'); |