Skip to content

Commit 8daff05

Browse files
author
Sven Ludwig
committed
fix typos in README
1 parent 74666dc commit 8daff05

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ NOTE: the output for the following formats are generated in accordance with XML
167167
* ``checkstyle`` follows the common `"checkstyle" xml schema </doc/checkstyle.xsd>`_
168168

169169

170-
The ``--verbose`` option will show the applied rules. When using the ``txt`` format it will also displays progress notifications.
170+
The ``--verbose`` option will show the applied rules. When using the ``txt`` format it will also display progress notifications.
171171

172-
The ``--rules`` option limits the rules to apply on the
172+
The ``--rules`` option limits the rules to apply to the
173173
project:
174174

175175
.. code-block:: bash
@@ -214,7 +214,7 @@ The ``--diff-format`` option allows to specify in which format the fixer should
214214
* ``sbd``: Sebastianbergmann/diff format (default when using `--diff` without specifying `diff-format`).
215215

216216
The ``--allow-risky`` option (pass ``yes`` or ``no``) allows you to set whether risky rules may run. Default value is taken from config file.
217-
Risky rule is a rule, which could change code behaviour. By default no risky rules are run.
217+
A rule is considered risky if it could change code behaviour. By default no risky rules are run.
218218

219219
The ``--stop-on-violation`` flag stops the execution upon first file that needs to be fixed.
220220

@@ -1505,7 +1505,7 @@ Choose from the list of available rules:
15051505
Classes must be in a path that matches their namespace, be at least one
15061506
namespace deep and the class name should match the file name.
15071507

1508-
*Risky rule: this fixer may change your class name, which will break the code that is depended on old name.*
1508+
*Risky rule: this fixer may change your class name, which will break the code that depends on the old name.*
15091509

15101510
Configuration options:
15111511

@@ -1516,7 +1516,7 @@ Choose from the list of available rules:
15161516

15171517
Class names should match the file name.
15181518

1519-
*Risky rule: this fixer may change your class name, which will break the code that is depended on old name.*
1519+
*Risky rule: this fixer may change your class name, which will break the code that depends on the old name.*
15201520

15211521
* **random_api_migration** [@PHP70Migration:risky, @PHP71Migration:risky]
15221522

src/Console/Command/HelpCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public static function getHelpCopy()
7272
* ``checkstyle`` follows the common `"checkstyle" xml schema </doc/checkstyle.xsd>`_
7373
7474
75-
The <comment>--verbose</comment> option will show the applied rules. When using the ``txt`` format it will also displays progress notifications.
75+
The <comment>--verbose</comment> option will show the applied rules. When using the ``txt`` format it will also display progress notifications.
7676
77-
The <comment>--rules</comment> option limits the rules to apply on the
77+
The <comment>--rules</comment> option limits the rules to apply to the
7878
project:
7979
8080
<info>$ php %command.full_name% /path/to/project --rules=@PSR2</info>
@@ -109,7 +109,7 @@ public static function getHelpCopy()
109109
* <comment>sbd</comment>: Sebastianbergmann/diff format (default when using `--diff` without specifying `diff-format`).
110110
111111
The <comment>--allow-risky</comment> option (pass ``yes`` or ``no``) allows you to set whether risky rules may run. Default value is taken from config file.
112-
Risky rule is a rule, which could change code behaviour. By default no risky rules are run.
112+
A rule is considered risky if it could change code behaviour. By default no risky rules are run.
113113
114114
The <comment>--stop-on-violation</comment> flag stops the execution upon first file that needs to be fixed.
115115

src/Fixer/Basic/Psr0Fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class InvalidName {}
5454
),
5555
],
5656
null,
57-
'This fixer may change your class name, which will break the code that is depended on old name.'
57+
'This fixer may change your class name, which will break the code that depends on the old name.'
5858
);
5959
}
6060

src/Fixer/Basic/Psr4Fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class InvalidName {}
4343
),
4444
],
4545
null,
46-
'This fixer may change your class name, which will break the code that is depended on old name.'
46+
'This fixer may change your class name, which will break the code that depends on the old name.'
4747
);
4848
}
4949

0 commit comments

Comments
 (0)