Skip to content

Correct spelling & grammar in 4.4 components/console/ #16260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ to display it can be customized::

.. caution::

For performance reasons, Symfony redraws screen every 100ms. If this is too
For performance reasons, Symfony redraws the screen once every 100ms. If this is too
fast or to slow for your application, use the methods
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::minSecondsBetweenRedraws` and
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::maxSecondsBetweenRedraws`::
Expand Down
4 changes: 2 additions & 2 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ option is the default one.
If the user enters an invalid string, an error message is shown and the user
is asked to provide the answer another time, until they enter a valid string
or reach the maximum number of attempts. The default value for the maximum number
of attempts is ``null``, which means infinite number of attempts. You can define
of attempts is ``null``, which means an infinite number of attempts. You can define
your own error message using
:method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setErrorMessage`.

Expand Down Expand Up @@ -367,7 +367,7 @@ was successful.
You can set the max number of times to ask with the
:method:`Symfony\\Component\\Console\\Question\\Question::setMaxAttempts` method.
If you reach this max number it will use the default value. Using ``null`` means
the amount of attempts is infinite. The user will be asked as long as they provide an
the number of attempts is infinite. The user will be asked as long as they provide an
invalid answer and will only be able to proceed if their input is valid.

Validating a Hidden Response
Expand Down
4 changes: 2 additions & 2 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ The output of this command will be:
| 99921 | Divine Com | Dante Alighieri |
| -58-1 | edy | |
| 0-7 | | |
| (the rest of rows...) |
| (the rest of the rows...) |
+-------+------------+--------------------------------+

The table style can be changed to any built-in styles via
Expand Down Expand Up @@ -350,7 +350,7 @@ This outputs:
| 978-0804169127 | Divine Comedy | spans multiple rows |
+----------------+---------------+---------------------+

You can use the ``colspan`` and ``rowspan`` options at the same time which allows
You can use the ``colspan`` and ``rowspan`` options at the same time, which allows
you to create any table layout you may wish.

.. _console-modify-rendered-tables:
Expand Down
4 changes: 2 additions & 2 deletions components/console/single_command_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Building a single Command Application
=====================================

When building a command line tool, you may not need to provide several commands.
In such case, having to pass the command name each time is tedious. Fortunately,
In such a case, having to pass the command name each time is tedious. Fortunately,
it is possible to remove this need by declaring a single command application::

#!/usr/bin/env php
Expand All @@ -30,7 +30,7 @@ it is possible to remove this need by declaring a single command application::
->run();

The :method:`Symfony\\Component\\Console\\Application::setDefaultCommand` method
accepts a boolean as second parameter. If true, the command ``echo`` will then
accepts a boolean as the second parameter. If true, the command ``echo`` will then
always be used, without having to pass its name.

You can still register a command as usual::
Expand Down