@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if (self::HOOK_SUBSCRIBE_OWN === $type) { |
138 | 138 | return $this->containsSelfAllowedProvider($moduleName); |
139 | 139 | } |
140 | - $variable = (string)s($type)->slice(5)->append('sByOwner'); |
|
140 | + $variable = (string) s($type)->slice(5)->append('sByOwner'); |
|
141 | 141 | $array = $this->{$variable}; |
142 | 142 | |
143 | 143 | return isset($array[$moduleName]); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | if (!in_array($type, [self::HOOK_SUBSCRIBER, self::HOOK_PROVIDER], true)) { |
149 | 149 | throw new InvalidArgumentException('Only hook_provider and hook_subscriber are valid values.'); |
150 | 150 | } |
151 | - $variable = (string)s($type)->slice(5)->append('sByOwner'); |
|
151 | + $variable = (string) s($type)->slice(5)->append('sByOwner'); |
|
152 | 152 | $array = $this->{$variable}; |
153 | 153 | |
154 | 154 | return array_keys($array); |