Skip to content

Commit c51e05e

Browse files
pmishevfranmomu
authored andcommitted
[Tree] [NestedSet] Fixed wrong param name in docs
1 parent 64d38e6 commit c51e05e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/tree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ There are repository methods that are available for you in all the strategies:
12151215
* nodeDecorator: Closure (null) - uses $node as argument and returns decorated item as string
12161216
* rootOpen: string || Closure ('\<ul\>') - branch start, closure will be given $children as a parameter
12171217
* rootClose: string ('\</ul\>') - branch close
1218-
* childStart: string || Closure ('\<li\>') - start of node, closure will be given $node as a parameter
1218+
* childOpen: string || Closure ('\<li\>') - start of node, closure will be given $node as a parameter
12191219
* childClose: string ('\</li\>') - close of node
12201220
* childSort: array || keys allowed: field: field to sort on, dir: direction. 'asc' or 'desc'
12211221
- *includeNode*: Using "true", this argument allows you to include in the result the node you passed as the first argument. Defaults to "false".

src/Tree/RepositoryUtilsInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface RepositoryUtilsInterface
2525
* - nodeDecorator: Closure (null) - uses $node as argument and returns the decorated item as a string
2626
* - rootOpen: string || Closure ('<ul>') - branch start, Closure will be given $children as a parameter
2727
* - rootClose: string ('</ul>') - branch close
28-
* - childStart: string || Closure ('<li>') - start of node, Closure will be given $node as a parameter
28+
* - childOpen: string || Closure ('<li>') - start of node, Closure will be given $node as a parameter
2929
* - childClose: string ('</li>') - close of node
3030
* - childSort: array || keys allowed: field: field to sort on, dir: direction. 'asc' or 'desc'
3131
* @param bool $includeNode Flag indicating whether the given node should be included in the results
@@ -49,7 +49,7 @@ public function childrenHierarchy($node = null, $direct = false, array $options
4949
* - nodeDecorator: Closure (null) - uses $node as argument and returns the decorated item as a string
5050
* - rootOpen: string || Closure ('<ul>') - branch start, Closure will be given $children as a parameter
5151
* - rootClose: string ('</ul>') - branch close
52-
* - childStart: string || Closure ('<li>') - start of node, Closure will be given $node as a parameter
52+
* - childOpen: string || Closure ('<li>') - start of node, Closure will be given $node as a parameter
5353
* - childClose: string ('</li>') - close of node
5454
*
5555
* @return array|string

0 commit comments

Comments
 (0)