mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Updated @author in accordance with the latest changes.
This commit is contained in:
@@ -18,7 +18,7 @@ use phpDocumentor\Reflection\DocBlock\Tag;
|
|||||||
/**
|
/**
|
||||||
* Reflection class for an @author tag in a Docblock.
|
* Reflection class for an @author tag in a Docblock.
|
||||||
*
|
*
|
||||||
* @author Mike van Riel <mike.vanriel@naenius.com>
|
* @author Vasil Rangelov <boen.robot@gmail.com>
|
||||||
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
||||||
* @link http://phpdoc.org
|
* @link http://phpdoc.org
|
||||||
*/
|
*/
|
||||||
@@ -42,8 +42,7 @@ class AuthorTag extends Tag
|
|||||||
*/
|
*/
|
||||||
public function __construct($type, $content, DocBlock $docblock = null)
|
public function __construct($type, $content, DocBlock $docblock = null)
|
||||||
{
|
{
|
||||||
$this->tag = $type;
|
parent::__construct($type, $content, $docblock);
|
||||||
$this->content = $content;
|
|
||||||
if (preg_match(
|
if (preg_match(
|
||||||
'/^
|
'/^
|
||||||
# Name
|
# Name
|
||||||
@@ -59,11 +58,10 @@ class AuthorTag extends Tag
|
|||||||
(.*)
|
(.*)
|
||||||
)?
|
)?
|
||||||
$/sux',
|
$/sux',
|
||||||
$content,
|
$this->description,
|
||||||
$matches
|
$matches
|
||||||
)
|
)) {
|
||||||
) {
|
$this->name = rtrim($matches[1]);
|
||||||
$this->name = trim($matches[1]);
|
|
||||||
if (isset($matches[2])) {
|
if (isset($matches[2])) {
|
||||||
$matches[2] = trim($matches[2]);
|
$matches[2] = trim($matches[2]);
|
||||||
if ('' !== $matches[2]) {
|
if ('' !== $matches[2]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user