From 37ab4cd0564d8e72701711a10742c5f2919e19a4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 Jan 2019 14:43:35 +0100 Subject: [PATCH] fixed CS --- .../Tests/DependencyInjection/DoctrineExtensionTest.php | 6 +++--- .../Finder/Tests/Iterator/PathFilterIteratorTest.php | 6 +++--- .../Component/HttpFoundation/Tests/AcceptHeaderTest.php | 6 +++--- src/Symfony/Component/HttpFoundation/Tests/RequestTest.php | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php index fa848e8d2c..0f53d0952c 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php @@ -178,10 +178,10 @@ class DoctrineExtensionTest extends TestCase ['doctrine.orm.cache.apcu.class', ['type' => 'apcu']], ['doctrine.orm.cache.array.class', ['type' => 'array']], ['doctrine.orm.cache.xcache.class', ['type' => 'xcache']], - ['doctrine.orm.cache.wincache.class', array ('type' => 'wincache')], - ['doctrine.orm.cache.zenddata.class', array ('type' => 'zenddata')], + ['doctrine.orm.cache.wincache.class', ['type' => 'wincache']], + ['doctrine.orm.cache.zenddata.class', ['type' => 'zenddata']], ['doctrine.orm.cache.redis.class', ['type' => 'redis'], ['setRedis']], - ['doctrine.orm.cache.memcache.class', array ('type' => 'memcache'), array ('setMemcache')], + ['doctrine.orm.cache.memcache.class', ['type' => 'memcache'], ['setMemcache']], ['doctrine.orm.cache.memcached.class', ['type' => 'memcached'], ['setMemcached']], ]; } diff --git a/src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php b/src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php index 1c3c95dc5c..9040ee04c3 100644 --- a/src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php +++ b/src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php @@ -68,15 +68,15 @@ class PathFilterIteratorTest extends IteratorTestCase [$inner, ['/^A/'], [], ['abc.dat', 'ab.dat', 'a.dat']], [$inner, ['/^A\/B/'], [], ['abc.dat', 'ab.dat']], [$inner, ['/^A\/B\/C/'], [], ['abc.dat']], - [$inner, ['/A\/B\/C/'], array (), ['abc.dat', 'abc.dat.copy']], + [$inner, ['/A\/B\/C/'], [], ['abc.dat', 'abc.dat.copy']], [$inner, ['A'], [], ['abc.dat', 'ab.dat', 'a.dat', 'abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']], [$inner, ['A/B'], [], ['abc.dat', 'ab.dat', 'abc.dat.copy', 'ab.dat.copy']], - [$inner, ['A/B/C'], array (), ['abc.dat', 'abc.dat.copy']], + [$inner, ['A/B/C'], [], ['abc.dat', 'abc.dat.copy']], [$inner, ['copy/A'], [], ['abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']], [$inner, ['copy/A/B'], [], ['abc.dat.copy', 'ab.dat.copy']], - [$inner, ['copy/A/B/C'], array (), ['abc.dat.copy']], + [$inner, ['copy/A/B/C'], [], ['abc.dat.copy']], ]; } } diff --git a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php index d5518cc3cd..31998696d7 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php @@ -95,9 +95,9 @@ class AcceptHeaderTest extends TestCase public function provideSortingData() { return [ - 'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', array ('ISO-8859-1', 'utf-8', '*')], - 'order matters when q is equal' => ['*;q=0.3,ISO-8859-1;q=0.7,utf-8;q=0.7', array ('ISO-8859-1', 'utf-8', '*')], - 'order matters when q is equal2' => ['*;q=0.3,utf-8;q=0.7,ISO-8859-1;q=0.7', array ('utf-8', 'ISO-8859-1', '*')], + 'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', ['ISO-8859-1', 'utf-8', '*']], + 'order matters when q is equal' => ['*;q=0.3,ISO-8859-1;q=0.7,utf-8;q=0.7', ['ISO-8859-1', 'utf-8', '*']], + 'order matters when q is equal2' => ['*;q=0.3,utf-8;q=0.7,ISO-8859-1;q=0.7', ['utf-8', 'ISO-8859-1', '*']], ]; } } diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 9e60e47054..6a8a73db85 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -1025,7 +1025,7 @@ class RequestTest extends TestCase // forwarded for with remote IPv6 addr not trusted [['1620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', null], // forwarded for with remote IPv6 addr trusted - [['2620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', array ('1620:0:1cfe:face:b00c::3')], + [['2620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', ['1620:0:1cfe:face:b00c::3']], // forwarded for with remote IPv6 range trusted [['88.88.88.88'], '2a01:198:603:0:396e:4789:8e99:890f', '88.88.88.88', ['2a01:198:603:0::/65']],