File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class DemoMiddleware
110110 $app->get('/user', DemoMiddleware::class, UserController::class);
111111 ```
112112
113- This highlights how middleware classes provide the exact same functionaly as using inline functions,
113+ This highlights how middleware classes provide the exact same functionality as using inline functions,
114114yet provide a cleaner and more reusable structure.
115115Accordingly, all examples below use middleware classes as the recommended style.
116116
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ you'll end up using promises one way or another no matter what.
189189
190190The major feature is that this means that anything that takes some time will
191191no longer block the entire execution.
192- These non-blocking operations are especially benefitial for anything that incurs
192+ These non-blocking operations are especially beneficial for anything that incurs
193193some kind of <abbrev title =" Input/Output " >I/O</abbrev >, such as
194194[ database queries] ( ../integrations/database.md ) , HTTP API requests,
195195[ filesystem access] ( ../integrations/filesystem.md ) and much more.
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function __invoke(ServerRequestInterface $request): ResponseInterface
103103 }
104104
105105 // Assign MIME type based on file extension (same as nginx/Apache) or fall back to given default otherwise.
106- // Browers are pretty good at figuring out the correct type if no charset attribute is given.
106+ // Browsers are pretty good at figuring out the correct type if no charset attribute is given.
107107 $ ext = \strtolower (\substr ($ path , \strrpos ($ path , '. ' ) + 1 ));
108108 $ headers = [
109109 'Content-Type ' => $ this ->mimetypes [$ ext ] ?? $ this ->defaultMimetype
You can’t perform that action at this time.
0 commit comments