Unused method, property, variable or parameter
This commit is contained in:
parent
b83de090eb
commit
42c957ac34
|
@ -91,21 +91,26 @@ EOF
|
|||
}
|
||||
|
||||
foreach ($rootNode->getChildren() as $child) {
|
||||
for ($i = 0; $i < $child->getLevel(); $i++) {
|
||||
$l = $child->getLevel();
|
||||
|
||||
for ($i = 0; $i < $i; $i++) {
|
||||
echo " ";
|
||||
}
|
||||
echo $child->getTitle();
|
||||
echo "\n";
|
||||
|
||||
foreach ($child->getChildren() as $child2) {
|
||||
for ($i = 0; $i < $child2->getLevel(); $i++) {
|
||||
$l = $child2->getLevel();
|
||||
|
||||
for ($i = 0; $i < $l; $i++) {
|
||||
echo " ";
|
||||
}
|
||||
echo $child2->getTitle();
|
||||
echo "\n";
|
||||
|
||||
foreach ($child2->getChildren() as $child3) {
|
||||
for ($i = 0; $i < $child3->getLevel(); $i++) {
|
||||
$l = $child3->getLevel();
|
||||
for ($i = 0; $i < $l; $i++) {
|
||||
echo " ";
|
||||
}
|
||||
echo $child3->getTitle();
|
||||
|
|
|
@ -64,9 +64,10 @@ class Node extends BaseNode
|
|||
public function getLevelRender()
|
||||
{
|
||||
$prefix = '';
|
||||
$level = $this->getLevel();
|
||||
|
||||
if ($this->getLevel() > 1) {
|
||||
for ($i = 0; $i < $this->getLevel(); $i++) {
|
||||
if ($level > 1) {
|
||||
for ($i = 0; $i < $level; $i++) {
|
||||
$prefix .= ' ';
|
||||
}
|
||||
$prefix .= '»';
|
||||
|
|
Loading…
Reference in a new issue