Skip to content

Commit

Permalink
docs: fix the cookbook_fixers.rst (#6672)
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Oct 31, 2022
1 parent a1a5570 commit 3969f39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/cookbook_fixers.rst
Expand Up @@ -36,7 +36,7 @@ Step by step
------------

For this step-by-step, we are going to create a simple fixer that
removes all comments from the code that are preceded by ';' (semicolon).
removes all comments from the code that are preceded by `;` (semicolon).

We are calling it ``remove_comments`` (code name), or,
``RemoveCommentsFixer`` (class name).
Expand Down Expand Up @@ -263,10 +263,10 @@ First, we need to create one method to describe what this fixer does:
public function getDefinition()
{
return new FixerDefinition(
'Removes all comments of the code that are preceded by ";" (semicolon).', // Trailing dot is important. We thrive to use English grammar properly.
'Removes all comments of the code that are preceded by `;` (semicolon).', // Trailing dot is important. We thrive to use English grammar properly.
[
new CodeSample(
'<?php echo 123; /* Comment */'
"<?php echo 123; /* Comment */\n"
),
]
);
Expand Down Expand Up @@ -442,10 +442,10 @@ So the fixer in the end looks like this:
public function getDefinition()
{
return new FixerDefinition(
'Removes all comments of the code that are preceded by ";" (semicolon).', // Trailing dot is important. We thrive to use English grammar properly.
'Removes all comments of the code that are preceded by `;` (semicolon).', // Trailing dot is important. We thrive to use English grammar properly.
[
new CodeSample(
'<?php echo 123; /* Comment */'
"<?php echo 123; /* Comment */\n"
),
]
);
Expand Down

0 comments on commit 3969f39

Please sign in to comment.