Summary: Return `$this` from a bunch of setter methods for consistency. See also D13422.
Test Plan: Eyeball it.
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D13423
public function setWorkingCopyIdentity(
ArcanistWorkingCopyIdentity $working_copy) {
$this->workingCopy = $working_copy;
+ return $this;
}
/* -( Get config )--------------------------------------------------------- */
$this->customArcrcFilename = $custom_arcrc;
$this->userConfigCache = null;
+ return $this;
}
public function getUserConfigurationFileLocation() {
final public function setLinter(ArcanistXHPASTLinter $linter) {
$this->linter = $linter;
+ return $this;
}
/**
foreach ($futures as $test_path => $future) {
try {
list($stdout, $stderr) = $future->resolvex();
- } catch(CommandException $exc) {
+ } catch (CommandException $exc) {
if ($exc->getError() > 1) {
// 'nose' returns 1 when tests are failing/broken.
throw $exc;
try {
$regenerate_future->resolvex();
$result->setResult(ArcanistUnitTestResult::RESULT_PASS);
- } catch(CommandException $exc) {
+ } catch (CommandException $exc) {
if ($exc->getError() > 1) {
throw $exc;
}
try {
$future->resolvex();
$result->setResult(ArcanistUnitTestResult::RESULT_PASS);
- } catch(CommandException $exc) {
+ } catch (CommandException $exc) {
if ($exc->getError() > 1) {
throw $exc;
}