From e145f456c87ca549bda851b6ae6625d9af46a7cb Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 4 Nov 2024 08:51:47 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Dumper.php | 3 ++- tests/Unit/DumperTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Dumper.php b/src/Dumper.php index 10ad2def..0fdaee87 100644 --- a/src/Dumper.php +++ b/src/Dumper.php @@ -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; } diff --git a/tests/Unit/DumperTest.php b/tests/Unit/DumperTest.php index ebd16849..85c81f25 100644 --- a/tests/Unit/DumperTest.php +++ b/tests/Unit/DumperTest.php @@ -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;