Skip to content

Commit d0d669c

Browse files
committed
CS: adjust chaining indentation
1 parent f06ac50 commit d0d669c

File tree

5 files changed

+50
-50
lines changed

5 files changed

+50
-50
lines changed

Tests/AbstractDivLayoutTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ public function testCollectionRow()
346346
);
347347

348348
$form = $this->factory->createNamedBuilder('form', 'form')
349-
->add($collection)
350-
->getForm();
349+
->add($collection)
350+
->getForm();
351351

352352
$this->assertWidgetMatchesXpath($form->createView(), array(),
353353
'/div

Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public function testTransform()
2020
{
2121
$transformer1 = $this->getMockBuilder('Symfony\Component\Form\DataTransformerInterface')->getMock();
2222
$transformer1->expects($this->once())
23-
->method('transform')
24-
->with($this->identicalTo('foo'))
25-
->will($this->returnValue('bar'));
23+
->method('transform')
24+
->with($this->identicalTo('foo'))
25+
->will($this->returnValue('bar'));
2626
$transformer2 = $this->getMockBuilder('Symfony\Component\Form\DataTransformerInterface')->getMock();
2727
$transformer2->expects($this->once())
28-
->method('transform')
29-
->with($this->identicalTo('bar'))
30-
->will($this->returnValue('baz'));
28+
->method('transform')
29+
->with($this->identicalTo('bar'))
30+
->will($this->returnValue('baz'));
3131

3232
$chain = new DataTransformerChain(array($transformer1, $transformer2));
3333

@@ -38,14 +38,14 @@ public function testReverseTransform()
3838
{
3939
$transformer2 = $this->getMockBuilder('Symfony\Component\Form\DataTransformerInterface')->getMock();
4040
$transformer2->expects($this->once())
41-
->method('reverseTransform')
42-
->with($this->identicalTo('foo'))
43-
->will($this->returnValue('bar'));
41+
->method('reverseTransform')
42+
->with($this->identicalTo('foo'))
43+
->will($this->returnValue('bar'));
4444
$transformer1 = $this->getMockBuilder('Symfony\Component\Form\DataTransformerInterface')->getMock();
4545
$transformer1->expects($this->once())
46-
->method('reverseTransform')
47-
->with($this->identicalTo('bar'))
48-
->will($this->returnValue('baz'));
46+
->method('reverseTransform')
47+
->with($this->identicalTo('bar'))
48+
->will($this->returnValue('baz'));
4949

5050
$chain = new DataTransformerChain(array($transformer1, $transformer2));
5151

Tests/Extension/Core/Type/FormTypeTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ public function testReadOnlyFormWithNonReadOnlyParentIsReadOnly()
124124
public function testNonReadOnlyFormWithNonReadOnlyParentIsNotReadOnly()
125125
{
126126
$view = $this->factory->createNamedBuilder('parent', static::TESTED_TYPE)
127-
->add('child', static::TESTED_TYPE)
128-
->getForm()
129-
->createView();
127+
->add('child', static::TESTED_TYPE)
128+
->getForm()
129+
->createView();
130130

131131
$this->assertFalse($view['child']->vars['read_only']);
132132
}
@@ -478,9 +478,9 @@ public function testPassMultipartTrueIfAnyChildIsMultipartToView()
478478
public function testViewIsNotRenderedByDefault()
479479
{
480480
$view = $this->factory->createBuilder(static::TESTED_TYPE)
481-
->add('foo', static::TESTED_TYPE)
482-
->getForm()
483-
->createView();
481+
->add('foo', static::TESTED_TYPE)
482+
->getForm()
483+
->createView();
484484

485485
$this->assertFalse($view->isRendered());
486486
}

Tests/Extension/Csrf/CsrfProvider/LegacySessionCsrfProviderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function tearDown()
3737
public function testGenerateCsrfToken()
3838
{
3939
$this->session->expects($this->once())
40-
->method('getId')
41-
->will($this->returnValue('ABCDEF'));
40+
->method('getId')
41+
->will($this->returnValue('ABCDEF'));
4242

4343
$token = $this->provider->generateCsrfToken('foo');
4444

@@ -48,8 +48,8 @@ public function testGenerateCsrfToken()
4848
public function testIsCsrfTokenValidSucceeds()
4949
{
5050
$this->session->expects($this->once())
51-
->method('getId')
52-
->will($this->returnValue('ABCDEF'));
51+
->method('getId')
52+
->will($this->returnValue('ABCDEF'));
5353

5454
$token = sha1('SECRET'.'foo'.'ABCDEF');
5555

@@ -59,8 +59,8 @@ public function testIsCsrfTokenValidSucceeds()
5959
public function testIsCsrfTokenValidFails()
6060
{
6161
$this->session->expects($this->once())
62-
->method('getId')
63-
->will($this->returnValue('ABCDEF'));
62+
->method('getId')
63+
->will($this->returnValue('ABCDEF'));
6464

6565
$token = sha1('SECRET'.'bar'.'ABCDEF');
6666

Tests/FormFactoryTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ public function testCreateBuilderForPropertyCreatesFormWithHighestConfidence()
427427
public function testCreateBuilderCreatesTextFormIfNoGuess()
428428
{
429429
$this->guesser1->expects($this->once())
430-
->method('guessType')
431-
->with('Application\Author', 'firstName')
432-
->will($this->returnValue(null));
430+
->method('guessType')
431+
->with('Application\Author', 'firstName')
432+
->will($this->returnValue(null));
433433

434434
$factory = $this->getMockFactory(array('createNamedBuilder'));
435435

@@ -446,9 +446,9 @@ public function testCreateBuilderCreatesTextFormIfNoGuess()
446446
public function testOptionsCanBeOverridden()
447447
{
448448
$this->guesser1->expects($this->once())
449-
->method('guessType')
450-
->with('Application\Author', 'firstName')
451-
->will($this->returnValue(new TypeGuess(
449+
->method('guessType')
450+
->with('Application\Author', 'firstName')
451+
->will($this->returnValue(new TypeGuess(
452452
'text',
453453
array('attr' => array('maxlength' => 10)),
454454
Guess::MEDIUM_CONFIDENCE
@@ -474,17 +474,17 @@ public function testOptionsCanBeOverridden()
474474
public function testCreateBuilderUsesMaxLengthIfFound()
475475
{
476476
$this->guesser1->expects($this->once())
477-
->method('guessMaxLength')
478-
->with('Application\Author', 'firstName')
479-
->will($this->returnValue(new ValueGuess(
477+
->method('guessMaxLength')
478+
->with('Application\Author', 'firstName')
479+
->will($this->returnValue(new ValueGuess(
480480
15,
481481
Guess::MEDIUM_CONFIDENCE
482482
)));
483483

484484
$this->guesser2->expects($this->once())
485-
->method('guessMaxLength')
486-
->with('Application\Author', 'firstName')
487-
->will($this->returnValue(new ValueGuess(
485+
->method('guessMaxLength')
486+
->with('Application\Author', 'firstName')
487+
->will($this->returnValue(new ValueGuess(
488488
20,
489489
Guess::HIGH_CONFIDENCE
490490
)));
@@ -542,17 +542,17 @@ public function testCreateBuilderUsesMaxLengthAndPattern()
542542
public function testCreateBuilderUsesRequiredSettingWithHighestConfidence()
543543
{
544544
$this->guesser1->expects($this->once())
545-
->method('guessRequired')
546-
->with('Application\Author', 'firstName')
547-
->will($this->returnValue(new ValueGuess(
545+
->method('guessRequired')
546+
->with('Application\Author', 'firstName')
547+
->will($this->returnValue(new ValueGuess(
548548
true,
549549
Guess::MEDIUM_CONFIDENCE
550550
)));
551551

552552
$this->guesser2->expects($this->once())
553-
->method('guessRequired')
554-
->with('Application\Author', 'firstName')
555-
->will($this->returnValue(new ValueGuess(
553+
->method('guessRequired')
554+
->with('Application\Author', 'firstName')
555+
->will($this->returnValue(new ValueGuess(
556556
false,
557557
Guess::HIGH_CONFIDENCE
558558
)));
@@ -575,17 +575,17 @@ public function testCreateBuilderUsesRequiredSettingWithHighestConfidence()
575575
public function testCreateBuilderUsesPatternIfFound()
576576
{
577577
$this->guesser1->expects($this->once())
578-
->method('guessPattern')
579-
->with('Application\Author', 'firstName')
580-
->will($this->returnValue(new ValueGuess(
578+
->method('guessPattern')
579+
->with('Application\Author', 'firstName')
580+
->will($this->returnValue(new ValueGuess(
581581
'[a-z]',
582582
Guess::MEDIUM_CONFIDENCE
583583
)));
584584

585585
$this->guesser2->expects($this->once())
586-
->method('guessPattern')
587-
->with('Application\Author', 'firstName')
588-
->will($this->returnValue(new ValueGuess(
586+
->method('guessPattern')
587+
->with('Application\Author', 'firstName')
588+
->will($this->returnValue(new ValueGuess(
589589
'[a-zA-Z]',
590590
Guess::HIGH_CONFIDENCE
591591
)));

0 commit comments

Comments
 (0)