Completed
Push — master ( 969861...762e2e )
by
unknown
01:39
created
src/Strategies/BodyParameters/GetFromBodyParamTag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
     private function getBodyParametersFromDocBlock($tags)
56 56
     {
57 57
         $parameters = collect($tags)
58
-            ->filter(function ($tag) {
58
+            ->filter(function($tag) {
59 59
                 return $tag instanceof Tag && $tag->getName() === 'bodyParam';
60 60
             })
61
-            ->mapWithKeys(function ($tag) {
61
+            ->mapWithKeys(function($tag) {
62 62
                 preg_match('/(.+?)\s+(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
63 63
                 $content = preg_replace('/Example:\s*No-example.?/', '', $content);
64 64
                 if (empty($content)) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
                 $type = $this->normalizeParameterType($type);
80 80
                 list($description, $example) = $this->parseParamDescription($description, $type);
81
-                $value = is_null($example) && ! $this->shouldExcludeExample($tag)
81
+                $value = is_null($example) && !$this->shouldExcludeExample($tag)
82 82
                     ? $this->generateDummyValue($type)
83 83
                     : $example;
84 84
 
Please login to merge, or discard this patch.
src/Strategies/QueryParameters/GetFromQueryParamTag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
     private function getQueryParametersFromDocBlock($tags)
57 57
     {
58 58
         $parameters = collect($tags)
59
-            ->filter(function ($tag) {
59
+            ->filter(function($tag) {
60 60
                 return $tag instanceof Tag && $tag->getName() === 'queryParam';
61 61
             })
62
-            ->mapWithKeys(function ($tag) {
62
+            ->mapWithKeys(function($tag) {
63 63
                 preg_match('/(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content);
64 64
                 $content = preg_replace('/Example:\s*No-example.?/', '', $content);
65 65
                 if (empty($content)) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 }
79 79
 
80 80
                 list($description, $value) = $this->parseParamDescription($description, 'string');
81
-                if (is_null($value) && ! $this->shouldExcludeExample($tag)) {
81
+                if (is_null($value) && !$this->shouldExcludeExample($tag)) {
82 82
                     $value = Str::contains($description, ['number', 'count', 'page'])
83 83
                         ? $this->generateDummyValue('integer')
84 84
                         : $this->generateDummyValue('string');
Please login to merge, or discard this patch.