Skip to content

Commit c7f3355

Browse files
committed
refactoring and updates tests.
1 parent e3b99a1 commit c7f3355

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/Mvc/MockRouter.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ class MockRouter extends Router
1818
/**
1919
* Override to store routes with names for testing
2020
*/
21-
public function get( string $Route, $function, ?string $Filter = null ): RouteMap
21+
public function get( string $route, $function, ?string $filter = null ): RouteMap
2222
{
23-
$route = parent::get( $Route, $function, $Filter );
24-
return $route;
23+
return parent::get( $route, $function, $filter );
2524
}
2625

2726
/**
2827
* Override to store routes with names for testing
2928
*/
30-
public function post( string $Route, $function, ?string $Filter = null ): RouteMap
29+
public function post( string $route, $function, ?string $filter = null ): RouteMap
3130
{
32-
$route = parent::post( $Route, $function, $Filter );
33-
return $route;
31+
return parent::post( $route, $function, $filter );
3432
}
3533

3634
/**

0 commit comments

Comments
 (0)