Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/query/PhabricatorConduitMethodQuery.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | foreach ($methods as $key => $method) { | ||||
continue; | continue; | ||||
} | } | ||||
if (!$application->isInstalled()) { | if (!$application->isInstalled()) { | ||||
unset($methods[$key]); | unset($methods[$key]); | ||||
} | } | ||||
} | } | ||||
$status = array( | $status = array( | ||||
ConduitAPIMethod::METHOD_STATUS_STABLE => $this->isStable, | ConduitAPIMethod::METHOD_STATUS_STABLE => $this->isStable, | ||||
ConduitAPIMethod::METHOD_STATUS_FROZEN => $this->isStable, | |||||
ConduitAPIMethod::METHOD_STATUS_DEPRECATED => $this->isDeprecated, | ConduitAPIMethod::METHOD_STATUS_DEPRECATED => $this->isDeprecated, | ||||
ConduitAPIMethod::METHOD_STATUS_UNSTABLE => $this->isUnstable, | ConduitAPIMethod::METHOD_STATUS_UNSTABLE => $this->isUnstable, | ||||
); | ); | ||||
// Only apply status filters if any of them are set. | // Only apply status filters if any of them are set. | ||||
if (array_filter($status)) { | if (array_filter($status)) { | ||||
foreach ($methods as $key => $method) { | foreach ($methods as $key => $method) { | ||||
$keep = idx($status, $method->getMethodStatus()); | $keep = idx($status, $method->getMethodStatus()); | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |