Skip to content

Commit

Permalink
Fix: Mark up as code
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 3, 2019
1 parent 3e5dd53 commit fdcc87e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -679,13 +679,13 @@ Choose from the list of available rules:

* **final_public_method_for_abstract_class**

All public methods of abstract classes should be final.
All ``public`` methods of ``abstract`` classes should be ``final``.

*Risky rule: risky when overriding public methods of abstract classes.*
*Risky rule: risky when overriding ``public`` methods of ``abstract`` classes.*

* **final_static_access**

Converts ``static`` access to ``self`` access in final classes.
Converts ``static`` access to ``self`` access in ``final`` classes.

* **fopen_flag_order** [@Symfony:risky, @PhpCsFixer:risky]

Expand Down Expand Up @@ -1775,7 +1775,7 @@ Choose from the list of available rules:

* **self_static_accessor**

Inside a final class or anonymous class ``self`` should be preferred to
Inside a ``final`` class or anonymous class ``self`` should be preferred to
``static``.

* **semicolon_after_instruction** [@Symfony, @PhpCsFixer]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class FinalPublicMethodForAbstractClassFixer extends AbstractFixer
public function getDefinition()
{
return new FixerDefinition(
'All public methods of abstract classes should be final.',
'All `public` methods of `abstract` classes should be `final`.',
[
new CodeSample(
'<?php
Expand All @@ -65,7 +65,7 @@ public function start()
],
'Enforce API encapsulation in an inheritance architecture. '
.'If you want to override a method, use the Template method pattern.',
'Risky when overriding public methods of abstract classes'
'Risky when overriding `public` methods of `abstract` classes'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/ClassNotation/FinalStaticAccessFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class FinalStaticAccessFixer extends AbstractFixer
public function getDefinition()
{
return new FixerDefinition(
'Converts `static` access to `self` access in final classes.',
'Converts `static` access to `self` access in `final` classes.',
[
new CodeSample(
'<?php
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/ClassNotation/SelfStaticAccessorFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class SelfStaticAccessorFixer extends AbstractFixer
public function getDefinition()
{
return new FixerDefinition(
'Inside a final class or anonymous class `self` should be preferred to `static`.',
'Inside a `final` class or anonymous class `self` should be preferred to `static`.',
[
new CodeSample(
'<?php
Expand Down

0 comments on commit fdcc87e

Please sign in to comment.