Skip to content

Commit 1542925

Browse files
minor symfony#22986 CS: adjust chaining indentation (keradus)
This PR was merged into the 2.7 branch. Discussion ---------- CS: adjust chaining indentation | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 8c3c0fe CS: adjust chaining indentation
2 parents 36f0050 + 8c3c0fe commit 1542925

File tree

17 files changed

+110
-110
lines changed

17 files changed

+110
-110
lines changed

src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ private function createCollector($queries)
142142

143143
$registry = $this->getMockBuilder('Doctrine\Common\Persistence\ManagerRegistry')->getMock();
144144
$registry
145-
->expects($this->any())
146-
->method('getConnectionNames')
147-
->will($this->returnValue(array('default' => 'doctrine.dbal.default_connection')));
145+
->expects($this->any())
146+
->method('getConnectionNames')
147+
->will($this->returnValue(array('default' => 'doctrine.dbal.default_connection')));
148148
$registry
149-
->expects($this->any())
150-
->method('getManagerNames')
151-
->will($this->returnValue(array('default' => 'doctrine.orm.default_entity_manager')));
149+
->expects($this->any())
150+
->method('getManagerNames')
151+
->will($this->returnValue(array('default' => 'doctrine.orm.default_entity_manager')));
152152
$registry->expects($this->any())
153153
->method('getConnection')
154154
->will($this->returnValue($connection));

src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ protected function createEntityManagerMock($repositoryMock)
8989
->getMock()
9090
;
9191
$em->expects($this->any())
92-
->method('getRepository')
93-
->will($this->returnValue($repositoryMock))
92+
->method('getRepository')
93+
->will($this->returnValue($repositoryMock))
9494
;
9595

9696
$classMetadata = $this->getMockBuilder('Doctrine\Common\Persistence\Mapping\ClassMetadata')->getMock();
@@ -115,8 +115,8 @@ protected function createEntityManagerMock($repositoryMock)
115115
;
116116
$classMetadata->reflFields = array('name' => $refl);
117117
$em->expects($this->any())
118-
->method('getClassMetadata')
119-
->will($this->returnValue($classMetadata))
118+
->method('getClassMetadata')
119+
->will($this->returnValue($classMetadata))
120120
;
121121

122122
return $em;
@@ -333,8 +333,8 @@ public function testValidateUniquenessUsingCustomRepositoryMethod()
333333

334334
$repository = $this->createRepositoryMock();
335335
$repository->expects($this->once())
336-
->method('findByCustom')
337-
->will($this->returnValue(array()))
336+
->method('findByCustom')
337+
->will($this->returnValue(array()))
338338
;
339339
$this->em = $this->createEntityManagerMock($repository);
340340
$this->registry = $this->createRegistryMock($this->em);

src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterDebugCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ private function getContainer()
7272
;
7373

7474
$loader = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader')
75-
->disableOriginalConstructor()
76-
->getMock();
75+
->disableOriginalConstructor()
76+
->getMock();
7777

7878
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
7979
$container

src/Symfony/Bundle/FrameworkBundle/Tests/Command/RouterMatchCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ private function getContainer()
7676
;
7777

7878
$loader = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader')
79-
->disableOriginalConstructor()
80-
->getMock();
79+
->disableOriginalConstructor()
80+
->getMock();
8181

8282
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
8383
$container

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,8 @@ public function testRunReturnsIntegerExitCode()
735735
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(array('doRun'))->getMock();
736736
$application->setAutoExit(false);
737737
$application->expects($this->once())
738-
->method('doRun')
739-
->will($this->throwException($exception));
738+
->method('doRun')
739+
->will($this->throwException($exception));
740740

741741
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
742742

@@ -750,8 +750,8 @@ public function testRunReturnsExitCodeOneForExceptionCodeZero()
750750
$application = $this->getMockBuilder('Symfony\Component\Console\Application')->setMethods(array('doRun'))->getMock();
751751
$application->setAutoExit(false);
752752
$application->expects($this->once())
753-
->method('doRun')
754-
->will($this->throwException($exception));
753+
->method('doRun')
754+
->will($this->throwException($exception));
755755

756756
$exitCode = $application->run(new ArrayInput(array()), new NullOutput());
757757

src/Symfony/Component/DependencyInjection/Tests/Compiler/AutoAliasServicePassTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testProcessWithMissingParameter()
2525
$container = new ContainerBuilder();
2626

2727
$container->register('example')
28-
->addTag('auto_alias', array('format' => '%non_existing%.example'));
28+
->addTag('auto_alias', array('format' => '%non_existing%.example'));
2929

3030
$pass = new AutoAliasServicePass();
3131
$pass->process($container);
@@ -39,7 +39,7 @@ public function testProcessWithMissingFormat()
3939
$container = new ContainerBuilder();
4040

4141
$container->register('example')
42-
->addTag('auto_alias', array());
42+
->addTag('auto_alias', array());
4343
$container->setParameter('existing', 'mysql');
4444

4545
$pass = new AutoAliasServicePass();
@@ -51,7 +51,7 @@ public function testProcessWithNonExistingAlias()
5151
$container = new ContainerBuilder();
5252

5353
$container->register('example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassDefault')
54-
->addTag('auto_alias', array('format' => '%existing%.example'));
54+
->addTag('auto_alias', array('format' => '%existing%.example'));
5555
$container->setParameter('existing', 'mysql');
5656

5757
$pass = new AutoAliasServicePass();
@@ -66,7 +66,7 @@ public function testProcessWithExistingAlias()
6666
$container = new ContainerBuilder();
6767

6868
$container->register('example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassDefault')
69-
->addTag('auto_alias', array('format' => '%existing%.example'));
69+
->addTag('auto_alias', array('format' => '%existing%.example'));
7070

7171
$container->register('mysql.example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassMysql');
7272
$container->setParameter('existing', 'mysql');
@@ -84,7 +84,7 @@ public function testProcessWithManualAlias()
8484
$container = new ContainerBuilder();
8585

8686
$container->register('example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassDefault')
87-
->addTag('auto_alias', array('format' => '%existing%.example'));
87+
->addTag('auto_alias', array('format' => '%existing%.example'));
8888

8989
$container->register('mysql.example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassMysql');
9090
$container->register('mariadb.example', 'Symfony\Component\DependencyInjection\Tests\Compiler\ServiceClassMariadb');

src/Symfony/Component/Form/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

src/Symfony/Component/Form/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

src/Symfony/Component/Form/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
}

src/Symfony/Component/Form/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

0 commit comments

Comments
 (0)