Skip to content

Commit 89f1d2c

Browse files
committed
Refactor: better variable naming
1 parent c1402a9 commit 89f1d2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/openapi/PropertySchema.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ public function isRefPointerToSchema():bool
269269

270270
public function isRefPointerToSelf():bool
271271
{
272-
$allOfsInSchema = null;
272+
$allOfInSchema = null;
273273
if (isset($this->schema->getSchema()->properties[$this->name]->allOf)) {
274-
$allOfsInSchema = $this->schema->getSchema()->properties[$this->name]->allOf;
274+
$allOfInSchema = $this->schema->getSchema()->properties[$this->name]->allOf;
275275
}
276276

277-
if ($allOfsInSchema) { # fixes https://github.com/php-openapi/yii2-openapi/issues/68
277+
if ($allOfInSchema) { # fixes https://github.com/php-openapi/yii2-openapi/issues/68
278278
$refCounter = 0;
279-
foreach ($allOfsInSchema as $allOf) {
280-
if ($allOf instanceof Reference) {
279+
foreach ($allOfInSchema as $aAllOfElement) {
280+
if ($aAllOfElement instanceof Reference) {
281281
$refCounter++;
282282
}
283283
}

0 commit comments

Comments
 (0)