Skip to content

Commit bb5fb7b

Browse files
committed
Fixed many spelling issues
1 parent 19f2aa2 commit bb5fb7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+138
-132
lines changed

best_practices/controllers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ configuration to the main routing configuration file:
4848
4949
This configuration will load annotations from any controller stored inside the
5050
``src/AppBundle/Controller/`` directory and even from its subdirectories.
51-
So if your application defines lots of controllers, it's perfectly ok to
51+
So if your application defines lots of controllers, it's perfectly OK to
5252
reorganize them into subdirectories:
5353

5454
.. code-block:: text

best_practices/templates.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Template Locations
3030
Store all your application's templates in ``app/Resources/views/`` directory.
3131

3232
Traditionally, Symfony developers stored the application templates in the
33-
``Resources/views/`` directory of each bundle. Then they used the Twig namespaced
34-
path to refer to them (e.g. ``@AcmeDemo/Default/index.html.twig``).
33+
``Resources/views/`` directory of each bundle. Then they used Twig namespaces
34+
to refer to them (e.g. ``@AcmeDemo/Default/index.html.twig``).
3535

3636
But for the templates used in your application, it's much more convenient
3737
to store them in the ``app/Resources/views/`` directory. For starters, this
@@ -51,7 +51,7 @@ scattered through lots of bundles.
5151

5252
.. best-practice::
5353

54-
Use lowercased snake_case for directory and template names.
54+
Use lowercase snake_case for directory and template names.
5555

5656
.. best-practice::
5757

bundles/best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A namespace becomes a bundle as soon as you add a bundle class to it. The
3737
bundle class name must follow these simple rules:
3838

3939
* Use only alphanumeric characters and underscores;
40-
* Use a StudlyCaps name (i.e. camelCase with the first letter uppercased);
40+
* Use a StudlyCaps name (i.e. camelCase with an uppercase first letter);
4141
* Use a descriptive and short name (no more than two words);
4242
* Prefix the name with the concatenation of the vendor (and optionally the
4343
category namespaces);

components/asset.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ suffix to any asset path::
119119
echo $package->getUrl('image.png');
120120
// result: image.png?v1
121121

122-
In case you want to modify the version format, pass a sprintf-compatible format
123-
string as the second argument of the ``StaticVersionStrategy`` constructor::
122+
In case you want to modify the version format, pass a ``sprintf``-compatible
123+
format string as the second argument of the ``StaticVersionStrategy``
124+
constructor::
124125

125126
// puts the 'version' word before the version value
126127
$package = new Package(new StaticVersionStrategy('v1', '%s?version=%s'));

components/cache/adapters/php_array_cache_adapter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ that is optimized and preloaded into OPcache memory storage::
3434

3535
.. note::
3636

37-
This adapter requires PHP 7.x and should be used with the php.ini setting
38-
``opcache.enable`` on.
37+
This adapter requires PHP 7.x and should be used with the ``php.ini``
38+
setting ``opcache.enable=On``.

components/class_loader/class_loader.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ your classes::
5555
]);
5656

5757
Classes from a sub-namespace or a sub-hierarchy of `PEAR`_ classes can be
58-
looked for in a location list to ease the vendoring of a sub-set of classes
59-
for large projects::
58+
looked for in a location list to ease the splitting a sub-set of classes into
59+
another package for large projects::
6060

6161
$loader->addPrefixes([
6262
'Doctrine\Common' => __DIR__.'/vendor/doctrine/common/lib',

components/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Config Component
66
====================
77

88
The Config component provides several classes to help you find, load,
9-
combine, autofill and validate configuration values of any kind, whatever
9+
combine, fill and validate configuration values of any kind, whatever
1010
their source may be (YAML, XML, INI files, or for instance a database).
1111

1212
Installation

components/console/helpers/processhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ useful information about process status.
99

1010
To display process details, use the :class:`Symfony\\Component\\Console\\Helper\\ProcessHelper`
1111
and run your command with verbosity. For example, running the following code with
12-
a very verbose verbosity (e.g. -vv)::
12+
a very verbose verbosity (e.g. ``-vv``)::
1313

1414
use Symfony\Component\Process\Process;
1515

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ the example above.
237237
Bar Settings
238238
~~~~~~~~~~~~
239239

240-
Amongst the placeholders, ``bar`` is a bit special as all the characters used
240+
Among the placeholders, ``bar`` is a bit special as all the characters used
241241
to display it can be customized::
242242

243243
// the finished part of the bar

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ convenient for passwords::
203203
.. caution::
204204

205205
When you ask for a hidden response, Symfony will use either a binary, change
206-
stty mode or use another trick to hide the response. If none is available,
206+
``stty`` mode or use another trick to hide the response. If none is available,
207207
it will fallback and allow the response to be visible unless you set this
208208
behavior to ``false`` using
209209
:method:`Symfony\\Component\\Console\\Question\\Question::setHiddenFallback`

0 commit comments

Comments
 (0)