diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
index f51b5a6b1b..dd4f5c5414 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
@@ -87,7 +87,11 @@ EOF
$maxMethod = 6;
foreach ($routes as $name => $route) {
$requirements = $route->getRequirements();
- $method = isset($requirements['_method']) ? strtoupper(is_array($requirements['_method']) ? implode(', ', $requirements['_method']) : $requirements['_method']) : 'ANY';
+ $method = isset($requirements['_method'])
+ ? strtoupper(is_array($requirements['_method'])
+ ? implode(', ', $requirements['_method']) : $requirements['_method']
+ )
+ : 'ANY';
if (strlen($name) > $maxName) {
$maxName = strlen($name);
@@ -104,7 +108,11 @@ EOF
$output->writeln(sprintf($format1, 'Name', 'Method', 'Pattern'));
foreach ($routes as $name => $route) {
$requirements = $route->getRequirements();
- $method = isset($requirements['_method']) ? strtoupper(is_array($requirements['_method']) ? implode(', ', $requirements['_method']) : $requirements['_method']) : 'ANY';
+ $method = isset($requirements['_method'])
+ ? strtoupper(is_array($requirements['_method'])
+ ? implode(', ', $requirements['_method']) : $requirements['_method']
+ )
+ : 'ANY';
$output->writeln(sprintf($format, $name, $method, $route->getPattern()));
}
}