@@ -128,18 +128,18 @@ protected function outputRoute(OutputInterface $output, $name)
128
128
129
129
$ output ->writeln ($ this ->getHelper ('formatter ' )->formatSection ('router ' , sprintf ('Route "%s" ' , $ name )));
130
130
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 )));
135
135
136
136
$ defaults = '' ;
137
137
$ d = $ route ->getDefaults ();
138
138
ksort ($ d );
139
139
foreach ($ d as $ name => $ value ) {
140
140
$ defaults .= ($ defaults ? "\n" .str_repeat (' ' , 13 ) : '' ).$ name .': ' .$ this ->formatValue ($ value );
141
141
}
142
- $ output ->writeln (sprintf ('<comment>Defaults</comment> %s ' , $ defaults ));
142
+ $ output ->writeln (sprintf ('<comment>Defaults</comment> %s ' , $ defaults ));
143
143
144
144
$ requirements = '' ;
145
145
$ r = $ route ->getRequirements ();
@@ -148,16 +148,16 @@ protected function outputRoute(OutputInterface $output, $name)
148
148
$ requirements .= ($ requirements ? "\n" .str_repeat (' ' , 13 ) : '' ).$ name .': ' .$ this ->formatValue ($ value );
149
149
}
150
150
$ requirements = '' !== $ requirements ? $ requirements : 'NONE ' ;
151
- $ output ->writeln (sprintf ('<comment>Requirements</comment> %s ' , $ requirements ));
151
+ $ output ->writeln (sprintf ('<comment>Requirements</comment> %s ' , $ requirements ));
152
152
153
153
$ options = '' ;
154
154
$ o = $ route ->getOptions ();
155
155
ksort ($ o );
156
156
foreach ($ o as $ name => $ value ) {
157
157
$ options .= ($ options ? "\n" .str_repeat (' ' , 13 ) : '' ).$ name .': ' .$ this ->formatValue ($ value );
158
158
}
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> ' );
161
161
$ output ->writeln (preg_replace ('/^ / ' , '' , preg_replace ('/^/m ' , ' ' , $ route ->compile ()->getRegex ())), OutputInterface::OUTPUT_RAW );
162
162
}
163
163
0 commit comments