Skip to content

Commit e9d8973

Browse files
committed
Fix CS
1 parent 3928919 commit e9d8973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loader/XmlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function parseRoute(RouteCollection $collection, \DOMElement $node, st
118118
$schemes = preg_split('/[\s,\|]++/', $node->getAttribute('schemes'), -1, \PREG_SPLIT_NO_EMPTY);
119119
$methods = preg_split('/[\s,\|]++/', $node->getAttribute('methods'), -1, \PREG_SPLIT_NO_EMPTY);
120120

121-
list($defaults, $requirements, $options, $condition, $paths, /* $prefixes */, $hosts) = $this->parseConfigs($node, $path);
121+
[$defaults, $requirements, $options, $condition, $paths, /* $prefixes */, $hosts] = $this->parseConfigs($node, $path);
122122

123123
if (!$paths && '' === $node->getAttribute('path')) {
124124
throw new \InvalidArgumentException(sprintf('The <route> element in file "%s" must have a "path" attribute or <path> child nodes.', $path));
@@ -163,7 +163,7 @@ protected function parseImport(RouteCollection $collection, \DOMElement $node, s
163163
$trailingSlashOnRoot = $node->hasAttribute('trailing-slash-on-root') ? XmlUtils::phpize($node->getAttribute('trailing-slash-on-root')) : true;
164164
$namePrefix = $node->getAttribute('name-prefix') ?: null;
165165

166-
list($defaults, $requirements, $options, $condition, /* $paths */, $prefixes, $hosts) = $this->parseConfigs($node, $path);
166+
[$defaults, $requirements, $options, $condition, /* $paths */, $prefixes, $hosts] = $this->parseConfigs($node, $path);
167167

168168
if ('' !== $prefix && $prefixes) {
169169
throw new \InvalidArgumentException(sprintf('The <route> element in file "%s" must not have both a "prefix" attribute and <prefix> child nodes.', $path));

0 commit comments

Comments
 (0)