Fabien Potencier 13 years ago
parent
commit
bdf9b7eb3e

+ 2 - 1
src/Symfony/Component/Locale/Resources/data/update-data.php

@@ -125,7 +125,8 @@ function get_data($index, $dataDir, $locale = 'en', $constraint = null)
     return $data;
 }
 
-function create_stub_datafile($locale, $target, $data) {
+function create_stub_datafile($locale, $target, $data)
+{
     $template = <<<TEMPLATE
 <?php
 

+ 2 - 1
tests/Symfony/Tests/Bridge/Doctrine/Fixtures/CompositeIdentEntity.php

@@ -19,7 +19,8 @@ class CompositeIdentEntity implements UserInterface
     /** @Column(type="string") */
     public $name;
 
-    public function __construct($id1, $id2, $name) {
+    public function __construct($id1, $id2, $name)
+    {
         $this->id1 = $id1;
         $this->id2 = $id2;
         $this->name = $name;

+ 2 - 1
tests/Symfony/Tests/Bridge/Doctrine/Fixtures/CompositeStringIdentEntity.php

@@ -18,7 +18,8 @@ class CompositeStringIdentEntity
     /** @Column(type="string") */
     public $name;
 
-    public function __construct($id1, $id2, $name) {
+    public function __construct($id1, $id2, $name)
+    {
         $this->id1 = $id1;
         $this->id2 = $id2;
         $this->name = $name;

+ 2 - 1
tests/Symfony/Tests/Bridge/Doctrine/Fixtures/SingleIdentEntity.php

@@ -15,7 +15,8 @@ class SingleIdentEntity
     /** @Column(type="string", nullable=true) */
     public $name;
 
-    public function __construct($id, $name) {
+    public function __construct($id, $name)
+    {
         $this->id = $id;
         $this->name = $name;
     }

+ 2 - 1
tests/Symfony/Tests/Bridge/Doctrine/Fixtures/SingleStringIdentEntity.php

@@ -15,7 +15,8 @@ class SingleStringIdentEntity
     /** @Column(type="string") */
     public $name;
 
-    public function __construct($id, $name) {
+    public function __construct($id, $name)
+    {
         $this->id = $id;
         $this->name = $name;
     }

+ 2 - 1
tests/Symfony/Tests/Bridge/Doctrine/Mapping/Driver/AbstractDriverTest.php

@@ -97,7 +97,8 @@ abstract class AbstractDriverTest extends \PHPUnit_Framework_TestCase
         $ref->setValue($obj, $value);
     }
 
-    private function invoke($obj, $method, array $args = array()) {
+    private function invoke($obj, $method, array $args = array())
+    {
         $ref = new \ReflectionMethod($obj, $method);
         $ref->setAccessible(true);
 

+ 2 - 1
tests/Symfony/Tests/Bridge/Twig/Extension/Fixtures/StubFilesystemLoader.php

@@ -13,7 +13,8 @@ namespace Symfony\Tests\Bridge\Twig\Extension\Fixtures;
 
 // Preventing autoloader throwing E_FATAL when Twig is now available
 if (!class_exists('Twig_Environment')) {
-    class StubFilesystemLoader {
+    class StubFilesystemLoader
+    {
     }
 } else {
     class StubFilesystemLoader extends \Twig_Loader_Filesystem

+ 2 - 1
tests/Symfony/Tests/Component/Config/Resource/DirectoryResourceTest.php

@@ -34,7 +34,8 @@ class DirectoryResourceTest extends \PHPUnit_Framework_TestCase
         $this->removeDirectory($this->directory);
     }
 
-    protected function removeDirectory($directory) {
+    protected function removeDirectory($directory)
+    {
         $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST);
         foreach ($iterator as $path) {
             if (preg_match('#/\.\.?$#', $path->__toString())) {

+ 4 - 2
tests/Symfony/Tests/Component/Validator/Constraints/CollectionValidatorTest.php

@@ -268,7 +268,8 @@ class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
         ))));
     }
 
-    public function testArrayAccessObject() {
+    public function testArrayAccessObject()
+    {
         $value = new TestArrayObject();
         $value['foo'] = 12;
         $value['asdf'] = 'asdfaf';
@@ -288,7 +289,8 @@ class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
         $this->assertTrue($result);
     }
 
-    public function testArrayObject() {
+    public function testArrayObject()
+    {
         $value = new \ArrayObject(array());
         $value['foo'] = 12;
         $value['asdf'] = 'asdfaf';

+ 2 - 2
tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintB.php

@@ -5,8 +5,8 @@ namespace Symfony\Tests\Component\Validator\Fixtures;
 use Symfony\Component\Validator\Constraint;
 
 /** @Annotation */
-class ConstraintB extends Constraint {
-
+class ConstraintB extends Constraint
+{
     public function getTargets()
     {
         return array(self::PROPERTY_CONSTRAINT, self::CLASS_CONSTRAINT);