Skip to content

Commit

Permalink
Refactor: better variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Dec 11, 2024
1 parent c1402a9 commit 89f1d2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/openapi/PropertySchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@ public function isRefPointerToSchema():bool

public function isRefPointerToSelf():bool
{
$allOfsInSchema = null;
$allOfInSchema = null;
if (isset($this->schema->getSchema()->properties[$this->name]->allOf)) {
$allOfsInSchema = $this->schema->getSchema()->properties[$this->name]->allOf;
$allOfInSchema = $this->schema->getSchema()->properties[$this->name]->allOf;
}

if ($allOfsInSchema) { # fixes https://github.com/php-openapi/yii2-openapi/issues/68
if ($allOfInSchema) { # fixes https://github.com/php-openapi/yii2-openapi/issues/68
$refCounter = 0;
foreach ($allOfsInSchema as $allOf) {
if ($allOf instanceof Reference) {
foreach ($allOfInSchema as $aAllOfElement) {
if ($aAllOfElement instanceof Reference) {
$refCounter++;
}
}
Expand Down

0 comments on commit 89f1d2c

Please sign in to comment.