@@ -22,7 +22,7 @@ it suffers from a few problems::
22
22
printf('Hello %s', $name);
23
23
24
24
First, if the ``name `` query parameter is not defined in the URL query string,
25
- you will get a PHP warning; so let's fix it::
25
+ you will get a PHP warning; let's fix it::
26
26
27
27
// framework/index.php
28
28
$name = $_GET['name'] ?? 'World';
@@ -93,8 +93,8 @@ reading this book now and go back to whatever code you were working on before.
93
93
Going OOP with the HttpFoundation Component
94
94
-------------------------------------------
95
95
96
- Writing web code is about interacting with HTTP. So, the fundamental
97
- principles of our framework should be around the `HTTP specification `_.
96
+ Writing web code is about interacting with HTTP. The fundamental principles
97
+ of our framework should be around the `HTTP specification `_.
98
98
99
99
The HTTP specification describes how a client (a browser for instance)
100
100
interacts with a server (our application via a web server). The dialog between
@@ -261,7 +261,7 @@ explicitly trust your reverse proxies by calling ``setTrustedProxies()``::
261
261
// the client is a known one, so give it some more privilege
262
262
}
263
263
264
- So, the ``getClientIp() `` method works securely in all circumstances. You can
264
+ The ``getClientIp() `` method works securely in all circumstances. You can
265
265
use it in all your projects, whatever the configuration is, it will behave
266
266
correctly and safely. That's one of the goals of using a framework. If you were
267
267
to write a framework from scratch, you would have to think about all these
0 commit comments