Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/atomizer/DivinerPHPAtomizer.php
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | if ($docs) { | ||||
| $docs = array(); | $docs = array(); | ||||
| } | } | ||||
| if (count($docs)) { | if (count($docs)) { | ||||
| if (count($docs) < count($params)) { | if (count($docs) < count($params)) { | ||||
| $atom->addWarning( | $atom->addWarning( | ||||
| pht( | pht( | ||||
| 'This call takes %s parameter(s), but only %s are documented.', | 'This call takes %s parameter(s), but only %s are documented.', | ||||
| new PhutilNumber(count($params)), | phutil_count($params), | ||||
| new PhutilNumber(count($docs)))); | phutil_count($docs))); | ||||
| } | } | ||||
| } | } | ||||
| foreach ($params as $param) { | foreach ($params as $param) { | ||||
| $name = $param->getChildByIndex(1)->getConcreteString(); | $name = $param->getChildByIndex(1)->getConcreteString(); | ||||
| $dict = array( | $dict = array( | ||||
| 'type' => $param->getChildByIndex(0)->getConcreteString(), | 'type' => $param->getChildByIndex(0)->getConcreteString(), | ||||
| 'default' => $param->getChildByIndex(2)->getConcreteString(), | 'default' => $param->getChildByIndex(2)->getConcreteString(), | ||||
| ▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines | |||||