Skip to content

Commit 208c0c8

Browse files
committed
minor #10533 review "best practice" chapter for belittling words (dbu)
This PR was merged into the 4.1 branch. Discussion ---------- review "best practice" chapter for belittling words Another bit on symfony/diversity#9 Commits ------- 7a4c4c9 review best practice chapter for belittling words
2 parents 1ba2d1f + 7a4c4c9 commit 208c0c8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

best_practices/business-logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Both formats have the same performance, so this is ultimately a matter of
110110
personal taste.
111111

112112
We recommend YAML because it's friendly to newcomers and concise. You can
113-
of course use whatever format you like.
113+
use any of the other formats if you prefer another format.
114114

115115
Using a Persistence Layer
116116
-------------------------

best_practices/controllers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ When Things Get More Advanced
181181

182182
The above example works without any configuration because the wildcard name
183183
``{id}`` matches the name of the property on the entity. If this isn't true, or
184-
if you have even more complex logic, the easiest thing to do is just query for
184+
if you have even more complex logic, your best choice is to query for
185185
the entity manually. In our application, we have this situation in
186186
``CommentController``::
187187

best_practices/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ It's also a moving target that will continue to improve.
4949

5050
Keep in mind that these are **optional recommendations** that you and your
5151
team may or may not follow to develop Symfony applications. If you want to
52-
continue using your own best practices and methodologies, you can of course
53-
do it. Symfony is flexible enough to adapt to your needs. That will never
52+
continue using your own best practices and methodologies, you can still do
53+
that. Symfony is flexible enough to adapt to your needs. That will never
5454
change.
5555

5656
Who this Book Is for (Hint: It's not a Tutorial)

best_practices/templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Twig Extensions
5858

5959
Our application needs a custom ``md2html`` Twig filter so that we can transform
6060
the Markdown contents of each post into HTML. To do this, create a new
61-
``Markdown`` class that will be used later by the Twig extension. It just needs
61+
``Markdown`` class that will be used later by the Twig extension. It needs
6262
to define one single method to transform Markdown content into HTML::
6363

6464
namespace App\Utils;

best_practices/tests.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ functional tests, you can quickly spot any big errors before you deploy them:
2727
Define a functional test that at least checks if your application pages
2828
are successfully loading.
2929

30-
A functional test like this is simple to implement thanks to
31-
:ref:`PHPUnit data providers <testing-data-providers>`::
30+
:ref:`PHPUnit data providers <testing-data-providers>` help you implement
31+
functional tests::
3232

3333
// tests/ApplicationAvailabilityFunctionalTest.php
3434
namespace App\Tests;

0 commit comments

Comments
 (0)