1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix method visibility for PhabricatorController subclasses

Summary: Ref T6822.

Test Plan: Visual inspection. These methods are only called from within `PhabricatorController` subclasses.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6822

Differential Revision: https://secure.phabricator.com/D11241
This commit is contained in:
Joshua Spence 2015-01-07 07:34:58 +11:00
parent e448386d39
commit e7f8e79742
59 changed files with 73 additions and 74 deletions

View file

@ -2,7 +2,7 @@
abstract class AlmanacDeviceController extends AlmanacController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$list_uri = $this->getApplicationURI('device/');

View file

@ -16,7 +16,7 @@ final class AlmanacDeviceListController
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -2,7 +2,7 @@
abstract class AlmanacNetworkController extends AlmanacController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$list_uri = $this->getApplicationURI('network/');

View file

@ -16,7 +16,7 @@ final class AlmanacNetworkListController
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -2,7 +2,7 @@
abstract class AlmanacServiceController extends AlmanacController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$list_uri = $this->getApplicationURI('service/');

View file

@ -16,7 +16,7 @@ final class AlmanacServiceListController
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -18,7 +18,7 @@ abstract class PhabricatorAuditController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}

View file

@ -20,7 +20,7 @@ abstract class PhabricatorAuthProviderConfigController
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView($for_app = true)->getMenu();
}

View file

@ -20,11 +20,11 @@ abstract class PhabricatorCalendarController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -26,7 +26,7 @@ abstract class PhabricatorConfigController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(null, true)->getMenu();
}

View file

@ -4,7 +4,7 @@ abstract class ConpherenceController extends PhabricatorController {
private $conpherences;
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
$nav = new PHUIListView();
$nav->newLink(
@ -30,7 +30,7 @@ abstract class ConpherenceController extends PhabricatorController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs

View file

@ -21,11 +21,11 @@ abstract class PhabricatorCountdownController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView($for_app = true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -39,7 +39,7 @@ final class PhabricatorDashboardListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -36,7 +36,7 @@ final class PhabricatorDashboardPanelListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Panels'), $this->getApplicationURI().'panel/');

View file

@ -49,7 +49,7 @@ final class PhabricatorDashboardViewController
));
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$id = $this->id;

View file

@ -2,7 +2,7 @@
abstract class DifferentialController extends PhabricatorController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(
@ -29,7 +29,7 @@ abstract class DifferentialController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -3,7 +3,7 @@
abstract class DiffusionRepositoryEditController
extends DiffusionController {
public function buildApplicationCrumbs($is_main = false) {
protected function buildApplicationCrumbs($is_main = false) {
$crumbs = parent::buildApplicationCrumbs();
if ($this->diffusionRequest) {

View file

@ -37,7 +37,7 @@ final class DiffusionRepositoryListController extends DiffusionController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -16,7 +16,7 @@ abstract class DrydockBlueprintController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Blueprints'),

View file

@ -22,7 +22,7 @@ final class DrydockBlueprintListController extends DrydockBlueprintController {
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$can_create = $this->hasApplicationCapability(
DrydockCreateBlueprintsCapability::CAPABILITY);

View file

@ -4,7 +4,7 @@ abstract class DrydockController extends PhabricatorController {
abstract function buildSideNavView();
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}

View file

@ -16,7 +16,7 @@ abstract class DrydockLeaseController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Leases'),

View file

@ -16,7 +16,7 @@ abstract class DrydockLogController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Logs'),

View file

@ -16,7 +16,7 @@ abstract class DrydockResourceController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Resources'),

View file

@ -21,7 +21,7 @@ final class PhabricatorFileListController extends PhabricatorFileController {
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(
id(new PHUIListItemView())

View file

@ -40,7 +40,7 @@ final class FundInitiativeListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -39,7 +39,7 @@ final class HarbormasterBuildableListController extends HarbormasterController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -2,7 +2,7 @@
abstract class HarbormasterController extends PhabricatorController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -2,7 +2,7 @@
abstract class HarbormasterPlanController extends HarbormasterController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(

View file

@ -40,7 +40,7 @@ final class HarbormasterPlanListController extends HarbormasterPlanController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -16,11 +16,11 @@ abstract class HeraldController extends PhabricatorController {
return $response->setContent($page->render());
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -23,7 +23,7 @@ final class HeraldTranscriptListController extends HeraldController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(

View file

@ -22,7 +22,7 @@ abstract class LegalpadController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNav(true)->getMenu();
}

View file

@ -21,7 +21,7 @@ final class LegalpadDocumentListController extends LegalpadController {
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -64,7 +64,7 @@ final class LegalpadDocumentSignatureListController extends LegalpadController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
if ($this->document) {

View file

@ -20,7 +20,7 @@ abstract class PhabricatorMacroController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView($for_app = true)->getMenu();
}

View file

@ -21,11 +21,11 @@ abstract class PhabricatorMailingListsController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -17,7 +17,7 @@ abstract class PhabricatorApplicationsController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -22,7 +22,7 @@ final class PhabricatorOAuthClientListController
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -58,7 +58,7 @@ abstract class PhabricatorOwnersController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}

View file

@ -21,11 +21,11 @@ abstract class PassphraseController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -21,11 +21,11 @@ abstract class PhabricatorPasteController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -28,11 +28,11 @@ abstract class PhabricatorPeopleController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView()->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$viewer = $this->getRequest()->getUser();

View file

@ -103,7 +103,7 @@ abstract class PhameController extends PhabricatorController {
return $stories;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->renderSideNavFilterView()->getMenu();
}

View file

@ -21,7 +21,7 @@ abstract class PholioController extends PhabricatorController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(
@ -33,7 +33,7 @@ abstract class PholioController extends PhabricatorController {
return $crumbs;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -79,7 +79,7 @@ final class PhortuneCartListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$merchant = $this->merchant;

View file

@ -61,7 +61,7 @@ final class PhortuneChargeListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$account = $this->account;

View file

@ -3,7 +3,7 @@
abstract class PhortuneMerchantController
extends PhortuneController {
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Merchants'),

View file

@ -37,7 +37,7 @@ final class PhortuneMerchantListController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -22,11 +22,11 @@ abstract class PhrictionController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
if (get_class($this) != 'PhrictionListController') {

View file

@ -17,7 +17,7 @@ abstract class PonderController extends PhabricatorController {
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs
->addAction(

View file

@ -22,11 +22,11 @@ final class PhabricatorProjectListController
return $this->delegateToController($controller);
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$can_create = $this->hasApplicationCapability(

View file

@ -34,7 +34,7 @@ abstract class ReleephController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}

View file

@ -103,7 +103,7 @@ final class ReleephBranchViewController extends ReleephBranchController
->setViewer($this->getRequest()->getUser());
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$branch = $this->getBranch();

View file

@ -21,7 +21,7 @@ final class ReleephProductListController extends ReleephController {
return $this->delegateToController($controller);
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -148,7 +148,7 @@ final class ReleephProductViewController extends ReleephProductController
return $nav;
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$product = $this->getProduct();

View file

@ -151,7 +151,7 @@ final class PhabricatorSettingsMainController
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
$panels = $this->buildPanels();
return $this->renderSideNav($panels)->getMenu();
}

View file

@ -22,11 +22,11 @@ abstract class PhabricatorSlowvoteController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNavView(true)->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction(

View file

@ -2,7 +2,6 @@
abstract class PhabricatorTokenController extends PhabricatorController {
protected function buildSideNav() {
$nav = new AphrontSideNavFilterView();
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
@ -14,11 +13,11 @@ abstract class PhabricatorTokenController extends PhabricatorController {
return $nav;
}
public function buildApplicationMenu() {
protected function buildApplicationMenu() {
return $this->buildSideNav()->getMenu();
}
public function buildApplicationCrumbs() {
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
return $crumbs;
}