Skip to content

Commit 3ec10f4

Browse files
committed
added browscap comment
Signed-off-by: bidi <bidi@apidemia.com>
1 parent dd6e908 commit 3ec10f4

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/Admin/src/Service/AdminLoginService.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ private function logAdminVisit(array $serverParams, string $name, SuccessFailure
113113
$continent = $this->locationService->getContinent($ipAddress)->getName();
114114
$organization = $this->locationService->getOrganization($ipAddress)->getName();
115115

116-
//check browscap availability
116+
/**
117+
* For browscap information
118+
*
119+
* @see https://www.php.net/manual/en/function.get-browser.php
120+
*/
121+
117122
if (ini_get('browscap')) {
118-
//call browscap
119123
$browser = get_browser($_SERVER['HTTP_USER_AGENT']);
120124
}
121125

122-
//map browscap to AdminLogin
123126
$adminLogin = (new AdminLogin())
124127
->setAdminIp($this->locationService->obfuscateIpAddress($ipAddress))
125128
->setContinent($continent)

0 commit comments

Comments
 (0)