Skip to content

Commit 2baaf29

Browse files
authored
Merge pull request #38 from greg0ire/from_prefix_to_suffix
Forbid prefix too
2 parents be7096f + 48a4d20 commit 2baaf29

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/en/reference/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ exceptions/differences/extensions.
88

99
- Keep the nesting of control structures per method as small as possible
1010
- Abstract exception class names and exception interface names should be suffixed with ``Exception``
11-
- Abstract classes should not be prefixed with ``Abstract``
12-
- Interfaces should not be suffixed with ``Interface``
13-
- Concrete exception class names should not be suffixed with ``Exception``
11+
- Abstract classes should not be prefixed or suffixed with ``Abstract``
12+
- Interfaces should not be prefixed or suffixed with ``Interface``
13+
- Concrete exception class names should not be prefixed or suffixed with ``Exception``
1414
- Align equals (``=``) signs in assignments
1515
- Add spaces around a concatenation operator ``$foo = 'Hello ' . 'World!';``
1616
- Add spaces between assignment, control and return statements

lib/Doctrine/ruleset.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@
130130
</rule>
131131
<!-- Forbid dead code -->
132132
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
133-
<!-- Forbid suffix "Abstract" for abstract classes -->
133+
<!-- Forbid prefix and suffix "Abstract" for abstract classes -->
134134
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
135-
<!-- Forbid suffix "Exception" for exception classes -->
135+
<!-- Forbid prefix and suffix "Exception" for exception classes -->
136136
<rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>
137-
<!-- Forbid suffix "Interface" for interfaces -->
137+
<!-- Forbid prefix and suffix "Interface" for interfaces -->
138138
<rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
139139
<!-- Forbid suffix "Trait" for interfaces -->
140140
<rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>

0 commit comments

Comments
 (0)