Skip to content

Commit e54b474

Browse files
committed
Revert mistaken change
1 parent 762e2e1 commit e54b474

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Strategies/BodyParameters/GetFromBodyParamTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function getBodyParametersFromDocBlock($tags)
6060
})
6161
->mapWithKeys(function ($tag) {
6262
preg_match('/(.+?)\s+(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
63-
$content = preg_replace('/Example:\s*No-example.?/', '', $content);
63+
$content = preg_replace('/\s?No-example.?/', '', $content);
6464
if (empty($content)) {
6565
// this means only name and type were supplied
6666
list($name, $type) = preg_split('/\s+/', $tag->getContent());

src/Strategies/QueryParameters/GetFromQueryParamTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function getQueryParametersFromDocBlock($tags)
6161
})
6262
->mapWithKeys(function ($tag) {
6363
preg_match('/(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
64-
$content = preg_replace('/Example:\s*No-example.?/', '', $content);
64+
$content = preg_replace('/\s?No-example.?/', '', $content);
6565
if (empty($content)) {
6666
// this means only name was supplied
6767
list($name) = preg_split('/\s+/', $tag->getContent());

0 commit comments

Comments
 (0)