File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ public function getRoute(string $uri): array
114
114
$ segments = explode ('/ ' , $ uri );
115
115
116
116
// Check for Module Routes.
117
- if ($ routingConfig = config (Routing::class)) {
118
- if ( array_key_exists ( $ segments [ 0 ], $ routingConfig-> moduleRoutes )) {
119
- $ uriSegment = array_shift ($ segments);
120
-
121
- $ this -> namespace = rtrim ( $ routingConfig -> moduleRoutes [ $ uriSegment ], '\\' ) . '\\' ;
122
- }
117
+ if (
118
+ ( $ routingConfig = config (Routing::class))
119
+ && array_key_exists ($ segments[ 0 ], $ routingConfig -> moduleRoutes )
120
+ ) {
121
+ $ uriSegment = array_shift ( $ segments ) ;
122
+ $ this -> namespace = rtrim ( $ routingConfig -> moduleRoutes [ $ uriSegment ], '\\' ) . '\\' ;
123
123
}
124
124
125
125
// WARNING: Directories get shifted out of the segments array.
You can’t perform that action at this time.
0 commit comments