public function toString(Array $tree) {
    $text = '';
    while (!empty($tree)) {
      $node = array_shift($tree);

      $text .= str_repeat('  ',$node->getDepth()).(string) $node."\n";
    }
    
    return $text;
  }
public function toString(Array $tree) {
    $text = '';
    while (!empty($tree)) {
      $node = array_shift($tree);

      $text .= str_repeat('  ',$node->getDepth()).(string) $node."\n";
    }
    
    return $text;
  }
public function toString ( Array $ tree ) { $ text = '' ; while ( ! empty ( $ tree ) ) { $ node = array_shift ( $ tree ) ; $ text .= str_repeat ( '  ' , $ node -> getDepth ( ) ) . ( string ) $ node . "\n" ; } return $ text ; }
Converts a NestedSet flat-Array into a human readable text format

@param Webforge\CMS\Navigation\Node[] $tree
@return string
Converts a NestedSet flat - Array into a human readable text format