Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d2b9bc

Browse files
committed
[FrameworkBundle] removed extra whitespaces
1 parent c9e967f commit 2d2b9bc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ protected function outputRoute(OutputInterface $output, $name)
128128

129129
$output->writeln($this->getHelper('formatter')->formatSection('router', sprintf('Route "%s"', $name)));
130130

131-
$output->writeln(sprintf('<comment>Name</comment> %s', $name));
132-
$output->writeln(sprintf('<comment>Pattern</comment> %s', $route->getPath()));
133-
$output->writeln(sprintf('<comment>Host</comment> %s', $host));
134-
$output->writeln(sprintf('<comment>Class</comment> %s', get_class($route)));
131+
$output->writeln(sprintf('<comment>Name</comment> %s', $name));
132+
$output->writeln(sprintf('<comment>Pattern</comment> %s', $route->getPath()));
133+
$output->writeln(sprintf('<comment>Host</comment> %s', $host));
134+
$output->writeln(sprintf('<comment>Class</comment> %s', get_class($route)));
135135

136136
$defaults = '';
137137
$d = $route->getDefaults();
138138
ksort($d);
139139
foreach ($d as $name => $value) {
140140
$defaults .= ($defaults ? "\n".str_repeat(' ', 13) : '').$name.': '.$this->formatValue($value);
141141
}
142-
$output->writeln(sprintf('<comment>Defaults</comment> %s', $defaults));
142+
$output->writeln(sprintf('<comment>Defaults</comment> %s', $defaults));
143143

144144
$requirements = '';
145145
$r = $route->getRequirements();
@@ -148,16 +148,16 @@ protected function outputRoute(OutputInterface $output, $name)
148148
$requirements .= ($requirements ? "\n".str_repeat(' ', 13) : '').$name.': '.$this->formatValue($value);
149149
}
150150
$requirements = '' !== $requirements ? $requirements : 'NONE';
151-
$output->writeln(sprintf('<comment>Requirements</comment> %s', $requirements));
151+
$output->writeln(sprintf('<comment>Requirements</comment> %s', $requirements));
152152

153153
$options = '';
154154
$o = $route->getOptions();
155155
ksort($o);
156156
foreach ($o as $name => $value) {
157157
$options .= ($options ? "\n".str_repeat(' ', 13) : '').$name.': '.$this->formatValue($value);
158158
}
159-
$output->writeln(sprintf('<comment>Options</comment> %s', $options));
160-
$output->write('<comment>Regex</comment> ');
159+
$output->writeln(sprintf('<comment>Options</comment> %s', $options));
160+
$output->write('<comment>Regex</comment> ');
161161
$output->writeln(preg_replace('/^ /', '', preg_replace('/^/m', ' ', $route->compile()->getRegex())), OutputInterface::OUTPUT_RAW);
162162
}
163163

0 commit comments

Comments
 (0)