Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 4, 2024
1 parent fc1e0d0 commit e145f45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ private function dumpNestedInternal(
$output = 'object@' . $objectDescription;
$this->objects[$objectDescription] = $variable;
break;
} elseif ($objectCollapseLevel < $level) {
}
if ($objectCollapseLevel < $level) {
$output = 'object@' . $objectDescription;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DumperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function createNested(int $depth, mixed $data): object

for ($i = 2; $i <= $depth; $i++) {
$nested = new stdClass();
$nested->id = 'lvl'.$i;
$nested->id = 'lvl' . $i;
$lvl->prop1 = $nested;
$lvl->prop2 = $nested;
$lvl = $nested;
Expand Down

0 comments on commit e145f45

Please sign in to comment.