Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<documentation title="Useless Overriding Methods">
<documentation title="Useless Overriding Method">
<standard>
<![CDATA[
Methods should not be defined that only call the parent method.
It is discouraged to override a method if the overriding method only calls the parent method.
]]>
</standard>
<code_comparison>
<code title="Valid: A method that extends functionality on a parent method.">
<code title="Valid: A method that extends functionality of a parent method.">
<![CDATA[
final class Foo
final class Foo extends Baz
{
public function bar()
{
Expand All @@ -17,9 +17,9 @@ final class Foo
}
]]>
</code>
<code title="Invalid: An overriding method that only calls the parent.">
<code title="Invalid: An overriding method that only calls the parent method.">
<![CDATA[
final class Foo
final class Foo extends Baz
{
public function bar()
{
Expand Down