mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-07 11:15:44 +03:00
Plugin: Fix all phpcs errors
This includes autofixes, along with some manual fixes; mostly syntax-related. Some `phpcs:ignore` comments were added for overzealous rules that don't apply.
This commit is contained in:
parent
e1909dfccf
commit
42d44f7dc9
10 changed files with 65 additions and 69 deletions
|
@ -38,6 +38,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
$user = get_user_by( 'id', $entry['user_id'] );
|
||||
|
||||
if ( $user ) {
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- sanitize_user prevents unsafe characters.
|
||||
echo sanitize_user( $user->user_login );
|
||||
} elseif ( ! empty( $entry['user_id'] ) ) {
|
||||
echo esc_html( $entry['user_id'] );
|
||||
|
@ -52,9 +53,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
<?php else : ?>
|
||||
|
||||
<p>
|
||||
There are no log entries.
|
||||
</p>
|
||||
<p>There are no log entries.</p>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue