Skip to content

Commit 004ed08

Browse files
emmachughesgithub-actions[bot]
authored andcommitted
Run php-cs-fixer
1 parent 2f4f409 commit 004ed08

File tree

3 files changed

+34
-31
lines changed

3 files changed

+34
-31
lines changed

sourcecode/hub/app/Http/Controllers/Api/ContextController.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Illuminate\Http\JsonResponse;
1111
use Illuminate\Http\Response;
1212
use League\Fractal\Pagination\IlluminatePaginatorAdapter;
13+
1314
use function fractal;
1415

1516
final readonly class ContextController

sourcecode/hub/app/Http/Requests/Api/ContentRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Illuminate\Contracts\Auth\Access\Gate;
1111
use Illuminate\Foundation\Http\FormRequest;
1212
use Illuminate\Validation\Rule;
13+
1314
use function array_map;
1415

1516
final class ContentRequest extends FormRequest

sourcecode/hub/tests/Feature/Api/ContextTest.php

+32-31
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,41 @@ public function testListsContexts(): void
2525
->withBasicAuth($user->getApiKey(), $user->getApiSecret())
2626
->getJson('https://hub-test.edlib.test/api/contexts')
2727
->assertOk()
28-
->assertJson(fn(AssertableJson $json) => $json
29-
->where('data', [
30-
[
31-
'id' => $id1,
32-
'name' => 'context_1',
33-
'links' => [
34-
'self' => 'https://hub-test.edlib.test/api/contexts/context_1',
28+
->assertJson(
29+
fn(AssertableJson $json) => $json
30+
->where('data', [
31+
[
32+
'id' => $id1,
33+
'name' => 'context_1',
34+
'links' => [
35+
'self' => 'https://hub-test.edlib.test/api/contexts/context_1',
36+
],
3537
],
36-
],
37-
[
38-
'id' => $id2,
39-
'name' => 'context_2',
40-
'links' => [
41-
'self' => 'https://hub-test.edlib.test/api/contexts/context_2',
38+
[
39+
'id' => $id2,
40+
'name' => 'context_2',
41+
'links' => [
42+
'self' => 'https://hub-test.edlib.test/api/contexts/context_2',
43+
],
4244
],
43-
],
44-
[
45-
'id' => $id3,
46-
'name' => 'context_3',
47-
'links' => [
48-
'self' => 'https://hub-test.edlib.test/api/contexts/context_3',
45+
[
46+
'id' => $id3,
47+
'name' => 'context_3',
48+
'links' => [
49+
'self' => 'https://hub-test.edlib.test/api/contexts/context_3',
50+
],
4951
],
50-
],
51-
])
52-
->where('meta', [
53-
'pagination' => [
54-
'count' => 3,
55-
'current_page' => 1,
56-
'links' => [],
57-
'per_page' => 100,
58-
'total' => 3,
59-
'total_pages' => 1,
60-
],
61-
])
52+
])
53+
->where('meta', [
54+
'pagination' => [
55+
'count' => 3,
56+
'current_page' => 1,
57+
'links' => [],
58+
'per_page' => 100,
59+
'total' => 3,
60+
'total_pages' => 1,
61+
],
62+
]),
6263
);
6364
}
6465
}

0 commit comments

Comments
 (0)