Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/workflow/DivinerGenerateWorkflow.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | if (!$symbols) { | ||||
"Publisher class '%s' must be a concrete subclass of %s.", | "Publisher class '%s' must be a concrete subclass of %s.", | ||||
$publisher_class, | $publisher_class, | ||||
'DivinerPublisher')); | 'DivinerPublisher')); | ||||
} | } | ||||
$publisher = newv($publisher_class, array()); | $publisher = newv($publisher_class, array()); | ||||
$identifier = $args->getArg('repository'); | $identifier = $args->getArg('repository'); | ||||
$repository = null; | $repository = null; | ||||
if (strlen($identifier)) { | if (phutil_nonempty_string($identifier)) { | ||||
$repository = id(new PhabricatorRepositoryQuery()) | $repository = id(new PhabricatorRepositoryQuery()) | ||||
->setViewer(PhabricatorUser::getOmnipotentUser()) | ->setViewer(PhabricatorUser::getOmnipotentUser()) | ||||
->withIdentifiers(array($identifier)) | ->withIdentifiers(array($identifier)) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$repository) { | if (!$repository) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 383 Lines • Show Last 20 Lines |
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