Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistConfiguration.php
Show All 32 Lines | public function buildWorkflow($command) { | ||||
if (!$workflow) { | if (!$workflow) { | ||||
return null; | return null; | ||||
} | } | ||||
return clone $workflow; | return clone $workflow; | ||||
} | } | ||||
public function buildAllWorkflows() { | public function buildAllWorkflows() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass('ArcanistWorkflow') | ->setAncestorClass('ArcanistWorkflow') | ||||
->setUniqueMethod('getWorkflowName') | ->setUniqueMethod('getWorkflowName') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public function isValidWorkflow($workflow) { | final public function isValidWorkflow($workflow) { | ||||
return (bool)$this->buildWorkflow($workflow); | return (bool)$this->buildWorkflow($workflow); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 88 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