Merge pull request #1988 from charithesh16/feat-database-indexing

Fixes PSR issues for Detector Library
This commit is contained in:
Christy Jacob 2021-10-07 14:28:19 +05:30 committed by GitHub
commit d6c17d309d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ class Detector
/** /**
* Get OS info * Get OS info
* *
* @return array * @return array
*/ */
public function getOS(): array public function getOS(): array
@ -42,7 +42,7 @@ class Detector
/** /**
* Get client info * Get client info
* *
* @return array * @return array
*/ */
public function getClient(): array public function getClient(): array
@ -61,7 +61,7 @@ class Detector
/** /**
* Get device info * Get device info
* *
* @return array * @return array
*/ */
public function getDevice(): array public function getDevice(): array
@ -78,7 +78,7 @@ class Detector
*/ */
protected function getDetector(): DeviceDetector protected function getDetector(): DeviceDetector
{ {
if(!$this->detctor) { if (!$this->detctor) {
$this->detctor = new DeviceDetector($this->userAgent); $this->detctor = new DeviceDetector($this->userAgent);
$this->detctor->skipBotDetection(); // OPTIONAL: If called, bot detection will completely be skipped (bots will be detected as regular devices then) $this->detctor->skipBotDetection(); // OPTIONAL: If called, bot detection will completely be skipped (bots will be detected as regular devices then)
$this->detctor->parse(); $this->detctor->parse();