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' ); } - }