@@ -44,7 +44,7 @@ |
||
44 | 44 | public static function applyCallback(callable $callback, NodeInterface $root, $targetClass = ChildNodeInterface::class) |
45 | 45 | { |
46 | 46 | $processed = []; |
47 | - $f = function (ChildNodeInterface $targetNode) use ($callback, $targetClass, &$f, &$processed) { |
|
47 | + $f = function(ChildNodeInterface $targetNode) use ($callback, $targetClass, &$f, &$processed) { |
|
48 | 48 | if (in_array($targetNode, $processed, true)) { |
49 | 49 | return; |
50 | 50 | } |
@@ -121,12 +121,12 @@ |
||
121 | 121 | if ($this->collection === null) { |
122 | 122 | return; |
123 | 123 | } |
124 | - foreach($this->collection as $child) |
|
124 | + foreach ($this->collection as $child) |
|
125 | 125 | { |
126 | 126 | $listeners = $child->listeners('parent.change'); |
127 | 127 | $child->removeAllListeners('parent.change'); |
128 | 128 | $child->internalSetParent($this); |
129 | - foreach($listeners as $listener) { |
|
129 | + foreach ($listeners as $listener) { |
|
130 | 130 | $child->on('parent.change', $listener); |
131 | 131 | } |
132 | 132 | } |