Skip to content

Commit 6de096a

Browse files
committed
code style
1 parent 566ac44 commit 6de096a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/Tools/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function getBodyParameters(ReflectionMethod $method, array $tags)
8181
/** @var ReflectionClass $cls */
8282
$cls = collect($method->getParameters())
8383
->reduce(function ($carry, $param) use ($method) {
84-
if (!$param->getType()) {
84+
if (! $param->getType() ) {
8585
return $carry;
8686
}
8787

tests/Fixtures/TestNonCommentedRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Mpociot\ApiDoc\Tests\Fixtures;
1+
<?php
2+
3+
namespace Mpociot\ApiDoc\Tests\Fixtures;
24

35
use Dingo\Api\Http\FormRequest;
46

tests/Fixtures/TestRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Mpociot\ApiDoc\Tests\Fixtures;
1+
<?php
2+
3+
namespace Mpociot\ApiDoc\Tests\Fixtures;
24

35
use Dingo\Api\Http\FormRequest;
46

tests/Unit/GeneratorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function it_ignores_non_commented_form_request()
9292
$this->assertArraySubset([
9393
'direct_one' => [
9494
'type' => 'string',
95-
'description' => 'Is found directly on the method.'
95+
'description' => 'Is found directly on the method.',
9696
],
9797
], $bodyParameters);
9898
}

0 commit comments

Comments
 (0)