X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FParser%2FInternal%2FCommandDocBlockParser2.php;fp=vendor%2Fconsolidation%2Fannotated-command%2Fsrc%2FParser%2FInternal%2FCommandDocBlockParser2.php;h=0000000000000000000000000000000000000000;hp=22ecad2baa648942b86bb4ffe2b35b66ad9701cb;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParser2.php b/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParser2.php deleted file mode 100644 index 22ecad2ba..000000000 --- a/vendor/consolidation/annotated-command/src/Parser/Internal/CommandDocBlockParser2.php +++ /dev/null @@ -1,70 +0,0 @@ -reflection->getDocComment(); - $phpdoc = new DocBlock($docblockComment); - - // First set the description (synopsis) and help. - $this->commandInfo->setDescription((string)$phpdoc->getShortDescription()); - $this->commandInfo->setHelp((string)$phpdoc->getLongDescription()); - - $this->processAllTags($phpdoc); - } - - protected function getTagContents($tag) - { - return $tag->getContent(); - } - - /** - * Store the data from a @arg annotation in our argument descriptions. - */ - protected function processArgumentTag($tag) - { - if (!$this->pregMatchNameAndDescription((string)$tag->getDescription(), $match)) { - return; - } - $this->addOptionOrArgumentTag($tag, $this->commandInfo->arguments(), $match); - } - - /** - * Store the data from a @param annotation in our argument descriptions. - */ - protected function processParamTag($tag) - { - if (!$tag instanceof ParamTag) { - return; - } - return parent::processParamTag($tag); - } - - /** - * Store the data from a @return annotation in our argument descriptions. - */ - protected function processReturnTag($tag) - { - if (!$tag instanceof ReturnTag) { - return; - } - $this->commandInfo->setReturnType($tag->getType()); - } -}