Skip to content

Commit 56a48eb

Browse files
committed
Fix style
1 parent c9f0b4b commit 56a48eb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/SpecBaseObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function validate(): bool
236236
$valid = true;
237237
$allowedFields = array_keys($this->attributes());
238238
foreach ($this->_properties as $k => $v) {
239-
if ($allowedFields && !in_array($k, $allowedFields, true) && substr($k, 0, 2) !== 'x-' ) {
239+
if ($allowedFields && !in_array($k, $allowedFields, true) && substr($k, 0, 2) !== 'x-') {
240240
$valid = false;
241241
$this->addError('Invalid field: "' . $k . '"');
242242
}

src/spec/OpenApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,5 @@ public function performValidation()
7777
if (!empty($this->openapi) && !preg_match('/^3\.0\.\d+(-rc\d)?$/i', $this->openapi)) {
7878
$this->addError('Unsupported openapi version: ' . $this->openapi);
7979
}
80-
81-
8280
}
8381
}

0 commit comments

Comments
 (0)