Skip to content

Commit 15d095c

Browse files
authored
Merge pull request #4 from techoner/analysis-8QJb0o
Apply fixes from StyleCI
2 parents 59a463f + 5d20bf6 commit 15d095c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/model/OperationLog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public function browserInfo($user_agent = null)
6262

6363
// finally get the correct version number
6464
// Added "|:"
65-
$known = array('Version', $ub, 'other');
66-
$pattern = '#(?<browser>'.join('|', $known).')[/|: ]+(?<version>[0-9.|a-zA-Z.]*)#';
65+
$known = ['Version', $ub, 'other'];
66+
$pattern = '#(?<browser>'.implode('|', $known).')[/|: ]+(?<version>[0-9.|a-zA-Z.]*)#';
6767
if (!preg_match_all($pattern, $user_agent, $matches)) {
6868
// we have no matching number just continue
6969
}
@@ -87,12 +87,12 @@ public function browserInfo($user_agent = null)
8787
$version = '?';
8888
}
8989

90-
return array(
90+
return [
9191
'userAgent' => $user_agent,
9292
'name' => $bname,
9393
'version' => $version,
9494
'platform' => $platform,
9595
'pattern' => $pattern,
96-
);
96+
];
9797
}
9898
}

0 commit comments

Comments
 (0)