Skip to content

Commit 747e6d7

Browse files
committed
Updated @author in accordance with the latest changes.
1 parent c2f6921 commit 747e6d7

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

src/phpDocumentor/Reflection/DocBlock/Tag/AuthorTag.php

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Reflection class for an @author tag in a Docblock.
2020
*
21-
* @author Mike van Riel <mike.vanriel@naenius.com>
21+
* @author Vasil Rangelov <boen.robot@gmail.com>
2222
* @license http://www.opensource.org/licenses/mit-license.php MIT
2323
* @link http://phpdoc.org
2424
*/
@@ -42,28 +42,26 @@ class AuthorTag extends Tag
4242
*/
4343
public function __construct($type, $content, DocBlock $docblock = null)
4444
{
45-
$this->tag = $type;
46-
$this->content = $content;
45+
parent::__construct($type, $content, $docblock);
4746
if (preg_match(
48-
'/^
49-
# Name
50-
([^\<]*)
47+
'/^
48+
# Name
49+
([^\<]*)
50+
(?:
51+
# URIs
52+
\<([^>]*)\>\s*
53+
# Role
5154
(?:
52-
# URIs
53-
\<([^>]*)\>\s*
54-
# Role
55-
(?:
56-
\(([^\)]*)\)
57-
)?
58-
# Description
59-
(.*)
55+
\(([^\)]*)\)
6056
)?
61-
$/sux',
62-
$content,
63-
$matches
64-
)
65-
) {
66-
$this->name = trim($matches[1]);
57+
# Description
58+
(.*)
59+
)?
60+
$/sux',
61+
$this->description,
62+
$matches
63+
)) {
64+
$this->name = rtrim($matches[1]);
6765
if (isset($matches[2])) {
6866
$matches[2] = trim($matches[2]);
6967
if ('' !== $matches[2]) {

0 commit comments

Comments
 (0)