Unused method, property, variable or parameter

This commit is contained in:
Simon Vieille 2015-03-05 19:41:00 +01:00
parent b83de090eb
commit 42c957ac34
2 changed files with 11 additions and 5 deletions

View file

@ -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();

View file

@ -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 .= '&nbsp;&nbsp;&nbsp;';
}
$prefix .= '&raquo;';