Browse Source

Do not completely exclude tags with examples in them
- We will filter them out later in the code execution

Marnu Lombard 5 năm trước cách đây
mục cha
commit
76b8c3e612
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      src/Tools/Generator.php

+ 0 - 6
src/Tools/Generator.php

@@ -130,9 +130,6 @@ class Generator
             ->filter(function ($tag) {
                 return $tag instanceof Tag && $tag->getName() === 'bodyParam';
             })
-            ->filter(function (Tag $tag) {
-                return ! $this->shouldExcludeExample($tag);
-            })
             ->mapWithKeys(function ($tag) {
                 preg_match('/(.+?)\s+(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
                 if (empty($content)) {
@@ -208,9 +205,6 @@ class Generator
             ->filter(function ($tag) {
                 return $tag instanceof Tag && $tag->getName() === 'queryParam';
             })
-            ->filter(function (Tag $tag) {
-                return ! $this->shouldExcludeExample($tag);
-            })
             ->mapWithKeys(function ($tag) {
                 preg_match('/(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
                 if (empty($content)) {