Selaa lähdekoodia

Style-ci fixes

Marnu Lombard 5 vuotta sitten
vanhempi
commit
1f06c37805
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      src/Tools/Generator.php
  2. 2 2
      tests/Unit/GeneratorTestCase.php

+ 2 - 2
src/Tools/Generator.php

@@ -150,7 +150,7 @@ class Generator
 
                 $type = $this->normalizeParameterType($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')];
             })->toArray();
@@ -225,7 +225,7 @@ class Generator
                 }
 
                 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'])
                         ? $this->generateDummyValue('integer')
                         : $this->generateDummyValue('string');

+ 2 - 2
tests/Unit/GeneratorTestCase.php

@@ -232,13 +232,13 @@ abstract class GeneratorTestCase extends TestCase
             ],
             'excluded_body_param' => [
                 'type' => 'integer',
-                'description' => 'Does not exist in examples.'
+                'description' => 'Does not exist in examples.',
             ],
         ], $bodyParameters);
 
         $this->assertArraySubset([
             'excluded_query_param' => [
-                'description' => 'Does not exist in examples.'
+                'description' => 'Does not exist in examples.',
             ],
         ], $queryParameters);
     }