瀏覽代碼

code style

Michael Wallner 6 年之前
父節點
當前提交
6de096a161

+ 1 - 1
src/Tools/Generator.php

@@ -81,7 +81,7 @@ class Generator
         /** @var ReflectionClass $cls */
         $cls = collect($method->getParameters())
             ->reduce(function ($carry, $param) use ($method) {
-                if (!$param->getType()) {
+                if (! $param->getType() ) {
                     return $carry;
                 }
 

+ 3 - 1
tests/Fixtures/TestNonCommentedRequest.php

@@ -1,4 +1,6 @@
-<?php namespace Mpociot\ApiDoc\Tests\Fixtures;
+<?php
+
+namespace Mpociot\ApiDoc\Tests\Fixtures;
 
 use Dingo\Api\Http\FormRequest;
 

+ 3 - 1
tests/Fixtures/TestRequest.php

@@ -1,4 +1,6 @@
-<?php namespace Mpociot\ApiDoc\Tests\Fixtures;
+<?php
+
+namespace Mpociot\ApiDoc\Tests\Fixtures;
 
 use Dingo\Api\Http\FormRequest;
 

+ 1 - 1
tests/Unit/GeneratorTestCase.php

@@ -92,7 +92,7 @@ abstract class GeneratorTestCase extends TestCase
         $this->assertArraySubset([
             'direct_one' => [
                 'type' => 'string',
-                'description' => 'Is found directly on the method.'
+                'description' => 'Is found directly on the method.',
             ],
         ], $bodyParameters);
     }