Skip to content

Commit 8ba65bc

Browse files
yunoshjaapio
authored andcommitted
Don't output author email, if it doesn't exist, and add missing space.
1 parent 1d3dd12 commit 8ba65bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocBlock/Tags/Author.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getEmail()
7373
*/
7474
public function __toString()
7575
{
76-
return $this->authorName . '<' . $this->authorEmail . '>';
76+
return $this->authorName . (strlen($this->authorEmail) ? ' <' . $this->authorEmail . '>' : '');
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)