HEX
Server: Apache/2.4.57 (Debian)
System: Linux 8ea768a960b0 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User: www-data (33)
PHP: 8.2.18
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/salesmartly-chat/src/Utils/SaleSmartlyQueryParameters.php
<?php

class SaleSmartlyQueryParameters
{
    /**
     * @param string $key
     * @return bool
     */
    public static function has($key)
    {
        return isset($_GET[$key]);
    }

    /**
     * @param string $key
     * @return string|null
     */
    public static function get($key)
    {
        if (!self::has($key)) {
            return null;
        }

        return sanitize_text_field($_GET[$key]);
    }
}