* fix a bug for svn and adjust burn.

This commit is contained in:
wangyidong
2015-08-05 16:09:12 +08:00
parent 4d0ff8f8c8
commit 1625f0394e
3 changed files with 35 additions and 6 deletions
+13 -4
View File
@@ -168,10 +168,7 @@ class devModel extends model
$comment = preg_split('/\r?\n\r?/', $comment);
// Trim asterisks and whitespace from the beginning and whitespace from the end of lines.
$comment = array_map(function($line)
{
return ltrim(rtrim($line), "* \t\n\r\0\x0B");
}, $comment);
$comment = array_map(array('devModel', "trimSpace"), $comment);
// Group the lines together by @tags
$blocks = array();
@@ -246,4 +243,16 @@ class devModel extends model
}
return $modules;
}
/**
* Trim asterisks and whitespace from the beginning and whitespace from the end of lines.
*
* @param string $line
* @access public
* @return string
*/
public function trimSpace($line)
{
return ltrim(rtrim($line), "* \t\n\r\0\x0B");
}
}