Skip to content

Commit 1593b89

Browse files
dmsnellockham
authored andcommitted
Adjust styling to avoid using PHPDoc syntax
1 parent 266012f commit 1593b89

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/wp-includes/html-api/class-wp-html-active-formatting-elements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function remove_node( $token ) {
148148
* > EM -> STRONG -> A ->
149149
*
150150
* To start with the most-recently added element and walk towards the top,
151-
* {@see WP_HTML_Active_Formatting_Elements::walk_up}.
151+
* see WP_HTML_Active_Formatting_Elements::walk_up().
152152
*
153153
* @since 6.4.0
154154
*/
@@ -175,7 +175,7 @@ public function walk_down() {
175175
* > A -> STRONG -> EM ->
176176
*
177177
* To start with the first added element and walk towards the bottom,
178-
* {@see WP_HTML_Active_Formatting_Elements::walk_down}.
178+
* see WP_HTML_Active_Formatting_Elements::walk_down().
179179
*
180180
* @since 6.4.0
181181
*/

src/wp-includes/html-api/class-wp-html-open-elements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function remove_node( $token ) {
334334
* > EM -> STRONG -> A ->
335335
*
336336
* To start with the most-recently added element and walk towards the top,
337-
* {@see WP_HTML_Open_Elements::walk_up}.
337+
* see WP_HTML_Open_Elements::walk_up().
338338
*
339339
* @since 6.4.0
340340
*/
@@ -361,7 +361,7 @@ public function walk_down() {
361361
* > A -> STRONG -> EM ->
362362
*
363363
* To start with the first added element and walk towards the bottom,
364-
* {@see WP_HTML_Open_Elements::walk_down}.
364+
* see WP_HTML_Open_Elements::walk_down().
365365
*
366366
* @since 6.4.0
367367
*/

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* unsupported markup, it aborts early to avoid unintentionally breaking
1717
* the document. The HTML Processor should never break an HTML document.
1818
*
19-
* While the {@see WP_HTML_Tag_Processor} is a valuable tool for modifying
19+
* While the `WP_HTML_Tag_Processor` is a valuable tool for modifying
2020
* attributes on individual HTML tags, the HTML Processor is more capable
2121
* and useful for the following operations:
2222
*
@@ -47,7 +47,7 @@
4747
*
4848
* Breadcrumbs represent the stack of open elements from the root
4949
* of the document or fragment down to the currently-matched node,
50-
* if one is currently selected. Call {@see WP_HTML_Processor::get_breadcrumbs}
50+
* if one is currently selected. Call WP_HTML_Processor::get_breadcrumbs()
5151
* to inspect the breadcrumbs for a matched tag.
5252
*
5353
* Breadcrumbs can specify nested HTML structure and are equivalent
@@ -121,6 +121,7 @@
121121
*
122122
* @since 6.4.0
123123
*
124+
* @see WP_HTML_Tag_Processor
124125
* @see https://html.spec.whatwg.org/
125126
*/
126127
class WP_HTML_Processor extends WP_HTML_Tag_Processor {
@@ -926,10 +927,11 @@ private function generate_implied_end_tags( $except_for_this_element = null ) {
926927
* Closes elements that have implied end tags, thoroughly.
927928
*
928929
* See the HTML specification for an explanation why this is
929-
* different from {@see WP_HTML_Processor::generate_implied_end_tags}.
930+
* different from generating end tags in the normal sense.
930931
*
931932
* @since 6.4.0
932933
*
934+
* @see WP_HTML_Processor::generate_implied_end_tags
933935
* @see https://html.spec.whatwg.org/#generate-implied-end-tags
934936
*/
935937
private function generate_implied_end_tags_thoroughly() {
@@ -1306,7 +1308,7 @@ public static function is_void( $tag_name ) {
13061308
/**
13071309
* Unlock code that must be passed into the constructor to create this class.
13081310
*
1309-
* This class extends {@see WP_HTML_Tag_Processor}, which has a public class
1311+
* This class extends the WP_HTML_Tag_Processor, which has a public class
13101312
* constructor. Therefore, it's not possible to have a private constructor here.
13111313
*
13121314
* This unlock code is used to ensure that anyone calling the constructor is

src/wp-includes/html-api/class-wp-html-token.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ class WP_HTML_Token {
3636
/**
3737
* Name of node; lowercase names such as "marker" are not HTML elements.
3838
*
39-
* For HTML elements/tags this value should come from {@see WP_HTML_Processor::get_tag}.
39+
* For HTML elements/tags this value should come from WP_HTML_Processor::get_tag().
4040
*
4141
* @since 6.4.0
4242
*
43+
* @see WP_HTML_Processor::get_tag()
44+
*
4345
* @var string
4446
*/
4547
public $node_name = null;

0 commit comments

Comments
 (0)