Completed
Pull Request — master (#3)
by Vitaliy
15:06 queued 08:12
created
src/ParentNodeTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-     * @param array $items
33
+     * @param ChildNodeInterface[] $items
34 34
      */
35 35
     protected function initializeCollection(array $items)
36 36
     {
Please login to merge, or discard this patch.
src/Tree.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
      *
241 241
      * @param array  $tree
242 242
      * @param string $parent node name or null for inserting into root node
243
-     * @param $node
243
+     * @param string $node
244 244
      *
245 245
      * @throws \Exception
246 246
      *
Please login to merge, or discard this patch.
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.