Skip to content

Commit f940e3d

Browse files
committed
CS: adjust chaining indentation
1 parent 7602ecd commit f940e3d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

Constraints/UrlValidator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ public function validate($value, Constraint $constraint)
8383
if (!is_string($host) || !checkdnsrr($host, 'ANY')) {
8484
if ($this->context instanceof ExecutionContextInterface) {
8585
$this->context->buildViolation($constraint->dnsMessage)
86-
->setParameter('{{ value }}', $this->formatValue($host))
87-
->addViolation();
86+
->setParameter('{{ value }}', $this->formatValue($host))
87+
->addViolation();
8888
} else {
8989
$this->buildViolation($constraint->dnsMessage)
90-
->setParameter('{{ value }}', $this->formatValue($host))
91-
->addViolation();
90+
->setParameter('{{ value }}', $this->formatValue($host))
91+
->addViolation();
9292
}
9393
}
9494
}

Tests/Mapping/Loader/LoaderChainTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public function testAllLoadersAreCalled()
2323

2424
$loader1 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
2525
$loader1->expects($this->once())
26-
->method('loadClassMetadata')
27-
->with($this->equalTo($metadata));
26+
->method('loadClassMetadata')
27+
->with($this->equalTo($metadata));
2828

2929
$loader2 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
3030
$loader2->expects($this->once())
31-
->method('loadClassMetadata')
32-
->with($this->equalTo($metadata));
31+
->method('loadClassMetadata')
32+
->with($this->equalTo($metadata));
3333

3434
$chain = new LoaderChain(array(
3535
$loader1,
@@ -45,13 +45,13 @@ public function testReturnsTrueIfAnyLoaderReturnedTrue()
4545

4646
$loader1 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
4747
$loader1->expects($this->any())
48-
->method('loadClassMetadata')
49-
->will($this->returnValue(true));
48+
->method('loadClassMetadata')
49+
->will($this->returnValue(true));
5050

5151
$loader2 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
5252
$loader2->expects($this->any())
53-
->method('loadClassMetadata')
54-
->will($this->returnValue(false));
53+
->method('loadClassMetadata')
54+
->will($this->returnValue(false));
5555

5656
$chain = new LoaderChain(array(
5757
$loader1,
@@ -67,13 +67,13 @@ public function testReturnsFalseIfNoLoaderReturnedTrue()
6767

6868
$loader1 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
6969
$loader1->expects($this->any())
70-
->method('loadClassMetadata')
71-
->will($this->returnValue(false));
70+
->method('loadClassMetadata')
71+
->will($this->returnValue(false));
7272

7373
$loader2 = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Loader\LoaderInterface')->getMock();
7474
$loader2->expects($this->any())
75-
->method('loadClassMetadata')
76-
->will($this->returnValue(false));
75+
->method('loadClassMetadata')
76+
->will($this->returnValue(false));
7777

7878
$chain = new LoaderChain(array(
7979
$loader1,

0 commit comments

Comments
 (0)