Utils::hasActivePro(), 'configured' => '' !== $rankifyGscClientId && '' !== $rankifyGscSecret, 'clientId' => $rankifyGscClientId, 'secret' => $rankifyGscSecret, 'redirectUri' => admin_url('admin.php?page=rankify-settings'), 'connected' => false, 'property' => trim((string) Utils::getSetting('searchConsoleProperty')), 'canEncrypt' => function_exists('openssl_encrypt'), 'error' => '', 'sites' => [], 'report' => ['state' => 'disconnected'], 'notice' => null, 'sitemapUrl' => home_url('/sitemap.xml'), ]; } $rankifyGscReport = is_array($rankifyGsc['report'] ?? null) ? $rankifyGsc['report'] : ['state' => 'disconnected']; $rankifyGscSummary = $rankifyGscReport['summary'] ?? ['clicks' => null, 'impressions' => null, 'ctr' => null, 'position' => null]; $rankifyGscHasNumbers = in_array($rankifyGscReport['state'] ?? '', ['ready', 'empty'], true); $rankifyGscFormat = static function ($value, $decimals = 0) { if (null === $value || '' === $value) { return '—'; } return number_format_i18n((float) $value, $decimals); }; ?>