From 11e3a9e4e5498aedb0e3f71f981d8d961e773ef6 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Thu, 26 Mar 2015 23:32:35 +0100 Subject: [PATCH] CS: fixes --- .../Tests/Fixtures/classmap/multipleNs.php | 1 + .../ClassLoader/Tests/Fixtures/php5.4/traits.php | 1 + .../Tests/Definition/Builder/ExprBuilderTest.php | 2 +- .../Tests/Iterator/FilePathsIteratorTest.php | 9 ++++++--- .../Component/Form/Tests/AbstractFormTest.php | 16 ++++++++-------- .../Form/Tests/CallbackTransformerTest.php | 13 +++++++++++-- .../Profiler/AbstractProfilerStorageTest.php | 1 + .../Routing/Tests/Fixtures/validpattern.php | 1 + 8 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php index 7db8cd3b67..c7cec646f5 100644 --- a/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php +++ b/src/Symfony/Component/ClassLoader/Tests/Fixtures/classmap/multipleNs.php @@ -1,4 +1,5 @@ assertFinalizedValueIs('new_value', $test); $test = $this->getTestBuilder() - ->ifNotInArray(array('foo', 'bar', 'value_from_config' )) + ->ifNotInArray(array('foo', 'bar', 'value_from_config')) ->then($this->returnClosure('new_value')) ->end(); $this->assertFinalizedValueIs('new_value', $test); diff --git a/src/Symfony/Component/Finder/Tests/Iterator/FilePathsIteratorTest.php b/src/Symfony/Component/Finder/Tests/Iterator/FilePathsIteratorTest.php index 89853a85cb..fdf810bebd 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/FilePathsIteratorTest.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/FilePathsIteratorTest.php @@ -36,7 +36,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase return array( array( $tmpDir, - array( // paths + array( + // paths $tmpDir.DIRECTORY_SEPARATOR.'.git' => $tmpDir.DIRECTORY_SEPARATOR.'.git', $tmpDir.DIRECTORY_SEPARATOR.'test.py' => $tmpDir.DIRECTORY_SEPARATOR.'test.py', $tmpDir.DIRECTORY_SEPARATOR.'foo' => $tmpDir.DIRECTORY_SEPARATOR.'foo', @@ -44,7 +45,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase $tmpDir.DIRECTORY_SEPARATOR.'test.php' => $tmpDir.DIRECTORY_SEPARATOR.'test.php', $tmpDir.DIRECTORY_SEPARATOR.'toto' => $tmpDir.DIRECTORY_SEPARATOR.'toto', ), - array( // subPaths + array( + // subPaths $tmpDir.DIRECTORY_SEPARATOR.'.git' => '', $tmpDir.DIRECTORY_SEPARATOR.'test.py' => '', $tmpDir.DIRECTORY_SEPARATOR.'foo' => '', @@ -52,7 +54,8 @@ class FilePathsIteratorTest extends RealIteratorTestCase $tmpDir.DIRECTORY_SEPARATOR.'test.php' => '', $tmpDir.DIRECTORY_SEPARATOR.'toto' => '', ), - array( // subPathnames + array( + // subPathnames $tmpDir.DIRECTORY_SEPARATOR.'.git' => '.git', $tmpDir.DIRECTORY_SEPARATOR.'test.py' => 'test.py', $tmpDir.DIRECTORY_SEPARATOR.'foo' => 'foo', diff --git a/src/Symfony/Component/Form/Tests/AbstractFormTest.php b/src/Symfony/Component/Form/Tests/AbstractFormTest.php index a2d171c234..2a842b29df 100644 --- a/src/Symfony/Component/Form/Tests/AbstractFormTest.php +++ b/src/Symfony/Component/Form/Tests/AbstractFormTest.php @@ -1,13 +1,13 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace Symfony\Component\Form\Tests; diff --git a/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php b/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php index 7f3b074e78..af49e69e6c 100644 --- a/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/CallbackTransformerTest.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Symfony\Component\Form\Tests; use Symfony\Component\Form\CallbackTransformer; @@ -30,8 +39,8 @@ class CallbackTransformerTest extends \PHPUnit_Framework_TestCase public function invalidCallbacksProvider() { return array( - array( null, function () {} ), - array( function () {}, null ), + array(null, function () {}), + array(function () {}, null), ); } } diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php index 89d7503ffa..fdd7920aed 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/AbstractProfilerStorageTest.php @@ -1,4 +1,5 @@