Skip to content

Commit ddbf08d

Browse files
committed
minor #11063 Be keen to newcomers (OskarStark)
This PR was squashed before being merged into the 4.2 branch (closes #11063). Discussion ---------- Be keen to newcomers Do not use **easy**, **easily** and **simply** This is a follow-up PR of #11044 Commits ------- 04d727d Be keen to newcomers
2 parents a49f0ea + 04d727d commit ddbf08d

27 files changed

+55
-58
lines changed

best_practices/business-logic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ post URL. Let's create a new ``Slugger`` class inside ``src/Utils/``::
5757
}
5858

5959
If you're using the :ref:`default services.yaml configuration <service-container-services-load-example>`,
60-
this class is auto-registered as a service whose ID is ``App\Utils\Slugger`` (or
61-
simply ``Slugger::class`` if the class is already imported in your code).
60+
this class is auto-registered as a service with the ID ``App\Utils\Slugger`` (to
61+
prevent against typos, import the class and write ``Slugger::class`` in your code).
6262

6363
.. best-practice::
6464

bundles/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Using the Bundle Extension
4848
--------------------------
4949

5050
Imagine you are creating a new bundle - AcmeSocialBundle - which provides
51-
integration with Twitter, etc. To make your bundle easy to use, you want to
52-
allow users to configure it with some configuration that looks like this:
51+
integration with Twitter. To make your bundle configurable to the user, you
52+
can add some configuration that looks like this:
5353

5454
.. configuration-block::
5555

components/dom_crawler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The :class:`Symfony\\Component\\DomCrawler\\Crawler` class provides methods
3636
to query and manipulate HTML and XML documents.
3737

3838
An instance of the Crawler represents a set of :phpclass:`DOMElement` objects,
39-
which are basically nodes that you can traverse easily::
39+
which are basically nodes that you can traverse::
4040

4141
use Symfony\Component\DomCrawler\Crawler;
4242

components/expression_language/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ or by using the second argument of the constructor::
127127
{
128128
public function __construct(CacheItemPoolInterface $parser = null, array $providers = [])
129129
{
130-
// prepends the default provider to let users override it easily
130+
// prepends the default provider to let users override it
131131
array_unshift($providers, new StringExpressionLanguageProvider());
132132

133133
parent::__construct($parser, $providers);

components/http_foundation/sessions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ store it again::
226226
],
227227
];
228228

229-
So any processing of this might quickly get ugly, even simply adding a token to
230-
the array::
229+
So any processing of this might quickly get ugly, even adding a token to the array::
231230

232231
$tokens = $session->get('tokens');
233232
$tokens['c'] = $value;

components/http_kernel.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ This is a simplified overview of the request workflow in Symfony applications:
4747
#. The **browser** displays the **resource** to the **user**.
4848

4949
Typically, some sort of framework or system is built to handle all the repetitive
50-
tasks (e.g. routing, security, etc) so that a developer can easily build
51-
each *page* of the application. Exactly *how* these systems are built varies
52-
greatly. The HttpKernel component provides an interface that formalizes
53-
the process of starting with a request and creating the appropriate response.
54-
The component is meant to be the heart of any application or framework, no
55-
matter how varied the architecture of that system::
50+
tasks (e.g. routing, security, etc) so that a developer can build each *page* of
51+
the application. Exactly *how* these systems are built varies greatly. The HttpKernel
52+
component provides an interface that formalizes the process of starting with a
53+
request and creating the appropriate response. The component is meant to be the
54+
heart of any application or framework, no matter how varied the architecture of
55+
that system::
5656

5757
namespace Symfony\Component\HttpKernel;
5858

components/options_resolver.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ Options without Default Values
522522
In some cases, it is useful to define an option without setting a default value.
523523
This is useful if you need to know whether or not the user *actually* set
524524
an option or not. For example, if you set the default value for an option,
525-
it's not possible to know whether the user passed this value or if it simply
526-
comes from the default::
525+
it's not possible to know whether the user passed this value or if it comes
526+
from the default::
527527

528528
// ...
529529
class Mailer

components/yaml/yaml_format.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ Comments can be added in YAML by prefixing them with a hash mark (``#``):
286286
287287
.. note::
288288

289-
Comments are simply ignored by the YAML parser and do not need to be
290-
indented according to the current level of nesting in a collection.
289+
Comments are ignored by the YAML parser and do not need to be indented
290+
according to the current level of nesting in a collection.
291291

292292
Explicit Typing
293293
---------------

configuration/environments.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Every application is the combination of code and a set of configuration that
88
dictates how that code should function. The configuration may define the database
99
being used, if something should be cached or how verbose logging should be.
1010

11-
In Symfony, the idea of "environments" is the idea that the same codebase can be
12-
run using multiple different configurations. For example, the ``dev`` environment
13-
should use configuration that makes development easy and friendly, while the
14-
``prod`` environment should use a set of configuration optimized for speed.
11+
In Symfony, the idea of "environments" is that the same codebase can be run using
12+
multiple different configurations. For example, the ``dev`` environment should use
13+
configuration that makes development comfortable and friendly, while the ``prod``
14+
environment should use a set of configuration optimized for speed and security.
1515

1616
.. index::
1717
single: Environments; Configuration files

contributing/code/bc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ method signature.
2222

2323
Also, not every BC break has the same impact on application code. While some BC
2424
breaks require you to make significant changes to your classes or your
25-
architecture, others are fixed as easily as changing the name of a method.
25+
architecture, others are fixed by changing the name of a method.
2626

2727
That's why we created this page for you. The section "Using Symfony Code" will
2828
tell you how you can ensure that your application won't break completely when

0 commit comments

Comments
 (0)