Skip to content

Commit 54438e3

Browse files
committed
Feature: "spark routes" closure. Decoration.
Signed-off-by: Andrey Pyzhikov <5071@mail.ru>
1 parent c255d1c commit 54438e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Commands/Utilities/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function run(array $params)
9797
$tbody[] = [
9898
strtoupper($method),
9999
$route,
100-
is_string($handler) ? $handler : 'Closure',
100+
is_string($handler) ? $handler : '(Closure)',
101101
];
102102
}
103103
}

tests/system/Commands/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testRoutesCommand()
110110
{
111111
command('routes');
112112

113-
$this->assertStringContainsString('| Closure', $this->getBuffer());
113+
$this->assertStringContainsString('| (Closure)', $this->getBuffer());
114114
$this->assertStringContainsString('| Route', $this->getBuffer());
115115
$this->assertStringContainsString('| testing', $this->getBuffer());
116116
$this->assertStringContainsString('\\TestController::index', $this->getBuffer());

0 commit comments

Comments
 (0)