File tree Expand file tree Collapse file tree 1 file changed +18
-20
lines changed
src/phpDocumentor/Reflection/DocBlock/Tag Expand file tree Collapse file tree 1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change 18
18
/**
19
19
* Reflection class for an @author tag in a Docblock.
20
20
*
21
- * @author Mike van Riel <mike.vanriel@naenius .com>
21
+ * @author Vasil Rangelov <boen.robot@gmail .com>
22
22
* @license http://www.opensource.org/licenses/mit-license.php MIT
23
23
* @link http://phpdoc.org
24
24
*/
@@ -42,28 +42,26 @@ class AuthorTag extends Tag
42
42
*/
43
43
public function __construct ($ type , $ content , DocBlock $ docblock = null )
44
44
{
45
- $ this ->tag = $ type ;
46
- $ this ->content = $ content ;
45
+ parent ::__construct ($ type , $ content , $ docblock );
47
46
if (preg_match (
48
- '/^
49
- # Name
50
- ([^\<]*)
47
+ '/^
48
+ # Name
49
+ ([^\<]*)
50
+ (?:
51
+ # URIs
52
+ \<([^>]*)\>\s*
53
+ # Role
51
54
(?:
52
- # URIs
53
- \<([^>]*)\>\s*
54
- # Role
55
- (?:
56
- \(([^\)]*)\)
57
- )?
58
- # Description
59
- (.*)
55
+ \(([^\)]*)\)
60
56
)?
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 ]);
67
65
if (isset ($ matches [2 ])) {
68
66
$ matches [2 ] = trim ($ matches [2 ]);
69
67
if ('' !== $ matches [2 ]) {
You can’t perform that action at this time.
0 commit comments