@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param string $className |
80 | 80 | * @param string $tag |
81 | 81 | * |
82 | - * @return string|bool |
|
82 | + * @return false|string |
|
83 | 83 | */ |
84 | 84 | public static function getFirstTagValue(string $className, string $tag) |
85 | 85 | { |
@@ -111,9 +111,9 @@ discard block |
||
111 | 111 | * |
112 | 112 | * @param string $className |
113 | 113 | * @param $methodName |
114 | - * @param array $tagNames |
|
114 | + * @param string[] $tagNames |
|
115 | 115 | * |
116 | - * @return array |
|
116 | + * @return string |
|
117 | 117 | */ |
118 | 118 | public static function getTagConfigurationForMethod($className, $methodName, array $tagNames): array |
119 | 119 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * Get the tag configuration from this method and respect multiple line and space configuration. |
142 | 142 | * |
143 | 143 | * @param string $className |
144 | - * @param array $tagNames |
|
144 | + * @param string[] $tagNames |
|
145 | 145 | * |
146 | 146 | * @return array |
147 | 147 | */ |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * |
173 | 173 | * @param string $className |
174 | 174 | * @param string $property |
175 | - * @param array $tagNames |
|
175 | + * @param string[] $tagNames |
|
176 | 176 | * |
177 | 177 | * @return array |
178 | 178 | */ |
@@ -310,9 +310,9 @@ discard block |
||
310 | 310 | /** |
311 | 311 | * Check if the method is tagged with the given tag (no value checked) |
312 | 312 | * |
313 | - * @param string $controllerName |
|
314 | 313 | * @param string $methodName |
315 | 314 | * @param string $tagName |
315 | + * @param string $className |
|
316 | 316 | * @return bool |
317 | 317 | */ |
318 | 318 | public static function isMethodTaggedWith($className, $methodName, $tagName): bool |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | if (self::is9orHigher()) { |
46 | 46 | $reflectionClass = new \ReflectionClass($className); |
47 | 47 | |
48 | - return (bool) $reflectionClass->isInstantiable(); |
|
48 | + return (bool)$reflectionClass->isInstantiable(); |
|
49 | 49 | } |
50 | 50 | |
51 | - return (bool) self::createReflectionClass($className) |
|
51 | + return (bool)self::createReflectionClass($className) |
|
52 | 52 | ->isInstantiable(); |
53 | 53 | } |
54 | 54 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | if (\is_array($values)) { |
103 | - return \trim((string) $values[0]); |
|
103 | + return \trim((string)$values[0]); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | return false; |
@@ -277,12 +277,12 @@ discard block |
||
277 | 277 | public static function getDeclaringProperties(string $className) |
278 | 278 | { |
279 | 279 | $classReflection = new \ReflectionClass($className); |
280 | - $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) { |
|
281 | - return trim((string) $property->class, '\\') === trim($className, '\\'); |
|
280 | + $own = \array_filter($classReflection->getProperties(), function($property) use ($className) { |
|
281 | + return trim((string)$property->class, '\\') === trim($className, '\\'); |
|
282 | 282 | }); |
283 | 283 | |
284 | - return \array_map(function ($item) { |
|
285 | - return (string) $item->name; |
|
284 | + return \array_map(function($item) { |
|
285 | + return (string)$item->name; |
|
286 | 286 | }, $own); |
287 | 287 | } |
288 | 288 |