Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ec7dcb2

Browse filesBrowse files
committed
fixed CS in generated files
1 parent afaa13e commit ec7dcb2
Copy full SHA for ec7dcb2

File tree

Expand file treeCollapse file tree

17 files changed

+246
-246
lines changed
Filter options
Expand file treeCollapse file tree

17 files changed

+246
-246
lines changed

‎src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ public function providerBasicDrivers()
178178
['doctrine.orm.cache.apcu.class', ['type' => 'apcu']],
179179
['doctrine.orm.cache.array.class', ['type' => 'array']],
180180
['doctrine.orm.cache.xcache.class', ['type' => 'xcache']],
181-
['doctrine.orm.cache.wincache.class', ['type' => 'wincache']],
182-
['doctrine.orm.cache.zenddata.class', ['type' => 'zenddata']],
181+
['doctrine.orm.cache.wincache.class', array ('type' => 'wincache')],
182+
['doctrine.orm.cache.zenddata.class', array ('type' => 'zenddata')],
183183
['doctrine.orm.cache.redis.class', ['type' => 'redis'], ['setRedis']],
184-
['doctrine.orm.cache.memcache.class', ['type' => 'memcache'], ['setMemcache']],
184+
['doctrine.orm.cache.memcache.class', array ('type' => 'memcache'), array ('setMemcache')],
185185
['doctrine.orm.cache.memcached.class', ['type' => 'memcached'], ['setMemcached']],
186186
];
187187
}

‎src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/default.phpt

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/default.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PHPUnit_Util_Test
3535
{
3636
public static function getGroups()
3737
{
38-
return array();
38+
return [];
3939
}
4040
}
4141

‎src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/shutdown_deprecations.phpt

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/shutdown_deprecations.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PHPUnit_Util_Test
3535
{
3636
public static function getGroups()
3737
{
38-
return array();
38+
return [];
3939
}
4040
}
4141

‎src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Tests/Iterator/PathFilterIteratorTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ public function getTestFilterData()
6868
[$inner, ['/^A/'], [], ['abc.dat', 'ab.dat', 'a.dat']],
6969
[$inner, ['/^A\/B/'], [], ['abc.dat', 'ab.dat']],
7070
[$inner, ['/^A\/B\/C/'], [], ['abc.dat']],
71-
[$inner, ['/A\/B\/C/'], [], ['abc.dat', 'abc.dat.copy']],
71+
[$inner, ['/A\/B\/C/'], array (), ['abc.dat', 'abc.dat.copy']],
7272

7373
[$inner, ['A'], [], ['abc.dat', 'ab.dat', 'a.dat', 'abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']],
7474
[$inner, ['A/B'], [], ['abc.dat', 'ab.dat', 'abc.dat.copy', 'ab.dat.copy']],
75-
[$inner, ['A/B/C'], [], ['abc.dat', 'abc.dat.copy']],
75+
[$inner, ['A/B/C'], array (), ['abc.dat', 'abc.dat.copy']],
7676

7777
[$inner, ['copy/A'], [], ['abc.dat.copy', 'ab.dat.copy', 'a.dat.copy']],
7878
[$inner, ['copy/A/B'], [], ['abc.dat.copy', 'ab.dat.copy']],
79-
[$inner, ['copy/A/B/C'], [], ['abc.dat.copy']],
79+
[$inner, ['copy/A/B/C'], array (), ['abc.dat.copy']],
8080
];
8181
}
8282
}

‎src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/AcceptHeaderTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public function testSorting($string, array $values)
9595
public function provideSortingData()
9696
{
9797
return [
98-
'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', ['ISO-8859-1', 'utf-8', '*']],
99-
'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', '*']],
100-
'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', '*']],
98+
'quality has priority' => ['*;q=0.3,ISO-8859-1,utf-8;q=0.7', array ('ISO-8859-1', 'utf-8', '*')],
99+
'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', '*')],
100+
'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', '*')],
101101
];
102102
}
103103
}

‎src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/RequestTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ public function getClientIpsProvider()
10251025
// forwarded for with remote IPv6 addr not trusted
10261026
[['1620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', null],
10271027
// forwarded for with remote IPv6 addr trusted
1028-
[['2620:0:1cfe:face:b00c::3'], '1620:0:1cfe:face:b00c::3', '2620:0:1cfe:face:b00c::3', ['1620:0:1cfe:face:b00c::3']],
1028+
[['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')],
10291029
// forwarded for with remote IPv6 range trusted
10301030
[['88.88.88.88'], '2a01:198:603:0:396e:4789:8e99:890f', '88.88.88.88', ['2a01:198:603:0::/65']],
10311031

‎src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function generateMatchMethod($supportsRedirections)
9898
return <<<EOF
9999
public function match(\$rawPathinfo)
100100
{
101-
\$allow = array();
101+
\$allow = [];
102102
\$pathinfo = rawurldecode(\$rawPathinfo);
103103
\$trimmedPathinfo = rtrim(\$pathinfo, '/');
104104
\$context = \$this->context;
@@ -290,7 +290,7 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
290290
if ($matches) {
291291
$vars[] = '$matches';
292292
}
293-
$vars[] = "array('_route' => '$name')";
293+
$vars[] = "['_route' => '$name']";
294294

295295
$code .= sprintf(
296296
" \$ret = \$this->mergeDefaults(array_replace(%s), %s);\n",
@@ -300,7 +300,7 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
300300
} elseif ($route->getDefaults()) {
301301
$code .= sprintf(" \$ret = %s;\n", str_replace("\n", '', var_export(array_replace($route->getDefaults(), ['_route' => $name]), true)));
302302
} else {
303-
$code .= sprintf(" \$ret = array('_route' => '%s');\n", $name);
303+
$code .= sprintf(" \$ret = ['_route' => '%s'];\n", $name);
304304
}
305305

306306
if ($hasTrailingSlash) {
@@ -331,9 +331,9 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
331331
$code .= <<<EOF
332332
\$requiredSchemes = $schemes;
333333
\$hasRequiredScheme = isset(\$requiredSchemes[\$context->getScheme()]);
334-
if (!in_array($methodVariable, array('$methods'))) {
334+
if (!in_array($methodVariable, ['$methods'])) {
335335
if (\$hasRequiredScheme) {
336-
\$allow = array_merge(\$allow, array('$methods'));
336+
\$allow = array_merge(\$allow, ['$methods']);
337337
}
338338
goto $gotoname;
339339
}
@@ -363,8 +363,8 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
363363
}
364364
} elseif ($methods) {
365365
$code .= <<<EOF
366-
if (!in_array($methodVariable, array('$methods'))) {
367-
\$allow = array_merge(\$allow, array('$methods'));
366+
if (!in_array($methodVariable, ['$methods'])) {
367+
\$allow = array_merge(\$allow, ['$methods']);
368368
goto $gotoname;
369369
}
370370

‎src/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher0.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher0.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(RequestContext $context)
1717

1818
public function match($rawPathinfo)
1919
{
20-
$allow = array();
20+
$allow = [];
2121
$pathinfo = rawurldecode($rawPathinfo);
2222
$trimmedPathinfo = rtrim($pathinfo, '/');
2323
$context = $this->context;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.