diff --git a/src/Symfony/Component/Validator/GlobalExecutionContext.php b/src/Symfony/Component/Validator/GlobalExecutionContext.php index 36f71fdf7f..d234385e40 100644 --- a/src/Symfony/Component/Validator/GlobalExecutionContext.php +++ b/src/Symfony/Component/Validator/GlobalExecutionContext.php @@ -27,11 +27,7 @@ class GlobalExecutionContext private $metadataFactory; private $violations; - public function __construct( - $root, - GraphWalker $graphWalker, - ClassMetadataFactoryInterface $metadataFactory - ) + public function __construct($root, GraphWalker $graphWalker, ClassMetadataFactoryInterface $metadataFactory) { $this->root = $root; $this->graphWalker = $graphWalker; diff --git a/tests/Symfony/Tests/Component/Validator/ExecutionContextTest.php b/tests/Symfony/Tests/Component/Validator/ExecutionContextTest.php index 84b4156023..5b15a4d4c9 100644 --- a/tests/Symfony/Tests/Component/Validator/ExecutionContextTest.php +++ b/tests/Symfony/Tests/Component/Validator/ExecutionContextTest.php @@ -89,7 +89,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase )), $this->context->getViolations()); } - public function testAddViolationUsesPassedNulValue() + public function testAddViolationUsesPassedNullValue() { // passed null value should override preconfigured value "invalid" $this->context->addViolation('Error', array('foo' => 'bar'), null); @@ -136,7 +136,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase )), $this->context->getViolations()); } - public function testAddViolationAtUsesPassedNulValue() + public function testAddViolationAtUsesPassedNullValue() { // passed null value should override preconfigured value "invalid" $this->context->addViolationAt('bar.baz', 'Error', array('foo' => 'bar'), null); @@ -233,7 +233,7 @@ class ExecutionContextTest extends \PHPUnit_Framework_TestCase )), $this->context->getViolations()); } - public function testAddNestedViolationAtUsesPassedNulValue() + public function testAddNestedViolationAtUsesPassedNullValue() { // passed null value should override preconfigured value "invalid" $this->context->addNestedViolationAt('bam.baz', 'Error', array('foo' => 'bar'), null);