Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Dec 8, 2024
1 parent 4ab4c9d commit c031274
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion includes/class-avatar-store.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static function store_avatar( $comment_id ) {
if ( empty( $author ) ) {
return false;
}
$host = webmention_extract_domain( get_url_from_webmention( $comment ) );
$host = webmention_extract_domain( get_url_from_webmention( $comment ) );
$avatar_url = self::sideload_avatar( $avatar, $host, $author );

if ( $avatar_url ) {
Expand Down
3 changes: 2 additions & 1 deletion templates/webmention-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>" class="dt-published dt-updated published updated">
<?php
/* translators: 1: date, 2: time */
printf( esc_html__( '%1$s at %2$s', 'webmention' ), get_comment_date(), get_comment_time() ); ?>
printf( esc_html__( '%1$s at %2$s', 'webmention' ), get_comment_date(), get_comment_time() );
?>
</time></a>
<ul>
<?php if ( $target ) { ?>
Expand Down
6 changes: 3 additions & 3 deletions templates/webmention-comments.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
$mentions = get_comments(
array(
'post_id' => get_the_ID(),
'type__in' => get_webmention_comment_type_names(),
'status' => 'approve',
'post_id' => get_the_ID(),
'type__in' => get_webmention_comment_type_names(),
'status' => 'approve',
)
);

Expand Down
4 changes: 2 additions & 2 deletions tests/test-webmention.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
class Webmention_Test extends WP_UnitTestCase {
public function test_remove_sl() {
public function test_remove_sl() {
\Webmention\remove_semantic_linkbacks();

$this->assertEquals( true, true );
}
}
}

0 comments on commit c031274

Please sign in to comment.