Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/controller/HeraldWebhookViewController.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | $requests = id(new HeraldWebhookRequestQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withWebhookPHIDs(array($hook->getPHID())) | ->withWebhookPHIDs(array($hook->getPHID())) | ||||
->setLimit(20) | ->setLimit(20) | ||||
->execute(); | ->execute(); | ||||
$warnings = array(); | $warnings = array(); | ||||
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | ||||
$message = pht( | $message = pht( | ||||
'Phabricator is currently configured in silent mode, so it will not '. | 'This server is running in silent mode, so it will not '. | ||||
Lint: Use of Product Name Literal: Avoid use of product name literals in "pht()": use generic language or an appropriate method… | |||||
'publish webhooks. To adjust this setting, see '. | 'publish webhooks. To adjust this setting, see '. | ||||
'@{config:phabricator.silent} in Config.'); | '@{config:phabricator.silent} in Config.'); | ||||
$warnings[] = id(new PHUIInfoView()) | $warnings[] = id(new PHUIInfoView()) | ||||
->setTitle(pht('Silent Mode')) | ->setTitle(pht('Silent Mode')) | ||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
->appendChild(new PHUIRemarkupView($viewer, $message)); | ->appendChild(new PHUIRemarkupView($viewer, $message)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |
Avoid use of product name literals in "pht()": use generic language or an appropriate method from the "PlatformSymbols" class instead so the software can be forked. String uses names: phabricator.