Skip to content

Commit 899ba0a

Browse files
committed
Modify
1 parent b08ebc6 commit 899ba0a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
```
1212

13-
Simple, lightweight and powerful PHP Router. which also has rich features like Middlewares and Controllers is simple and useful router class for PHP. Heavily inspired by the way Laravel handles routing.
13+
A simple, lightweight, and powerful PHP Router with rich features like Middleware and Controllers. Heavily inspired by the way Laravel handles routing.
1414

1515
## Features:
1616

@@ -419,7 +419,7 @@ class AuthMiddleware implements Middleware {
419419
/**
420420
* Handle an incoming request.
421421
*/
422-
public function handle(Request $request) {
422+
public function handle(Request $request): void {
423423
//
424424
}
425425
}
@@ -428,7 +428,7 @@ class AuthMiddleware implements Middleware {
428428
For example, This framework includes a middleware that verifies the user of your application is authenticated. If the user is not authenticated, the middleware will redirect the user to your application's login screen. However, if the user is authenticated, the middleware will allow the request to proceed further into the application.
429429

430430
```php
431-
public function handle(Request $request) {
431+
public function handle(Request $request): void {
432432
if (!isset($_SESSION['user'])) {
433433
redirect('/login');
434434
}

0 commit comments

Comments
 (0)