Skip to content

Commit 1cea3d7

Browse files
committed
be keen to newcomers
1 parent c06b5d8 commit 1cea3d7

File tree

9 files changed

+20
-21
lines changed

9 files changed

+20
-21
lines changed

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/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
---------------

templating/PHP.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Next, enable the php engine:
6666
],
6767
]);
6868
69-
You can now render a PHP template instead of a Twig one simply by using the
70-
``.php`` extension in the template name instead of ``.twig``. The controller
71-
below renders the ``index.html.php`` template::
69+
You can now render a PHP template instead of a Twig one by using the ``.php``
70+
extension in the template name instead of ``.twig``. The controller below
71+
renders the ``index.html.php`` template::
7272

7373
// src/Controller/HelloController.php
7474

templating/formats.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ How to Work with Different Output Formats in Templates
66

77
Templates are a generic way to render content in *any* format. While in
88
most cases you'll use templates to render HTML content, a template can just
9-
as easily generate JavaScript, CSS, XML or any other format you can dream of.
9+
generate JavaScript, CSS, XML or any other format.
1010

1111
For example, the same "resource" is often rendered in several formats.
1212
To render an article index page in XML, include the format in the

templating/inheritance.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ Notice that this template extends the section template (``blog/layout.html.twig`
4747
which in turn extends the base application layout (``base.html.twig``). This is
4848
the common three-level inheritance model.
4949

50-
When building your application, you may choose to follow this method or simply
50+
When building your application, you may choose to follow this method or
5151
make each page template extend the base application template directly
5252
(e.g. ``{% extends 'base.html.twig' %}``). The three-template model is a
5353
best-practice method used by vendor bundles so that the base template for a
54-
bundle can be easily overridden to properly extend your application's base
55-
layout.
54+
bundle can be overridden to properly extend your application's base layout.

templating/render_without_controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ can do this without creating a controller:
5454
5555
return $routes;
5656
57-
The ``TemplateController`` will simply render whatever template you've passed as
58-
the ``template`` default value.
57+
The ``TemplateController`` will render whatever template you've passed as the
58+
``template`` default value.
5959

6060
You can also use this trick when rendering embedded controllers
6161
from within a template. But since the purpose of rendering a controller from

testing/database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Suppose the class you want to test looks like this::
6767
}
6868

6969
Since the ``EntityManagerInterface`` gets injected into the class through the constructor,
70-
it's easy to pass a mock object within a test::
70+
you can pass a mock object within a test::
7171

7272
// tests/Salary/SalaryCalculatorTest.php
7373
namespace App\Tests\Salary;

0 commit comments

Comments
 (0)