@@ -60,7 +60,7 @@ |
||
60 | 60 | foreach (ReflectionUtility::getPublicMethodNames($hookClass) as $methodName) { |
61 | 61 | $tagConfiguration = ReflectionUtility::getTagConfigurationForMethod($hookClass, $methodName, ['hook']); |
62 | 62 | if (\count($tagConfiguration['hook']) > 0) { |
63 | - $hookLocations = \array_map(function ($hook) { |
|
63 | + $hookLocations = \array_map(function($hook) { |
|
64 | 64 | return \trim($hook, " \t\n\r\0\x0B|"); |
65 | 65 | }, $tagConfiguration['hook']); |
66 | 66 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $return = false; |
61 | 61 | } else { |
62 | 62 | $classReflection = ReflectionUtility::createReflectionClass($className); |
63 | - $return = !(bool) (!ReflectionUtility::isInstantiable($className) || !$classReflection->isTaggedWith('db')); |
|
63 | + $return = !(bool)(!ReflectionUtility::isInstantiable($className) || !$classReflection->isTaggedWith('db')); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | // if ($registerAutoLoader) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public static function isInstantiable($className):bool |
44 | 44 | { |
45 | - if(self::is9orHigher()) { |
|
45 | + if (self::is9orHigher()) { |
|
46 | 46 | $reflectionClass = new \ReflectionClass($className); |
47 | 47 | return (bool)$reflectionClass->isInstantiable(); |
48 | 48 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | $values = $classReflection->getTagValues($tag); |
141 | 141 | if (\is_array($values)) { |
142 | - return \trim((string) $values[0]); |
|
142 | + return \trim((string)$values[0]); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return false; |