@@ -45,25 +45,25 @@ final class StandardTagFactory implements TagFactory
4545 * @var string[] An array with a tag as a key, and an FQCN to a class that handles it as an array value.
4646 */
4747 private $ tagHandlerMappings = [
48- 'author ' => '\phpDocumentor\Reflection\DocBlock\Tags\Author ' ,
49- 'covers ' => '\phpDocumentor\Reflection\DocBlock\Tags\Covers ' ,
50- 'deprecated ' => '\phpDocumentor\Reflection\DocBlock\Tags\Deprecated ' ,
48+ 'author ' => '\phpDocumentor\Reflection\DocBlock\Tags\Author ' ,
49+ 'covers ' => '\phpDocumentor\Reflection\DocBlock\Tags\Covers ' ,
50+ 'deprecated ' => '\phpDocumentor\Reflection\DocBlock\Tags\Deprecated ' ,
5151 // 'example' => '\phpDocumentor\Reflection\DocBlock\Tags\Example',
52- 'link ' => '\phpDocumentor\Reflection\DocBlock\Tags\Link ' ,
53- 'method ' => '\phpDocumentor\Reflection\DocBlock\Tags\Method ' ,
54- 'param ' => '\phpDocumentor\Reflection\DocBlock\Tags\Param ' ,
55- 'property-read ' => '\phpDocumentor\Reflection\DocBlock\Tags\PropertyRead ' ,
56- 'property ' => '\phpDocumentor\Reflection\DocBlock\Tags\Property ' ,
52+ 'link ' => '\phpDocumentor\Reflection\DocBlock\Tags\Link ' ,
53+ 'method ' => '\phpDocumentor\Reflection\DocBlock\Tags\Method ' ,
54+ 'param ' => '\phpDocumentor\Reflection\DocBlock\Tags\Param ' ,
55+ 'property-read ' => '\phpDocumentor\Reflection\DocBlock\Tags\PropertyRead ' ,
56+ 'property ' => '\phpDocumentor\Reflection\DocBlock\Tags\Property ' ,
5757 'property-write ' => '\phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite ' ,
58- 'return ' => '\phpDocumentor\Reflection\DocBlock\Tags\Return_ ' ,
59- 'see ' => '\phpDocumentor\Reflection\DocBlock\Tags\See ' ,
60- 'since ' => '\phpDocumentor\Reflection\DocBlock\Tags\Since ' ,
61- 'source ' => '\phpDocumentor\Reflection\DocBlock\Tags\Source ' ,
62- 'throw ' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws ' ,
63- 'throws ' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws ' ,
64- 'uses ' => '\phpDocumentor\Reflection\DocBlock\Tags\Uses ' ,
65- 'var ' => '\phpDocumentor\Reflection\DocBlock\Tags\Var_ ' ,
66- 'version ' => '\phpDocumentor\Reflection\DocBlock\Tags\Version '
58+ 'return ' => '\phpDocumentor\Reflection\DocBlock\Tags\Return_ ' ,
59+ 'see ' => '\phpDocumentor\Reflection\DocBlock\Tags\See ' ,
60+ 'since ' => '\phpDocumentor\Reflection\DocBlock\Tags\Since ' ,
61+ 'source ' => '\phpDocumentor\Reflection\DocBlock\Tags\Source ' ,
62+ 'throw ' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws ' ,
63+ 'throws ' => '\phpDocumentor\Reflection\DocBlock\Tags\Throws ' ,
64+ 'uses ' => '\phpDocumentor\Reflection\DocBlock\Tags\Uses ' ,
65+ 'var ' => '\phpDocumentor\Reflection\DocBlock\Tags\Var_ ' ,
66+ 'version ' => '\phpDocumentor\Reflection\DocBlock\Tags\Version ' ,
6767 ];
6868
6969 /**
@@ -186,7 +186,7 @@ private function extractTagParts(string $tagLine)
186186 private function createTag (string $ body , string $ name , TypeContext $ context ): ?Tag
187187 {
188188 $ handlerClassName = $ this ->findHandlerClassName ($ name , $ context );
189- $ arguments = $ this ->getArgumentsForParametersFromWiring (
189+ $ arguments = $ this ->getArgumentsForParametersFromWiring (
190190 $ this ->fetchParametersForHandlerFactoryMethod ($ handlerClassName ),
191191 $ this ->getServiceLocatorWithDynamicParameters ($ context , $ name , $ body )
192192 );
@@ -254,7 +254,7 @@ private function getArgumentsForParametersFromWiring($parameters, $locator)
254254 private function fetchParametersForHandlerFactoryMethod (string $ handlerClassName )
255255 {
256256 if (! isset ($ this ->tagHandlerParameterCache [$ handlerClassName ])) {
257- $ methodReflection = new \ReflectionMethod ($ handlerClassName , 'create ' );
257+ $ methodReflection = new \ReflectionMethod ($ handlerClassName , 'create ' );
258258 $ this ->tagHandlerParameterCache [$ handlerClassName ] = $ methodReflection ->getParameters ();
259259 }
260260
@@ -276,9 +276,9 @@ private function getServiceLocatorWithDynamicParameters(TypeContext $context, st
276276 $ locator = array_merge (
277277 $ this ->serviceLocator ,
278278 [
279- 'name ' => $ tagName ,
280- 'body ' => $ tagBody ,
281- TypeContext::class => $ context
279+ 'name ' => $ tagName ,
280+ 'body ' => $ tagBody ,
281+ TypeContext::class => $ context,
282282 ]
283283 );
284284
0 commit comments