@@ -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()) { |
@@ -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 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | |
27 | 27 | protected function childCanBeSatisfied(?RequestorInterface $requestor = null): bool |
28 | 28 | { |
29 | - return $this->requestorHasMatchingId( $this->userId, $requestor ); |
|
29 | + return $this->requestorHasMatchingId($this->userId, $requestor); |
|
30 | 30 | } |
31 | 31 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | protected function requestorHasMatchingId( |
60 | 60 | Identification\IdentificationInterface $identification, |
61 | - ?RequestorInterface $requestor = null |
|
61 | + ?RequestorInterface $requestor = null |
|
62 | 62 | ): bool { |
63 | 63 | if (!$requestor) { |
64 | 64 | return false; |
@@ -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 | } |
@@ -23,6 +23,6 @@ |
||
23 | 23 | |
24 | 24 | protected function childCanBeSatisfied(?RequestorInterface $requestor = null): bool |
25 | 25 | { |
26 | - return $this->requestorHasMatchingId( $this->hash, $requestor ); |
|
26 | + return $this->requestorHasMatchingId($this->hash, $requestor); |
|
27 | 27 | } |
28 | 28 | } |
@@ -23,6 +23,6 @@ |
||
23 | 23 | |
24 | 24 | protected function childCanBeSatisfied(?RequestorInterface $requestor = null): bool |
25 | 25 | { |
26 | - return $this->requestorHasMatchingId( $this->environment, $requestor ); |
|
26 | + return $this->requestorHasMatchingId($this->environment, $requestor); |
|
27 | 27 | } |
28 | 28 | } |
@@ -23,6 +23,6 @@ |
||
23 | 23 | |
24 | 24 | protected function childCanBeSatisfied(?RequestorInterface $requestor = null): bool |
25 | 25 | { |
26 | - return $this->requestorHasMatchingId( $this->pipedComposite, $requestor ); |
|
26 | + return $this->requestorHasMatchingId($this->pipedComposite, $requestor); |
|
27 | 27 | } |
28 | 28 | } |