Change to remove only * in documentation text

This commit is contained in:
Michael RICOIS 2012-08-30 14:09:50 +00:00
parent 1daea96703
commit d69f675680

View File

@ -84,10 +84,10 @@ class WebClassDoc
private function parseTypes()
{
$typesElement = array();
if (count($this->classmap)>0)
if (count($this->classmap)>0)
{
foreach ($this->classmap as $className)
foreach ($this->classmap as $className)
{
$class = new ReflectionClass($className);
$paramsElement = array();
@ -106,8 +106,8 @@ class WebClassDoc
$docBlock = preg_replace('/\n/', '', $property->getDocComment() );
if (preg_match('/\/\*\*(.+) \* @var\s+[^\s]+\s+(?:\*|@)/m', $docBlock, $docBlockMatches)) {
$comment.= preg_replace(
array('/\r/', '/\t\s\*/'),
array('', ''), $docBlockMatches[1]
array('/\r/', '/\*/' ),
array('' , ''), $docBlockMatches[1]
);
}