Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Decorators/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: BrowserDecorator.php

Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Decorators/BrowserDecorator.php

Size: 1.08 KB

Permissions: 0644

<?php

namespace WP_Statistics\Decorators;

use WP_Statistics\Service\Analytics\DeviceDetection\DeviceHelper;
use WP_STATISTICS\Helper;

class BrowserDecorator
{
    private $visitor;

    public function __construct($visitor)
    {
        $this->visitor = $visitor;
    }

    /**
     * Returns the raw agent value.
     *
     * @return string
     */
    public function getRaw()
    {
        return \WP_STATISTICS\Admin_Template::unknownToNotSet($this->visitor->agent) ?? null;
    }

    /**
     * Get the browser name.
     *
     * @return string
     */
    public function getName()
    {
        return \WP_STATISTICS\Admin_Template::unknownToNotSet($this->visitor->agent);
    }

    /**
     * Get the browser logo URL.
     *
     * @return string
     */
    public function getLogo()
    {
        return DeviceHelper::getBrowserLogo($this->visitor->agent);
    }

    /**
     * Get the browser version used by the visitor.
     *
     * @return string|null
     */
    public function getVersion()
    {
        return Helper::getMajorVersionOnly($this->visitor->version) ?? null;
    }
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager