Differential D21457 Diff 51063 src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php
Show All 37 Lines | public function addArgument(PhabricatorChartFunctionArgument $spec) { | ||||
} | } | ||||
$type = $spec->getType(); | $type = $spec->getType(); | ||||
if (!strlen($type)) { | if (!strlen($type)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Chart function "%s" emitted an argument specification ("%s") with '. | 'Chart function "%s" emitted an argument specification ("%s") with '. | ||||
'no type. Each argument specification must have a valid type.', | 'no type. Each argument specification must have a valid type.', | ||||
$this->getFunctionArgumentSignature(), | |||||
$name)); | $name)); | ||||
} | } | ||||
if (isset($this->argumentMap[$name])) { | if (isset($this->argumentMap[$name])) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Chart function "%s" emitted multiple argument specifications '. | 'Chart function "%s" emitted multiple argument specifications '. | ||||
'with the same name ("%s"). Each argument specification must have '. | 'with the same name ("%s"). Each argument specification must have '. | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |