Skip to content

Commit a5d8c67

Browse files
committed
NamingConventions/ValidFunctionName: fix syntax errors in XML doc code examples
This commit fixes two code examples in the XML doc for the `WordPress.NamingConventions.ValidFunctionName` sniff that were missing the `function` keyword when declaring a method.
1 parent 20f3d5e commit a5d8c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WordPress/Docs/NamingConventions/ValidFunctionNameStandard.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ function <em>Prefix_Function_NAME()</em> {}
2424
<code title="Valid: Words separated by underscores.">
2525
<![CDATA[
2626
class My_Class {
27-
public static <em>method_name()</em> {}
27+
public static function <em>method_name()</em> {}
2828
}
2929
]]>
3030
</code>
3131
<code title="Invalid: Using camel case to separate words.">
3232
<![CDATA[
3333
class My_Class {
34-
public static <em>methodName()</em> {}
34+
public static function <em>methodName()</em> {}
3535
}
3636
]]>
3737
</code>

0 commit comments

Comments
 (0)