Skip to content

Commit a997c5d

Browse files
committed
style: add empty spaces
1 parent c86b6f9 commit a997c5d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Services/SwaggerService.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function generateEmptyData(?string $view = null, array $viewData = [],
140140
throw new EmptyContactEmailException();
141141
}
142142

143-
if(empty($view) && !empty($this->config['info'])){
143+
if (empty($view) && !empty($this->config['info'])){
144144
$view = $this->config['info']['description'];
145145
}
146146

@@ -602,8 +602,8 @@ protected function saveParameterType(&$data, $parameter, $parameterType)
602602
}
603603

604604
protected function saveParameterDescription(
605-
&$data,
606-
$parameter,
605+
array &$data,
606+
string $parameter,
607607
array $rulesArray,
608608
array $attributes,
609609
array $annotations
@@ -964,7 +964,7 @@ protected function prepareInfo(?string $view = null, array $viewData = [], array
964964
{
965965
$info = [];
966966

967-
$license = array_filter($license, fn($value) => !empty($value));
967+
$license = array_filter($license);
968968

969969
if (!empty($license)) {
970970
$info['license'] = $license;
@@ -974,9 +974,7 @@ protected function prepareInfo(?string $view = null, array $viewData = [], array
974974
$info['description'] = view($view, $viewData)->render();
975975
}
976976

977-
$infoConfig = Arr::except($this->config['info'], ['description', 'license']);
978-
979-
return array_merge($infoConfig, $info);
977+
return array_merge(Arr::except($this->config['info'], ['description', 'license']), $info);
980978
}
981979

982980
protected function getOpenAPIFileContent(string $filePath): array

0 commit comments

Comments
 (0)