|
@@ -150,7 +150,7 @@ class Generator
|
|
|
|
|
|
$type = $this->normalizeParameterType($type);
|
|
$type = $this->normalizeParameterType($type);
|
|
list($description, $example) = $this->parseDescription($description, $type);
|
|
list($description, $example) = $this->parseDescription($description, $type);
|
|
- $value = is_null($example) && !$this->shouldExcludeExample($tag) ? $this->generateDummyValue($type) : $example;
|
|
|
|
|
|
+ $value = is_null($example) && ! $this->shouldExcludeExample($tag) ? $this->generateDummyValue($type) : $example;
|
|
|
|
|
|
return [$name => compact('type', 'description', 'required', 'value')];
|
|
return [$name => compact('type', 'description', 'required', 'value')];
|
|
})->toArray();
|
|
})->toArray();
|
|
@@ -225,7 +225,7 @@ class Generator
|
|
}
|
|
}
|
|
|
|
|
|
list($description, $value) = $this->parseDescription($description, 'string');
|
|
list($description, $value) = $this->parseDescription($description, 'string');
|
|
- if (is_null($value) && !$this->shouldExcludeExample($tag)) {
|
|
|
|
|
|
+ if (is_null($value) && ! $this->shouldExcludeExample($tag)) {
|
|
$value = str_contains($description, ['number', 'count', 'page'])
|
|
$value = str_contains($description, ['number', 'count', 'page'])
|
|
? $this->generateDummyValue('integer')
|
|
? $this->generateDummyValue('integer')
|
|
: $this->generateDummyValue('string');
|
|
: $this->generateDummyValue('string');
|