Skip to content

Commit a4e2ab5

Browse files
authored
Update Routes.php
1 parent d0f6638 commit a4e2ab5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

system/Commands/Utilities/Routes.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,24 +124,24 @@ public function run(array $params)
124124
{
125125
$routes = $collection->getRoutes($method);
126126

127-
foreach ($routes as $from => $to)
127+
foreach ($routes as $route => $handler)
128128
{
129129
// filter for strings, as callbacks aren't displayable
130-
if (is_string($to))
130+
if(is_string($handler))
131131
{
132132
$tbody[] = [
133-
$from,
134-
$method,
135-
$to,
133+
strtoupper($method),
134+
$route,
135+
$handler,
136136
];
137137
}
138138
}
139139
}
140140

141141
$thead = [
142-
'Route',
143142
'Method',
144-
'Command',
143+
'Route',
144+
'Handler',
145145
];
146146

147147
CLI::table($tbody, $thead);

0 commit comments

Comments
 (0)