Skip to content

Commit 1ba43eb

Browse files
committed
rename badly named function
1 parent 43f74fd commit 1ba43eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/Configurations/Config.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function __construct(array $config)
2727
}
2828

2929
/**
30-
* Using a random 0 - 100 number or a 0 - 100 number hashed from an id,
30+
* Using a random 0 - 99 number or a 0 - 99 number hashed from an id,
3131
* Select the variant where this random or hashed integer falls within it's
3232
* calculated integer range.
3333
*/
34-
public function pickVariantOutOfHat(string $id): string
34+
public function getEnabledVariant(string $id): string
3535
{
3636
$hashOrRandomNumber = $this->bucketing->strToIntHash($id);
3737

Diff for: src/Features.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ public function getEnabledVariant(
5252
string $id = ''
5353
): string
5454
{
55-
return $this->features->get($featureName)->pickVariantOutOfHat($id);
55+
return $this->features->get($featureName)->getEnabledVariant($id);
5656
}
5757
}

0 commit comments

Comments
 (0)