mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Cleanup docs.
This commit is contained in:
5
vendor/docdown/src/DocDown/Entry.php
vendored
5
vendor/docdown/src/DocDown/Entry.php
vendored
@@ -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), ', ') .')';
|
||||
|
||||
Reference in New Issue
Block a user