Skip to content

Commit

Permalink
moved stuff around wow
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Jul 7, 2024
1 parent fae1768 commit 9ffa7d0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Support/Generator/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function toArray(): array
'description' => $this->description,
'deprecated' => $this->deprecated,
'allowEmptyValue' => $this->allowEmptyValue,
'style' => $this->style,
'explode' => $this->explode,
]);

if ($this->schema) {
Expand All @@ -72,13 +74,6 @@ public function toArray(): array
return array_merge(
$result,
$this->example instanceof MissingExample ? [] : ['example' => $this->example],
$this->default instanceof MissingExample ? [] : ['default' => $this->default],
! is_null($this->style) ? [
'style' => $this->style,
] : [],
! is_null($this->explode) ? [
'explode' => $this->explode,
] : []
);
}

Expand Down

0 comments on commit 9ffa7d0

Please sign in to comment.