Skip to content

Commit f45af36

Browse files
committed
This isn't necessary.
1 parent 0cf7a67 commit f45af36

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/generate.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,7 @@ function( array $matches ) : string {
199199
foreach ( $docblock->getTags() as $i => $tag ) {
200200
$content = '';
201201

202-
if ( method_exists( $tag, 'getVersion' ) ) {
203-
$version = $tag->getVersion();
204-
if ( ! empty( $version ) ) {
205-
$content = $version;
206-
}
207-
} else {
202+
if ( ! method_exists( $tag, 'getVersion' ) ) {
208203
$content = $tag->getDescription();
209204
$content = \WP_Parser\format_description( preg_replace( '#\n\s+#', ' ', $content ) );
210205
}

0 commit comments

Comments
 (0)