private function isLoginPage(Action $action): bool
    {
        $loginUrl = trim(Url::to(Yii::$app->user->loginUrl), '/');

        if (Yii::$app->user->isGuest && $action->getUniqueId() === $loginUrl) {
            return true;
        }

        return false;
    }
private function isLoginPage(Action $action): bool
    {
        $loginUrl = trim(Url::to(Yii::$app->user->loginUrl), '/');

        if (Yii::$app->user->isGuest && $action->getUniqueId() === $loginUrl) {
            return true;
        }

        return false;
    }
private function isLoginPage ( Action $ action ) : bool { $ loginUrl = trim ( Url :: to ( Yii :: $ app -> user -> loginUrl ) , '/' ) ; if ( Yii :: $ app -> user -> isGuest && $ action -> getUniqueId ( ) === $ loginUrl ) { return true ; } return false ; }
Returns a value indicating whether a current url equals `loginUrl` property of the User component

@param Action $action

@return bool
Returns a value indicating whether a current url equals loginUrl property of the User component