Skip to content

Commit

Permalink
improve tree
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed May 24, 2022
1 parent dbfdd92 commit 4746760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- run:
name: Composer install packages
command: |
composer update
composer install --prefer-source
- run:
name: PHPUnit
Expand Down
3 changes: 2 additions & 1 deletion src/_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static function getInstance()
}
}


/**
* CLI Render
*
Expand Down Expand Up @@ -77,6 +76,8 @@ public function render(array $tree, $level = 0)
if (!is_array($next)) {
if (is_object($next) && !method_exists($next, '__string')) {
$content = ': ' . get_class($next);
} else if (is_string($next)) {
$content = ': ' . $next;
} else {
$content = ': ' . var_export($next, true);
}
Expand Down

0 comments on commit 4746760

Please sign in to comment.