We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e17b52 commit 31842e8Copy full SHA for 31842e8
1 file changed
src/Codeception/Util/sq.php
@@ -3,8 +3,12 @@
3
4
function sq($id = null)
5
{
6
- if ($id and isset(Sequence::$hash[$id])) return Sequence::$hash[$id];
7
- $sequence = '_'.uniqid();
8
- if ($id) Sequence::$hash[$id] = $sequence;
+ if ($id and isset(Sequence::$hash[$id])) {
+ return Sequence::$hash[$id];
+ }
9
+ $sequence = '_' . uniqid();
10
+ if ($id) {
11
+ Sequence::$hash[$id] = $sequence;
12
13
return $sequence;
14
}
0 commit comments