From: vrana Date: Wed, 15 Aug 2012 21:27:01 +0000 (-0700) Subject: Fix lint warning X-Git-Tag: conduit-6~155 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=014521362fd0a57764a5f022cab2201eebf5a5f7;p=arcanist.git Fix lint warning --- diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php index cd22344b..59915aec 100644 --- a/src/repository/api/ArcanistMercurialAPI.php +++ b/src/repository/api/ArcanistMercurialAPI.php @@ -415,11 +415,11 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI { } public function supportsAmend() { - list ($err, $stdout) = $this->execManualLocal('help commit'); + list($err, $stdout) = $this->execManualLocal('help commit'); if ($err) { return false; } else { - return (strstr($stdout, "amend") !== false); + return (strpos($stdout, "amend") !== false); } }