File tree Expand file tree Collapse file tree 1 file changed +0
-47
lines changed
Expand file tree Collapse file tree 1 file changed +0
-47
lines changed Original file line number Diff line number Diff line change @@ -138,52 +138,5 @@ public function getParamTypeString(?Param $paramTag): ?string
138138 return null ;
139139 }
140140
141- /**
142- * Gets the return type string from a Return tag.
143- */
144- public function getReturnTypeString (?DocBlock $ docBlock ): ?string
145- {
146- if (null === $ docBlock ) {
147- return null ;
148- }
149-
150- $ returnTags = $ docBlock ->getTagsByName ('return ' );
151- if ([] === $ returnTags ) {
152- return null ;
153- }
154141
155- $ returnTag = $ returnTags [0 ];
156- if (!$ returnTag instanceof TagWithType) {
157- return null ;
158- }
159-
160- $ typeFromTag = trim ((string ) $ returnTag ->getType ());
161- if (!empty ($ typeFromTag )) {
162- return ltrim ($ typeFromTag , '\\' );
163- }
164-
165- return null ;
166- }
167-
168- /**
169- * Gets the return type description from a Return tag.
170- */
171- public function getReturnDescription (?DocBlock $ docBlock ): ?string
172- {
173- if (null === $ docBlock ) {
174- return null ;
175- }
176-
177- $ returnTags = $ docBlock ->getTagsByName ('return ' );
178- if ([] === $ returnTags ) {
179- return null ;
180- }
181-
182- $ returnTag = $ returnTags [0 ];
183- if (!$ returnTag instanceof TagWithType) {
184- return null ;
185- }
186-
187- return trim ((string ) $ returnTag ->getDescription ()) ?: null ;
188- }
189142}
You can’t perform that action at this time.
0 commit comments