Skip to content

Commit

Permalink
Fix: Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 21, 2022
1 parent f4c23b4 commit 9ed7755
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SchemaNormalizer.php
Expand Up @@ -203,12 +203,12 @@ private function normalizeObject(
unset($data->{$name});
}

$remainingProperties = \get_object_vars($data);
$additionalProperties = \get_object_vars($data);

if (0 < \count($remainingProperties)) {
\ksort($remainingProperties);
if (0 < \count($additionalProperties)) {
\ksort($additionalProperties);

foreach ($remainingProperties as $name => $value) {
foreach ($additionalProperties as $name => $value) {
$normalized->{$name} = $value;
}
}
Expand Down

0 comments on commit 9ed7755

Please sign in to comment.