Skip to content

Commit 28e8b71

Browse files
committed
Remove useless method
1 parent 88c050e commit 28e8b71

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -741,28 +741,6 @@ private static function getDescriptionConfiguration(array $annotations, bool $wi
741741
return $config;
742742
}
743743

744-
/**
745-
* Get args config from an array of @Arg annotation or by auto-guessing if a method is provided.
746-
*
747-
* @param array $args
748-
* @param ReflectionMethod $method
749-
*/
750-
private static function getArgs(array $args = null, ReflectionMethod $method = null): array
751-
{
752-
$config = [];
753-
if ($args && !empty($args)) {
754-
foreach ($args as $arg) {
755-
$config[$arg->name] = ['type' => $arg->type]
756-
+ ($arg->description ? ['description' => $arg->description] : [])
757-
+ ($arg->default ? ['defaultValue' => $arg->default] : []);
758-
}
759-
} elseif ($method) {
760-
$config = self::guessArgs($method);
761-
}
762-
763-
return $config;
764-
}
765-
766744
/**
767745
* Format an array of args to a list of arguments in an expression.
768746
*/

0 commit comments

Comments
 (0)