Cleanup docs.

This commit is contained in:
John-David Dalton
2013-09-15 17:17:57 -07:00
parent 133b1067c5
commit 40204e8133
4 changed files with 11 additions and 23 deletions

View File

@@ -142,7 +142,10 @@ class Entry {
$params = $this->getParams();
foreach ($params as $param) {
$result[] = $param[1];
// skip params that are properties of other params (e.g. `options.leading`)
if (!preg_match('/\w+\.[\w.]+\s*=/', $param[1])) {
$result[] = $param[1];
}
}
// format
$result = $name .'('. implode(array_slice($result, 1), ', ') .')';