From dc07ff4f6ac85cd6ae3cbf3503752c9c5ffc74ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 Jun 2021 12:22:47 +0200 Subject: [PATCH] Mark `\wcf\util\UserAgent` as final --- .../install/files/lib/util/UserAgent.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/util/UserAgent.class.php b/wcfsetup/install/files/lib/util/UserAgent.class.php index 00e424e284..9183975049 100644 --- a/wcfsetup/install/files/lib/util/UserAgent.class.php +++ b/wcfsetup/install/files/lib/util/UserAgent.class.php @@ -11,27 +11,27 @@ namespace wcf\util; * @package WoltLabSuite\Core\Util * @since 5.4 */ -class UserAgent +final class UserAgent { /** * @var string */ - protected $userAgent; + private $userAgent; /** * @var ?string */ - protected $browser; + private $browser; /** * @var ?string */ - protected $browserVersion; + private $browserVersion; /** * @var ?string */ - protected $os; + private $os; public function __construct(string $userAgent) { @@ -44,7 +44,7 @@ class UserAgent /** * Detects the browser on the basis of the user agent. */ - protected function detectBrowser(): void + private function detectBrowser(): void { // lunascape if (\preg_match('~lunascape[ /]([\d\.]+)~i', $this->userAgent, $match)) { @@ -314,7 +314,7 @@ class UserAgent /** * Detects the OS on the basis of the user agent. */ - protected function detectOs(): void + private function detectOs(): void { // iOS if (\preg_match('/iphone/i', $this->userAgent)) { -- 2.20.1