@@ 551-558 (lines=8) @@ | ||
548 | } |
|
549 | ||
550 | // @todo: Reduce scope of $deviceInfoFromDb |
|
551 | protected function detectDeviceModel(array $deviceInfoFromDb) |
|
552 | { |
|
553 | if (!isset($deviceInfoFromDb['modelMatches'])) { |
|
554 | return null; |
|
555 | } |
|
556 | ||
557 | return $this->matchEntity('model', $deviceInfoFromDb['modelMatches'], $this->getUserAgent()); |
|
558 | } |
|
559 | ||
560 | // @todo: temporary duplicated code |
|
561 | protected function detectDeviceModelVersion(array $deviceInfoFromDb) |
|
@@ 561-568 (lines=8) @@ | ||
558 | } |
|
559 | ||
560 | // @todo: temporary duplicated code |
|
561 | protected function detectDeviceModelVersion(array $deviceInfoFromDb) |
|
562 | { |
|
563 | if (!isset($deviceInfoFromDb['modelMatches'])) { |
|
564 | return null; |
|
565 | } |
|
566 | ||
567 | return $this->matchEntity('version', $deviceInfoFromDb['modelMatches'], $this->getUserAgent()); |
|
568 | } |
|
569 | ||
570 | protected function detectBrowserModel(array $browserInfoFromDb) |
|
571 | { |