Completed
Push — master ( ee7457...ea6079 )
by Vitaliy
05:13
created
src/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/ParentNodeTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,12 +121,12 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.