1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00

Minor tidying of some Aphlict code

Summary: Self-explanatory.

Test Plan: Eyeball it.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11424
This commit is contained in:
Joshua Spence 2015-01-20 06:37:15 +11:00
parent 2b12f61602
commit 94730a1a43
2 changed files with 5 additions and 6 deletions

View file

@ -6,15 +6,14 @@ final class PhabricatorNotificationClient {
public static function getServerStatus() {
$uri = PhabricatorEnv::getEnvConfig('notification.server-uri');
$uri = new PhutilURI($uri);
$uri->setPath('/status/');
$uri = id(new PhutilURI($uri))
->setPath('/status/');
list($body) = id(new HTTPSFuture($uri))
->setTimeout(3)
->resolvex();
$status = json_decode($body, true);
$status = phutil_json_decode($body);
if (!is_array($status)) {
throw new Exception(
pht(

View file

@ -37,8 +37,8 @@ final class PhabricatorAphlictSetupCheck extends PhabricatorSetupCheck {
->addRelatedPhabricatorConfig('notification.server-uri')
->addCommand(
pht(
"(To start the server, run this command.)\n".
"phabricator/ $ ./bin/aphlict start"));
"(To start the server, run this command.)\n%s",
'phabricator/ $ ./bin/aphlict start'));
return;
}