style: Pint 포맷팅 적용
This commit is contained in:
@@ -61,17 +61,17 @@ public function getParsedOsVersionAttribute(): ?string
|
||||
|
||||
// Android 버전 추출
|
||||
if (preg_match('/Android\s+([\d.]+)/', $this->device_name, $matches)) {
|
||||
return 'Android ' . $matches[1];
|
||||
return 'Android '.$matches[1];
|
||||
}
|
||||
|
||||
// iOS 버전 추출
|
||||
if (preg_match('/iPhone\s+OS\s+([\d_]+)/', $this->device_name, $matches)) {
|
||||
return 'iOS ' . str_replace('_', '.', $matches[1]);
|
||||
return 'iOS '.str_replace('_', '.', $matches[1]);
|
||||
}
|
||||
|
||||
// iPad 버전 추출
|
||||
if (preg_match('/CPU\s+OS\s+([\d_]+)/', $this->device_name, $matches)) {
|
||||
return 'iOS ' . str_replace('_', '.', $matches[1]);
|
||||
return 'iOS '.str_replace('_', '.', $matches[1]);
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -94,6 +94,7 @@ private function parseUserAgent(string $userAgent): string
|
||||
if (($pos = strpos($model, ' Build')) !== false) {
|
||||
$model = substr($model, 0, $pos);
|
||||
}
|
||||
|
||||
return $model ?: 'Android Device';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user