From b501d5b104c2dc182a28fa4bade1600d9f0e5ede Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 26 Feb 2024 18:22:16 +0530 Subject: [PATCH] fixinf linting issues --- includes/Listeners/Admin.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/includes/Listeners/Admin.php b/includes/Listeners/Admin.php index 1269f92..fb2adc7 100644 --- a/includes/Listeners/Admin.php +++ b/includes/Listeners/Admin.php @@ -47,16 +47,16 @@ public function view() { /** * Login - * - * @param String $user_login username - * - * @param WP_User $user logged in user info - * + * + * @param String $user_login username + * + * @param WP_User $user logged in user info + * * @return void */ public function login( $user_login, $user ) { - $is_admin = array_key_exists( "administrator", $user->get_role_caps() ); - if( ( $is_admin && $user->get_role_caps()["administrator"]) || ( $user->get_role_caps() && $user->get_role_caps()["manage_options"] ) ) { + $is_admin = array_key_exists( 'administrator', $user->get_role_caps() ); + if ( ( $is_admin && $user->get_role_caps()['administrator']) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) { $this->push( 'login' ); } } @@ -69,5 +69,4 @@ public function login( $user_login, $user ) { public function logout() { $this->push( 'logout' ); } - }