Skip to content

Commit 623655f

Browse files
committed
Code style fixes
1 parent 1039345 commit 623655f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parsers/class-wxr-parser-regex.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ public function parse( $file ) {
6060
} elseif ( empty( $this->base_blog_url ) ) {
6161
$this->base_blog_url = $this->base_url;
6262
}
63-
63+
6464
foreach ( $multiline_tags as $tag => $handler ) {
6565
// Handle multi-line tags on a singular line
6666
$pos = strpos( $importline, "<$tag>" );
6767
$pos_closing = strpos( $importline, "</$tag>" );
6868
if ( preg_match( '|<' . $tag . '>(.*?)</' . $tag . '>|is', $importline, $matches ) ) {
6969
$result = call_user_func( $handler[1], $matches[1] );
70-
if ( $tag === 'wp:author' && isset( $result['author_login'] ) ) {
70+
if ( 'wp:author' === $tag && isset( $result['author_login'] ) ) {
7171
$this->authors[ $result['author_login'] ] = $result;
7272
} else {
7373
$this->{$handler[0]}[] = $result;
@@ -85,7 +85,7 @@ public function parse( $file ) {
8585
$multiline_content .= trim( substr( $importline, 0, $pos_closing ) );
8686

8787
$result = call_user_func( $handler[1], $multiline_content );
88-
if ( $tag === 'wp:author' && isset( $result['author_login'] ) ) {
88+
if ( 'wp:author' === $tag && isset( $result['author_login'] ) ) {
8989
$this->authors[ $result['author_login'] ] = $result;
9090
} else {
9191
$this->{$handler[0]}[] = $result;

0 commit comments

Comments
 (0)