Changeset View
Changeset View
Standalone View
Standalone View
src/ref/user/ArcanistUserSymbolRefInspector.php
Show All 9 Lines | final class ArcanistUserSymbolRefInspector | ||||
public function newInspectRef(array $argv) { | public function newInspectRef(array $argv) { | ||||
if (count($argv) !== 1) { | if (count($argv) !== 1) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Expected exactly one argument to "user(...)" with a '. | 'Expected exactly one argument to "user(...)" with a '. | ||||
'user symbol.')); | 'user symbol.')); | ||||
} | } | ||||
return id(new ArcanistUserSymbolRef()) | return (new ArcanistUserSymbolRef()) | ||||
->setSymbol($argv[0]); | ->setSymbol($argv[0]); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0