Skip to content

Commit 835d578

Browse files
authored
Merge pull request #922 from rodrigoprimo/documentation-useless-overriding-method-minor-fix
Generic/UselessOverridingMethod: improve XML documentation
2 parents 049b27d + 52dd82b commit 835d578

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Standards/Generic/Docs/CodeAnalysis/UselessOverridingMethodStandard.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<documentation title="Useless Overriding Methods">
1+
<documentation title="Useless Overriding Method">
22
<standard>
33
<![CDATA[
4-
Methods should not be defined that only call the parent method.
4+
It is discouraged to override a method if the overriding method only calls the parent method.
55
]]>
66
</standard>
77
<code_comparison>
8-
<code title="Valid: A method that extends functionality on a parent method.">
8+
<code title="Valid: A method that extends functionality of a parent method.">
99
<![CDATA[
10-
final class Foo
10+
final class Foo extends Baz
1111
{
1212
public function bar()
1313
{
@@ -17,9 +17,9 @@ final class Foo
1717
}
1818
]]>
1919
</code>
20-
<code title="Invalid: An overriding method that only calls the parent.">
20+
<code title="Invalid: An overriding method that only calls the parent method.">
2121
<![CDATA[
22-
final class Foo
22+
final class Foo extends Baz
2323
{
2424
public function bar()
2525
{

0 commit comments

Comments
 (0)