Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d247e67

Browse files
committed
updated coding standards
1 parent 1990b82 commit d247e67

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testAddObjectInitializer()
4242

4343
public function testAddObjectInitializers()
4444
{
45-
$this->assertSame($this->builder, $this->builder->addObjectInitializers(array()));
45+
$this->assertSame($this->builder, $this->builder->addObjectInitializers([]));
4646
}
4747

4848
public function testAddXmlMapping()
@@ -52,7 +52,7 @@ public function testAddXmlMapping()
5252

5353
public function testAddXmlMappings()
5454
{
55-
$this->assertSame($this->builder, $this->builder->addXmlMappings(array()));
55+
$this->assertSame($this->builder, $this->builder->addXmlMappings([]));
5656
}
5757

5858
public function testAddYamlMapping()
@@ -62,7 +62,7 @@ public function testAddYamlMapping()
6262

6363
public function testAddYamlMappings()
6464
{
65-
$this->assertSame($this->builder, $this->builder->addYamlMappings(array()));
65+
$this->assertSame($this->builder, $this->builder->addYamlMappings([]));
6666
}
6767

6868
public function testAddMethodMapping()
@@ -72,7 +72,7 @@ public function testAddMethodMapping()
7272

7373
public function testAddMethodMappings()
7474
{
75-
$this->assertSame($this->builder, $this->builder->addMethodMappings(array()));
75+
$this->assertSame($this->builder, $this->builder->addMethodMappings([]));
7676
}
7777

7878
public function testEnableAnnotationMapping()

src/Symfony/Component/Validator/ValidatorBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
*/
4444
class ValidatorBuilder implements ValidatorBuilderInterface
4545
{
46-
private $initializers = array();
47-
private $loaders = array();
48-
private $xmlMappings = array();
49-
private $yamlMappings = array();
50-
private $methodMappings = array();
46+
private $initializers = [];
47+
private $loaders = [];
48+
private $xmlMappings = [];
49+
private $yamlMappings = [];
50+
private $methodMappings = [];
5151

5252
/**
5353
* @var Reader|null
@@ -291,7 +291,7 @@ public function addLoader(LoaderInterface $loader)
291291
*/
292292
public function getLoaders()
293293
{
294-
$loaders = array();
294+
$loaders = [];
295295

296296
foreach ($this->xmlMappings as $xmlMapping) {
297297
$loaders[] = new XmlFileLoader($xmlMapping);

src/Symfony/Component/Validator/ValidatorBuilderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterfac
136136
* Sets the translator used for translating violation messages.
137137
*
138138
* @param TranslatorInterface|LegacyTranslatorInterface $translator
139+
*
139140
* @return $this
140141
*/
141142
public function setTranslator($translator);

0 commit comments

Comments
 (0)