|
@@ -98,7 +98,7 @@ discard block |
|
|
block discarded – undo |
|
98
|
98
|
*/ |
|
99
|
99
|
public static function enable() |
|
100
|
100
|
{ |
|
101
|
|
- $macro = function (Fluent $fluent, $strategy = 'nested', $callback = null, $autoComplete = false) { |
|
|
101
|
+ $macro = function(Fluent $fluent, $strategy = 'nested', $callback = null, $autoComplete = false) { |
|
102
|
102
|
$tree = new static($fluent, $strategy, $autoComplete); |
|
103
|
103
|
|
|
104
|
104
|
if (is_callable($callback)) { |
|
@@ -109,7 +109,7 @@ discard block |
|
|
block discarded – undo |
|
109
|
109
|
}; |
|
110
|
110
|
|
|
111
|
111
|
Builder::macro(self::MACRO_METHOD, $macro); |
|
112
|
|
- Builder::macro('nestedSet', function (Fluent $fluent, $callback = null) use ($macro) { |
|
|
112
|
+ Builder::macro('nestedSet', function(Fluent $fluent, $callback = null) use ($macro) { |
|
113
|
113
|
return $macro($fluent, 'nested', $callback, true); |
|
114
|
114
|
}); |
|
115
|
115
|
|
Please login to merge, or discard this patch.