mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Explicitly declare method/property visibility
Summary: Self-explanatory. Test Plan: `arc lint` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11278
This commit is contained in:
parent
9853ff2cff
commit
698b7f9ea3
10 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ abstract class DifferentialLandingStrategy {
|
|||
/**
|
||||
* @return PhabricatorActionView or null.
|
||||
*/
|
||||
abstract function createMenuItem(
|
||||
public abstract function createMenuItem(
|
||||
PhabricatorUser $viewer,
|
||||
DifferentialRevision $revision,
|
||||
PhabricatorRepository $repository);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
abstract class DrydockController extends PhabricatorController {
|
||||
|
||||
abstract function buildSideNavView();
|
||||
public abstract function buildSideNavView();
|
||||
|
||||
protected function buildApplicationMenu() {
|
||||
return $this->buildSideNavView()->getMenu();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
final class PhabricatorOwnersPackageTestCase extends PhabricatorTestCase {
|
||||
|
||||
function testFindLongestPathsPerPackage() {
|
||||
public function testFindLongestPathsPerPackage() {
|
||||
$rows = array(
|
||||
array('id' => 1, 'excluded' => 0, 'path' => 'src/'),
|
||||
array('id' => 1, 'excluded' => 1, 'path' => 'src/releeph/'),
|
||||
|
|
|
@ -201,7 +201,7 @@ abstract class PhragmentController extends PhabricatorController {
|
|||
->addPropertyList($properties);
|
||||
}
|
||||
|
||||
function renderConfigurationWarningIfRequired() {
|
||||
public function renderConfigurationWarningIfRequired() {
|
||||
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
||||
if ($alt === null) {
|
||||
return id(new AphrontErrorView())
|
||||
|
@ -225,7 +225,7 @@ abstract class PhragmentController extends PhabricatorController {
|
|||
* are configured otherwise (because the Files app does not support showing
|
||||
* the info page to viewers who are not logged in).
|
||||
*/
|
||||
function isCorrectlyConfigured() {
|
||||
public function isCorrectlyConfigured() {
|
||||
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
||||
return $alt !== null;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ final class PhragmentRevertController extends PhragmentController {
|
|||
return $this->createDialog($fragment, $version);
|
||||
}
|
||||
|
||||
function createDialog(
|
||||
public function createDialog(
|
||||
PhragmentFragment $fragment,
|
||||
PhragmentFragmentVersion $version) {
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ final class PhragmentSnapshotDeleteController extends PhragmentController {
|
|||
return $this->createDialog();
|
||||
}
|
||||
|
||||
function createDialog() {
|
||||
public function createDialog() {
|
||||
$request = $this->getRequest();
|
||||
$viewer = $request->getUser();
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ final class PhragmentSnapshotPromoteController extends PhragmentController {
|
|||
return $this->createDialog();
|
||||
}
|
||||
|
||||
function createDialog() {
|
||||
public function createDialog() {
|
||||
$request = $this->getRequest();
|
||||
$viewer = $request->getUser();
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
final class PhabricatorAccessLog {
|
||||
|
||||
static $log;
|
||||
private static $log;
|
||||
|
||||
public static function init() {
|
||||
// NOTE: This currently has no effect, but some day we may reuse PHP
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
final class PhabricatorSSHLog extends Phobject {
|
||||
|
||||
static $log;
|
||||
private static $log;
|
||||
|
||||
public static function getLog() {
|
||||
if (!self::$log) {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
abstract class PhabricatorSQLPatchList {
|
||||
|
||||
abstract function getNamespace();
|
||||
abstract function getPatches();
|
||||
public abstract function getNamespace();
|
||||
public abstract function getPatches();
|
||||
|
||||
/**
|
||||
* Examine a directory for `.php` and `.sql` files and build patch
|
||||
|
|
Loading…
Reference in a new issue