1<documentation title="Unnecessary Final Modifiers">
2    <standard>
3    <![CDATA[
4    Methods should not be declared final inside of classes that are declared final.
5    ]]>
6    </standard>
7    <code_comparison>
8        <code title="Valid: A method in a final class is not marked final.">
9        <![CDATA[
10final class Foo
11{
12    public function bar()
13    {
14    }
15}
16        ]]>
17        </code>
18        <code title="Invalid: A method in a final class is also marked final.">
19        <![CDATA[
20final class Foo
21{
22    public <em>final</em> function bar()
23    {
24    }
25}
26        ]]>
27        </code>
28    </code_comparison>
29</documentation>
30