Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7398654
UselessOverridingMethodStandard.xml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
707 B
Referenced Files
None
Subscribers
None
UselessOverridingMethodStandard.xml
View Options
<documentation
title=
"Useless Overriding Methods"
>
<standard>
<![CDATA[
Methods should not be defined that only call the parent method.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: A method that extends functionality on a parent method."
>
<![CDATA[
final class Foo
{
public function bar()
{
parent::bar();
<em>
$
this->doSomethingElse();</em>
}
}
]]>
</code>
<code
title=
"Invalid: An overriding method that only calls the parent."
>
<![CDATA[
final class Foo
{
public function bar()
{
<em>parent::bar();</em>
}
}
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 15:26 (4 h, 35 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4e/3c/7ebef8452ff80439938c1503c5a7
Default Alt Text
UselessOverridingMethodStandard.xml (707 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment