@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct(string $name, bool $enabled, array $rules = []) |
26 | 26 | { |
27 | - $this->name = $name; |
|
27 | + $this->name = $name; |
|
28 | 28 | $this->enabled = $enabled; |
29 | 29 | |
30 | 30 | foreach ($rules as $rule) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | $cache_key = md5(sprintf('%s:%s', $featureName, ($requestor) ? $requestor->getIdentityHash() : '')); |
67 | - $fallback = function () use ($featureName, $requestor, $logContext): bool { |
|
67 | + $fallback = function() use ($featureName, $requestor, $logContext): bool { |
|
68 | 68 | $feature = $this->featureSet->getFeatureByName($featureName); |
69 | 69 | |
70 | 70 | if (!$feature->isEnabled()) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function __construct(string $timeAfter, Utilities\Time $timeUtility = null) |
17 | 17 | { |
18 | 18 | $this->timeUtility = $timeUtility ?? new Utilities\Time(); |
19 | - $this->timeAfter = $this->timeUtility->getImmutableDateTime($timeAfter); |
|
19 | + $this->timeAfter = $this->timeUtility->getImmutableDateTime($timeAfter); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function getValue() |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected function validate($value): void |
10 | 10 | { |
11 | - if (!$value || mb_strpos((string)$value, '|') === false) { |
|
11 | + if (!$value || mb_strpos((string) $value, '|') === false) { |
|
12 | 12 | throw new \InvalidArgumentException("{$value} is not a pipe delimited composite"); |
13 | 13 | } |
14 | 14 | } |
@@ -53,6 +53,6 @@ |
||
53 | 53 | |
54 | 54 | private static function createIdentityHash(IdentificationInterface $identification): string |
55 | 55 | { |
56 | - return md5($identification->getType() . (string)$identification->getIdentifier()); |
|
56 | + return md5($identification->getType() . (string) $identification->getIdentifier()); |
|
57 | 57 | } |
58 | 58 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | protected function childCanBeSatisfied(RequestorInterface $requestor = null): bool |
20 | 20 | { |
21 | 21 | return ($this->randomizer->generateRangedRandomInt(1, 100) |
22 | - === $this->randomizer->generateRangedRandomInt(1, 100)); |
|
22 | + === $this->randomizer->generateRangedRandomInt(1, 100)); |
|
23 | 23 | } |
24 | 24 | } |