From 98a00526adf38ef199a878bb99ebb77e54704ff0 Mon Sep 17 00:00:00 2001 From: lsmith77 Date: Tue, 17 Apr 2012 10:08:22 +0200 Subject: [PATCH] improved readability --- .../FrameworkBundle/Command/RouterDebugCommand.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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())); } }