Skip to content

Commit a83a19f

Browse files
committed
Fix code style
1 parent 1e5bd86 commit a83a19f

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

tests/unit/DocBlock/Tags/MethodTest.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ public function testFactoryMethod() : void
290290
['name' => 'argument2', 'type' => new Mixed_()],
291291
];
292292

293-
$descriptionFactory->shouldReceive('create')->with('My Description', $context)->andReturn($description);
293+
$descriptionFactory->shouldReceive('create')
294+
->with('My Description', $context)
295+
->andReturn($description);
294296

295297
$fixture = Method::create(
296298
'static void myMethod(string $argument1, $argument2) My Description',
@@ -299,7 +301,10 @@ public function testFactoryMethod() : void
299301
$context
300302
);
301303

302-
$this->assertSame('static void myMethod(string $argument1, mixed $argument2) My Description', (string) $fixture);
304+
$this->assertSame(
305+
'static void myMethod(string $argument1, mixed $argument2) My Description',
306+
(string) $fixture
307+
);
303308
$this->assertSame('myMethod', $fixture->getMethodName());
304309
$this->assertEquals($expectedArguments, $fixture->getArguments());
305310
$this->assertInstanceOf(Void_::class, $fixture->getReturnType());
@@ -371,7 +376,9 @@ public function testCollectionReturnTypes(
371376
) : void {
372377
$resolver = new TypeResolver();
373378
$descriptionFactory = m::mock(DescriptionFactory::class);
374-
$descriptionFactory->shouldReceive('create')->with('', null)->andReturn(new Description(''));
379+
$descriptionFactory->shouldReceive('create')
380+
->with('', null)
381+
->andReturn(new Description(''));
375382

376383
$fixture = Method::create("${returnType} myMethod(\$arg)", $resolver, $descriptionFactory);
377384
$returnType = $fixture->getReturnType();
@@ -457,7 +464,10 @@ public function testCreateMethodParenthesisMissing() : void
457464

458465
$description = new Description('My Description');
459466

460-
$descriptionFactory->shouldReceive('create')->with('My Description', $context)->andReturn($description);
467+
$descriptionFactory->shouldReceive('create')->with(
468+
'My Description',
469+
$context
470+
)->andReturn($description);
461471

462472
$fixture = Method::create(
463473
'static void myMethod My Description',
@@ -491,7 +501,9 @@ public function testCreateMethodEmptyArguments() : void
491501

492502
$description = new Description('My Description');
493503

494-
$descriptionFactory->shouldReceive('create')->with('My Description', $context)->andReturn($description);
504+
$descriptionFactory->shouldReceive('create')
505+
->with('My Description', $context)
506+
->andReturn($description);
495507

496508
$fixture = Method::create(
497509
'static void myMethod() My Description',

0 commit comments

Comments
 (0)