Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 9292f91

Browse files
committed
Fixed styling issues
1 parent e1bee47 commit 9292f91

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/DeviceDetector.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,10 @@ private static function checkWindowsPhone(Device $device, UserAgent $userAgent)
8787
*/
8888
private static function checkSamsungPhone(Device $device, UserAgent $userAgent)
8989
{
90-
if (preg_match('/SAMSUNG SM-([^ ]*)/i', $userAgent->getUserAgentString(), $matches)) {
91-
$device->setName(str_ireplace('SAMSUNG', 'Samsung', $matches[0]));
92-
return true;
93-
}
94-
90+
if (preg_match('/SAMSUNG SM-([^ ]*)/i', $userAgent->getUserAgentString(), $matches)) {
91+
$device->setName(str_ireplace('SAMSUNG', 'Samsung', $matches[0]));
92+
return true;
93+
}
9594
return false;
9695
}
9796
}

0 commit comments

Comments
 (0)