| @@ -240,7 +240,7 @@ | ||
| 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 | * | 
| @@ -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 | } | 
| @@ -44,7 +44,7 @@ | ||
| 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 |      { |