Skip to content

Commit 1e8f5db

Browse files
committed
[Doc] Emphasize sniff focus for ClassFileName
Adjusts the `<em>` tags in the Squiz.Classes.ClassFileName sniff XML docs to better highlight the parts of the code samples that illustrate the purpose of the sniff.
1 parent cc01a79 commit 1e8f5db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Standards/Squiz/Docs/Classes/ClassFileNameStandard.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<code_comparison>
88
<code title="Valid: Defined class name and filename match.">
99
<![CDATA[
10-
<em>/* ./src/Foo.php contents: */</em>
10+
/* ./src/<em>Foo.php</em> contents: */
1111
12-
class Foo
12+
class <em>Foo</em>
1313
{
1414
}
1515
]]>
1616
</code>
1717
<code title="Invalid: Class name does not match filename.">
1818
<![CDATA[
19-
<em>/* ./src/Foo.php contents: */</em>
19+
/* ./src/<em>Foo.php</em> contents: */
2020
21-
class MyFoo
21+
class <em>MyFoo</em>
2222
{
2323
}
2424
]]>
@@ -27,18 +27,18 @@ class MyFoo
2727
<code_comparison>
2828
<code title="Valid: Class name and filename use the same casing.">
2929
<![CDATA[
30-
<em>/* ./src/MyFoo.php contents: */</em>
30+
/* ./src/<em>MyFoo.php</em> contents: */
3131
32-
class MyFoo
32+
class <em>MyFoo</em>
3333
{
3434
}
3535
]]>
3636
</code>
3737
<code title="Invalid: Class name case does not match filename case.">
3838
<![CDATA[
39-
<em>/* ./src/myFoo.php contents: */</em>
39+
/* ./src/<em>myFoo.php</em> contents: */
4040
41-
class MyFoo
41+
class <em>MyFoo</em>
4242
{
4343
}
4444
]]>

0 commit comments

Comments
 (0)