Skip to content

Commit 695de97

Browse files
committed
fix: styleci
1 parent 121e645 commit 695de97

File tree

3 files changed

+72
-78
lines changed

3 files changed

+72
-78
lines changed

config/openapi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'title' => config('app.name'),
1111
'description' => null,
1212
'version' => '1.0.0',
13-
'contact' => []
13+
'contact' => [],
1414
],
1515

1616
'servers' => [

src/Builders/InfoBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Vyuldashev\LaravelOpenApi\Builders;
44

5-
use Illuminate\Support\Arr;
6-
use GoldSpecDigital\ObjectOrientedOAS\Objects\Info;
75
use GoldSpecDigital\ObjectOrientedOAS\Objects\Contact;
6+
use GoldSpecDigital\ObjectOrientedOAS\Objects\Info;
7+
use Illuminate\Support\Arr;
88

99
class InfoBuilder
1010
{

tests/Builders/InfoBuilderTest.php

Lines changed: 69 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -31,85 +31,79 @@ public function providerBuildContact(): array
3131
];
3232

3333
return [
34-
'If all the elements are present, the correct json can be output.'
35-
=> [
36-
array_merge($common, [
37-
'contact' => [
38-
'name' => 'sample_contact_name',
39-
'email' => 'sample_contact_email',
40-
'url' => 'sample_contact_url',
41-
],
42-
]),
43-
array_merge($common, [
44-
'contact' => [
45-
'name' => 'sample_contact_name',
46-
'email' => 'sample_contact_email',
47-
'url' => 'sample_contact_url',
48-
],
49-
]),
50-
],
51-
'If Contact.name does not exist, the correct json can be output.'
52-
=> [
53-
array_merge($common, [
54-
'contact' => [
55-
'email' => 'sample_contact_email',
56-
'url' => 'sample_contact_url',
57-
],
58-
]),
59-
array_merge($common, [
60-
'contact' => [
61-
'email' => 'sample_contact_email',
62-
'url' => 'sample_contact_url',
63-
],
64-
]),
65-
],
66-
'If Contact.email does not exist, the correct json can be output.'
67-
=> [
68-
array_merge($common, [
69-
'contact' => [
70-
'name' => 'sample_contact_name',
71-
'url' => 'sample_contact_url',
72-
],
73-
]),
74-
array_merge($common, [
75-
'contact' => [
76-
'name' => 'sample_contact_name',
77-
'url' => 'sample_contact_url',
78-
],
79-
]),
80-
],
81-
'If Contact.url does not exist, the correct json can be output.'
82-
=> [
83-
array_merge($common, [
84-
'contact' => [
85-
'name' => 'sample_contact_name',
86-
'email' => 'sample_contact_email',
87-
],
88-
]),
89-
array_merge($common, [
90-
'contact' => [
91-
'name' => 'sample_contact_name',
92-
'email' => 'sample_contact_email',
93-
],
94-
]),
95-
],
96-
'If Contact does not exist, the correct json can be output.'
97-
=> [
98-
array_merge($common),
99-
array_merge($common),
100-
],
101-
'If Contact.* does not exist, the correct json can be output.'
102-
=> [
103-
array_merge($common, [
104-
'contact' => [],
105-
]),
106-
array_merge($common),
107-
],
34+
'If all the elements are present, the correct json can be output.' => [
35+
array_merge($common, [
36+
'contact' => [
37+
'name' => 'sample_contact_name',
38+
'email' => 'sample_contact_email',
39+
'url' => 'sample_contact_url',
40+
],
41+
]),
42+
array_merge($common, [
43+
'contact' => [
44+
'name' => 'sample_contact_name',
45+
'email' => 'sample_contact_email',
46+
'url' => 'sample_contact_url',
47+
],
48+
]),
49+
],
50+
'If Contact.name does not exist, the correct json can be output.' => [
51+
array_merge($common, [
52+
'contact' => [
53+
'email' => 'sample_contact_email',
54+
'url' => 'sample_contact_url',
55+
],
56+
]),
57+
array_merge($common, [
58+
'contact' => [
59+
'email' => 'sample_contact_email',
60+
'url' => 'sample_contact_url',
61+
],
62+
]),
63+
],
64+
'If Contact.email does not exist, the correct json can be output.' => [
65+
array_merge($common, [
66+
'contact' => [
67+
'name' => 'sample_contact_name',
68+
'url' => 'sample_contact_url',
69+
],
70+
]),
71+
array_merge($common, [
72+
'contact' => [
73+
'name' => 'sample_contact_name',
74+
'url' => 'sample_contact_url',
75+
],
76+
]),
77+
],
78+
'If Contact.url does not exist, the correct json can be output.' => [
79+
array_merge($common, [
80+
'contact' => [
81+
'name' => 'sample_contact_name',
82+
'email' => 'sample_contact_email',
83+
],
84+
]),
85+
array_merge($common, [
86+
'contact' => [
87+
'name' => 'sample_contact_name',
88+
'email' => 'sample_contact_email',
89+
],
90+
]),
91+
],
92+
'If Contact does not exist, the correct json can be output.' => [
93+
array_merge($common),
94+
array_merge($common),
95+
],
96+
'If Contact.* does not exist, the correct json can be output.' => [
97+
array_merge($common, [
98+
'contact' => [],
99+
]),
100+
array_merge($common),
101+
],
108102
];
109103
}
110104

111105
/**
112-
* Assert equality as an associative array
106+
* Assert equality as an associative array.
113107
*
114108
* @param array $expected
115109
* @param array $actual

0 commit comments

Comments
 (0)