Fix registration bug
This commit is contained in:
parent
eb764871db
commit
cddc40449a
2 changed files with 8 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 863a512cd8c8c3e48e924ae4c4bb17f668309422
|
||||
Subproject commit a54ce32b481e59c5b3304e8907767ed6791a959c
|
|
@ -77,10 +77,14 @@ class Detector
|
|||
*/
|
||||
public function getDevice(): array
|
||||
{
|
||||
$deviceName = $this->getDetector()->getDeviceName();
|
||||
$deviceBrand = $this->getDetector()->getBrandName();
|
||||
$deviceModel = $this->getDetector()->getModel();
|
||||
|
||||
return [
|
||||
'deviceName' => $this->getDetector()->getDeviceName(),
|
||||
'deviceBrand' => $this->getDetector()->getBrandName(),
|
||||
'deviceModel' => $this->getDetector()->getModel(),
|
||||
'deviceName' => empty($deviceName) ? null : $deviceName,
|
||||
'deviceBrand' => empty($deviceBrand) ? null : $deviceBrand,
|
||||
'deviceModel' => empty($deviceModel) ? null : $deviceModel,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue