Skip to content

Commit f25b41b

Browse files
committed
review components documentation for belittling words
1 parent 4f9ad67 commit f25b41b

32 files changed

+77
-79
lines changed

components/asset.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ corresponding output file:
155155
"...": "..."
156156
}
157157
158-
In those cases, use the
158+
In those cases, use the
159159
:class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy`::
160160

161161
use Symfony\Component\Asset\Package;
@@ -282,8 +282,8 @@ You can also pass a schema-agnostic URL::
282282
// result: //static.example.com/images/logo.png?v1
283283

284284
This is useful because assets will automatically be requested via HTTPS if
285-
a visitor is viewing your site in https. Just make sure that your CDN host
286-
supports https.
285+
a visitor is viewing your site in https. If you want to use this, make sure
286+
that your CDN host supports HTTPS.
287287

288288
In case you serve assets from more than one domain to improve application
289289
performance, pass an array of URLs as the first argument to the ``UrlPackage``

components/console/changing_default_command.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Changing the Default Command
55
============================
66

77
The Console component will always run the ``ListCommand`` when no command name is
8-
passed. In order to change the default command you just need to pass the command
8+
passed. In order to change the default command you need to pass the command
99
name to the ``setDefaultCommand()`` method::
1010

1111
namespace Acme\Console\Command;

components/console/helpers/formatterhelper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ Custom Suffix
101101
~~~~~~~~~~~~~
102102

103103
By default, the ``...`` suffix is used. If you wish to use a different suffix,
104-
simply pass it as the third argument to the method.
104+
pass it as the third argument to the method.
105105
The suffix is always appended, unless truncate length is longer than a message
106106
and a suffix length.
107-
If you don't want to use suffix at all, just pass an empty string::
107+
If you don't want to use suffix at all, pass an empty string::
108108

109109
$truncatedMessage = $formatter->truncate($message, 7, '!!'); // result: This is!!
110110
$truncatedMessage = $formatter->truncate($message, 7, ''); // result: This is

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ value and then call the ``setMaxSteps()`` method to update it as needed::
6767
.. versionadded:: 4.1
6868
The ``setMaxSteps()`` method was introduced in Symfony 4.1.
6969

70-
Another solution is to just omit the steps argument when creating the
70+
Another solution is to omit the steps argument when creating the
7171
:class:`Symfony\\Component\\Console\\Helper\\ProgressBar` instance::
7272

7373
$progressBar = new ProgressBar($output);

components/console/single_command_tool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The method :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
3333
accepts a boolean as second parameter. If true, the command ``echo`` will then
3434
always be used, without having to pass its name.
3535

36-
Of course, you can still register a command as usual::
36+
You can still register a command as usual::
3737

3838
#!/usr/bin/env php
3939
<?php

components/console/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ commands, then you can run ``help`` like this:
139139
140140
$ php application.php h
141141
142-
If you have commands using ``:`` to namespace commands then you just have
142+
If you have commands using ``:`` to namespace commands then you only need
143143
to type the shortest unambiguous text for each part. If you have created the
144144
``demo:greet`` as shown in :doc:`/components/console` then you
145145
can run it with:

components/debug.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Usage
2222
-----
2323

2424
The Debug component provides several tools to help you debug PHP code.
25-
Enabling them all is as easy as it can get::
25+
Enabling them all can be done by calling the static method ``Debug::enable()``::
2626

2727
use Symfony\Component\Debug\Debug;
2828

@@ -80,7 +80,7 @@ throw more helpful exceptions when a class isn't found by the registered
8080
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced
8181
with a ``DebugClassLoader`` wrapper.
8282

83-
Using the ``DebugClassLoader`` is as easy as calling its static
83+
To activate the ``DebugClassLoader``, call its static
8484
:method:`Symfony\\Component\\Debug\\DebugClassLoader::enable` method::
8585

8686
use Symfony\Component\Debug\DebugClassLoader;

components/dependency_injection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Basic Usage
3232
independent component in any PHP application. Read the :doc:`/service_container`
3333
article to learn about how to use it in Symfony applications.
3434

35-
You might have a simple class like the following ``Mailer`` that
35+
You might have a class like the following ``Mailer`` that
3636
you want to make available as a service::
3737

3838
class Mailer

components/dependency_injection/compilation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ need to be parsed and the PHP configuration built from them. The compilation
449449
process makes the container more efficient but it takes time to run. You
450450
can have the best of both worlds though by using configuration files and
451451
then dumping and caching the resulting configuration. The ``PhpDumper``
452-
makes dumping the compiled container easy::
452+
serves at dumping the compiled container::
453453

454454
use Symfony\Component\DependencyInjection\ContainerBuilder;
455455
use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
@@ -534,7 +534,7 @@ You do not need to work out which files to cache as the container builder
534534
keeps track of all the resources used to configure it, not just the
535535
configuration files but the extension classes and compiler passes as well.
536536
This means that any changes to any of these files will invalidate the cache
537-
and trigger the container being rebuilt. You just need to ask the container
537+
and trigger the container being rebuilt. You need to ask the container
538538
for these resources and use them as metadata for the cache::
539539

540540
// ...

components/dom_crawler.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ tree.
7575
Node Filtering
7676
~~~~~~~~~~~~~~
7777

78-
Using XPath expressions is really easy::
78+
Using XPath expressions, you can select specific nodes within the document::
7979

8080
$crawler = $crawler->filterXPath('descendant-or-self::body/p');
8181

8282
.. tip::
8383

8484
``DOMXPath::query`` is used internally to actually perform an XPath query.
8585

86-
Filtering is even easier if you have the CssSelector component installed.
87-
This allows you to use jQuery-like selectors to traverse::
86+
If you prefer CSS selectors over XPath, install the CssSelector component.
87+
It allows you to use jQuery-like selectors to traverse::
8888

8989
$crawler = $crawler->filter('body > p');
9090

0 commit comments

Comments
 (0)