Skip to content

Commit 31842e8

Browse files
committed
figing code standard and some refactorings
1 parent 3e17b52 commit 31842e8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/Codeception/Util/sq.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33

44
function sq($id = null)
55
{
6-
if ($id and isset(Sequence::$hash[$id])) return Sequence::$hash[$id];
7-
$sequence = '_'.uniqid();
8-
if ($id) Sequence::$hash[$id] = $sequence;
6+
if ($id and isset(Sequence::$hash[$id])) {
7+
return Sequence::$hash[$id];
8+
}
9+
$sequence = '_' . uniqid();
10+
if ($id) {
11+
Sequence::$hash[$id] = $sequence;
12+
}
913
return $sequence;
1014
}

0 commit comments

Comments
 (0)