Skip to content

Commit f9a4041

Browse files
committed
style: align array assignments
1 parent c814ca5 commit f9a4041

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

tests/Spec/AbstractObjectUnitTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ public function testToArrayExtensionNameShouldBeExportedWithDashedFormatAndRespe
209209
};
210210

211211
$expected = [
212-
'foo' => 'a',
213-
'x-bar-baz' => 'b',
214-
'x-BarBazFoo' => 'c',
212+
'foo' => 'a',
213+
'x-bar-baz' => 'b',
214+
'x-BarBazFoo' => 'c',
215215
'x-BarBaz-foo-Bar' => 'd',
216-
'x-Bar-baz' => 'e',
217-
'x-bar-baz-foo' => 'f',
216+
'x-Bar-baz' => 'e',
217+
'x-bar-baz-foo' => 'f',
218218
];
219219
$actual = $obj->toArray();
220220

tests/Spec/DocumentUnitTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ public function testConstructorRequiredAssignments()
2525

2626
public function testConstructorAllAssignments()
2727
{
28-
$info = new Info('Foo Bar', 'v1');
29-
$paths = [];
30-
$openapi = '3.0.3';
31-
$other = [
28+
$info = new Info('Foo Bar', 'v1');
29+
$paths = [];
30+
$openapi = '3.0.3';
31+
$additional = [
3232
'openapi' => '3.0.0',
33-
'paths' => [null],
34-
'tags' => [
33+
'paths' => [null],
34+
'tags' => [
3535
new Tag('Foo'),
3636
],
3737
];
3838

39-
$obj = new Document($info, $paths, $openapi, $other);
39+
$obj = new Document($info, $paths, $openapi, $additional);
4040

4141
$this->assertInstanceOf(ExtensibleInterface::class, $obj);
4242
$this->assertSame($info, $obj->info);
4343
$this->assertSame($paths, $obj->paths);
4444
$this->assertEquals($openapi, $obj->openapi);
45-
$this->assertSame($other['tags'], $obj->tags);
45+
$this->assertSame($additional['tags'], $obj->tags);
4646
}
4747
}

tests/Validator/ValidationSystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testValidateSimpleDocumentValid()
5151
[
5252
'get' => new OASv3\Operation(
5353
[
54-
'200' => new OASv3\Response('Successful response.'),
54+
'200' => new OASv3\Response('Successful response.'),
5555
'default' => new OASv3\Response('Default error response.'),
5656
]
5757
),

0 commit comments

Comments
 (0)