|
@@ -92,7 +92,7 @@ discard block |
|
|
block discarded – undo |
|
92
|
92
|
*/ |
|
93
|
93
|
public static function enable() |
|
94
|
94
|
{ |
|
95
|
|
- Builder::macro(self::MACRO_METHOD, function (Fluent $fluent, $strategy = 'nested', $callback = null, $autoComplete = false) { |
|
|
95
|
+ Builder::macro(self::MACRO_METHOD, function(Fluent $fluent, $strategy = 'nested', $callback = null, $autoComplete = false) { |
|
96
|
96
|
$tree = new static($fluent->getBuilder()->getClassMetadata(), $strategy, $autoComplete); |
|
97
|
97
|
|
|
98
|
98
|
if (is_callable($callback)) { |
|
@@ -102,7 +102,7 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
return $tree; |
|
103
|
103
|
}); |
|
104
|
104
|
|
|
105
|
|
- Builder::macro('nestedSet', function (Fluent $fluent, $callback = null) { |
|
|
105
|
+ Builder::macro('nestedSet', function(Fluent $fluent, $callback = null) { |
|
106
|
106
|
return $fluent->tree('nested', $callback, true); |
|
107
|
107
|
}); |
|
108
|
108
|
|
Please login to merge, or discard this patch.