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 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Returns child components.
46 46
      *
47
-     * @return \Nayjest\Collection\CollectionInterface
47
+     * @return \Nayjest\Collection\Decorator\ReadonlyObjectCollection
48 48
      */
49 49
     public function children()
50 50
     {
Please login to merge, or discard this 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.
src/Tree.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      *
288 288
      * @param array  $tree
289 289
      * @param string $parent node name or null for inserting into root node
290
-     * @param $node
290
+     * @param string $node
291 291
      *
292 292
      * @throws \Exception
293 293
      *
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
     /**
324 324
      * @param array $config
325
-     * @param $node
325
+     * @param string $node
326 326
      *
327 327
      * @return false|array children of deleted node
328 328
      */
@@ -345,6 +345,9 @@  discard block
 block discarded – undo
345 345
         return false;
346 346
     }
347 347
 
348
+    /**
349
+     * @param string $nodeName
350
+     */
348 351
     protected function removeNodeFromList($nodeName)
349 352
     {
350 353
         if ($this->nodes->hasKey($nodeName)) {
Please login to merge, or discard this patch.