From 01373f312dae63f0dd0b31fba43dcd44867b23d9 Mon Sep 17 00:00:00 2001 From: himanshupathak95 Date: Mon, 23 Dec 2024 08:49:19 +0530 Subject: [PATCH] Login/out: Fix php linting --- packages/block-library/src/loginout/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/block-library/src/loginout/index.php b/packages/block-library/src/loginout/index.php index ea7ba7b869db21..316211c87da56a 100644 --- a/packages/block-library/src/loginout/index.php +++ b/packages/block-library/src/loginout/index.php @@ -26,13 +26,13 @@ function render_block_core_loginout( $attributes ) { ); // If display as button is enabled, wrap the link in button classes - if ( ! empty( $attributes['displayAsButton'] ) ) { - $classes .= ' wp-block-button'; - $contents = sprintf( - '', - $contents - ); - } + if ( ! empty( $attributes['displayAsButton'] ) ) { + $classes .= ' wp-block-button'; + $contents = sprintf( + '', + $contents + ); + } // If logged-out and displayLoginAsForm is true, show the login form. if ( ! is_user_logged_in() && ! empty( $attributes['displayLoginAsForm'] ) ) {