@@ -133,7 +133,7 @@ protected function describeRoute(Route $route, array $options = []): void
133
133
['Host ' , '' !== $ route ->getHost () ? $ route ->getHost () : 'ANY ' ],
134
134
['Host Regex ' , '' !== $ route ->getHost () ? $ route ->compile ()->getHostRegex () : '' ],
135
135
['Scheme ' , $ route ->getSchemes () ? implode ('| ' , $ route ->getSchemes ()) : 'ANY ' ],
136
- ['Method ' , $ route -> getMethods () ? implode ( ' | ' , $ route ->getMethods ()) : ' ANY ' ],
136
+ ['Method ' , $ this -> formatMethods ( $ route ->getMethods ())],
137
137
['Requirements ' , $ route ->getRequirements () ? $ this ->formatRouterConfig ($ route ->getRequirements ()) : 'NO CUSTOM ' ],
138
138
['Class ' , $ route ::class],
139
139
['Defaults ' , $ this ->formatRouterConfig ($ defaults )],
@@ -606,13 +606,16 @@ private function formatRouterConfig(array $config): string
606
606
return trim ($ configAsString );
607
607
}
608
608
609
+ /**
610
+ * @param array<string> $methods
611
+ */
609
612
private function formatMethods (array $ methods ): string
610
613
{
611
614
if (!$ methods ) {
612
615
$ methods = ['ANY ' ];
613
616
}
614
617
615
- return implode ('<fg=#6C7280>|</> ' , array_map (
618
+ return implode ('| ' , array_map (
616
619
fn (string $ method ): string => '<fg= ' .self ::VERB_COLORS [$ method ].'> ' .$ method .'</> ' ,
617
620
$ methods
618
621
));
0 commit comments