File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Standards/Generic/Docs/CodeAnalysis Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- <documentation title =" Useless Overriding Methods " >
1
+ <documentation title =" Useless Overriding Method " >
2
2
<standard >
3
3
<![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.
5
5
]]>
6
6
</standard >
7
7
<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." >
9
9
<![CDATA[
10
- final class Foo
10
+ final class Foo extends Baz
11
11
{
12
12
public function bar()
13
13
{
@@ -17,9 +17,9 @@ final class Foo
17
17
}
18
18
]]>
19
19
</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 ." >
21
21
<![CDATA[
22
- final class Foo
22
+ final class Foo extends Baz
23
23
{
24
24
public function bar()
25
25
{
You can’t perform that action at this time.
0 commit comments