@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | $this->identifier = $identifier; |
| 33 | 33 | $this->type = get_class($this); |
| 34 | - $this->identity_hash = md5($this->getType(). (string)$identifier); |
|
| 34 | + $this->identity_hash = md5($this->getType() . (string) $identifier); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | $cache_key = md5(sprintf('%s:%s', $feature_name, ($requestor) ? $requestor->getIdentityHash() : '')); |
| 78 | - $fallback = function () use ($feature_name, $requestor, $log_context): bool { |
|
| 78 | + $fallback = function() use ($feature_name, $requestor, $log_context): bool { |
|
| 79 | 79 | $feature = $this->feature_set->getFeatureByName($feature_name); |
| 80 | 80 | |
| 81 | 81 | if (!$feature->isEnabled()) { |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | { |
| 57 | 57 | $class_paths = explode('\\', get_class($identity)); |
| 58 | 58 | |
| 59 | - return (string)array_pop($class_paths); |
|
| 59 | + return (string) array_pop($class_paths); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | private function flattenIdCollections(array $requestor_context): array |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct(string $name, bool $enabled, array $rules = []) |
| 29 | 29 | { |
| 30 | - $this->name = $name; |
|
| 31 | - $this->enabled = $enabled; |
|
| 30 | + $this->name = $name; |
|
| 31 | + $this->enabled = $enabled; |
|
| 32 | 32 | |
| 33 | 33 | foreach ($rules as $rule) { |
| 34 | 34 | $this->addRule($rule); |