Changeset View
Changeset View
Standalone View
Standalone View
src/inspector/ArcanistBrowseRefInspector.php
Show All 9 Lines | final class ArcanistBrowseRefInspector | ||||
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 "browse(...)" with a '. | 'Expected exactly one argument to "browse(...)" with a '. | ||||
'token.')); | 'token.')); | ||||
} | } | ||||
return id(new ArcanistBrowseRef()) | return (new ArcanistBrowseRef()) | ||||
->setToken($argv[0]); | ->setToken($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