Skip to content

Commit ae8994f

Browse files
mpociotStyleCIBot
authored andcommitted
Applied fixes from StyleCI
1 parent 82368fb commit ae8994f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ protected function getRouteResponse($route, $bindings, $headers = [])
7070
$methods = $route->getMethods();
7171

7272
// Split headers into key - value pairs
73-
$headers = collect($headers)->map(function($value) {
73+
$headers = collect($headers)->map(function ($value) {
7474
$split = explode(':', $value);
75+
7576
return [trim($split[0]) => trim($split[1])];
7677
})->collapse()->toArray();
7778

src/Mpociot/ApiDoc/Generators/DingoGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function processRoute($route, $bindings = [], $headers = [], $withRespons
4747
public function callRoute($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
4848
{
4949
$dispatcher = app('Dingo\Api\Dispatcher')->raw();
50-
51-
collect($server)->map(function($key, $value) use ($dispatcher) {
50+
51+
collect($server)->map(function ($key, $value) use ($dispatcher) {
5252
$dispatcher->header($key, $value);
5353
});
5454

tests/GenerateDocumentationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testCanAppendCustomHttpHeaders()
129129
'--header' => [
130130
'Authorization: customAuthToken',
131131
'X-Custom-Header: foobar',
132-
]
132+
],
133133
]);
134134

135135
$generatedMarkdown = file_get_contents(__DIR__.'/../public/docs/source/index.md');

0 commit comments

Comments
 (0)