mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +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.
|
* @return PhabricatorActionView or null.
|
||||||
*/
|
*/
|
||||||
abstract function createMenuItem(
|
public abstract function createMenuItem(
|
||||||
PhabricatorUser $viewer,
|
PhabricatorUser $viewer,
|
||||||
DifferentialRevision $revision,
|
DifferentialRevision $revision,
|
||||||
PhabricatorRepository $repository);
|
PhabricatorRepository $repository);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
abstract class DrydockController extends PhabricatorController {
|
abstract class DrydockController extends PhabricatorController {
|
||||||
|
|
||||||
abstract function buildSideNavView();
|
public abstract function buildSideNavView();
|
||||||
|
|
||||||
protected function buildApplicationMenu() {
|
protected function buildApplicationMenu() {
|
||||||
return $this->buildSideNavView()->getMenu();
|
return $this->buildSideNavView()->getMenu();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
final class PhabricatorOwnersPackageTestCase extends PhabricatorTestCase {
|
final class PhabricatorOwnersPackageTestCase extends PhabricatorTestCase {
|
||||||
|
|
||||||
function testFindLongestPathsPerPackage() {
|
public function testFindLongestPathsPerPackage() {
|
||||||
$rows = array(
|
$rows = array(
|
||||||
array('id' => 1, 'excluded' => 0, 'path' => 'src/'),
|
array('id' => 1, 'excluded' => 0, 'path' => 'src/'),
|
||||||
array('id' => 1, 'excluded' => 1, 'path' => 'src/releeph/'),
|
array('id' => 1, 'excluded' => 1, 'path' => 'src/releeph/'),
|
||||||
|
|
|
@ -201,7 +201,7 @@ abstract class PhragmentController extends PhabricatorController {
|
||||||
->addPropertyList($properties);
|
->addPropertyList($properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderConfigurationWarningIfRequired() {
|
public function renderConfigurationWarningIfRequired() {
|
||||||
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
||||||
if ($alt === null) {
|
if ($alt === null) {
|
||||||
return id(new AphrontErrorView())
|
return id(new AphrontErrorView())
|
||||||
|
@ -225,7 +225,7 @@ abstract class PhragmentController extends PhabricatorController {
|
||||||
* are configured otherwise (because the Files app does not support showing
|
* are configured otherwise (because the Files app does not support showing
|
||||||
* the info page to viewers who are not logged in).
|
* the info page to viewers who are not logged in).
|
||||||
*/
|
*/
|
||||||
function isCorrectlyConfigured() {
|
public function isCorrectlyConfigured() {
|
||||||
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
$alt = PhabricatorEnv::getEnvConfig('security.alternate-file-domain');
|
||||||
return $alt !== null;
|
return $alt !== null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ final class PhragmentRevertController extends PhragmentController {
|
||||||
return $this->createDialog($fragment, $version);
|
return $this->createDialog($fragment, $version);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createDialog(
|
public function createDialog(
|
||||||
PhragmentFragment $fragment,
|
PhragmentFragment $fragment,
|
||||||
PhragmentFragmentVersion $version) {
|
PhragmentFragmentVersion $version) {
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ final class PhragmentSnapshotDeleteController extends PhragmentController {
|
||||||
return $this->createDialog();
|
return $this->createDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
function createDialog() {
|
public function createDialog() {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ final class PhragmentSnapshotPromoteController extends PhragmentController {
|
||||||
return $this->createDialog();
|
return $this->createDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
function createDialog() {
|
public function createDialog() {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$viewer = $request->getUser();
|
$viewer = $request->getUser();
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
final class PhabricatorAccessLog {
|
final class PhabricatorAccessLog {
|
||||||
|
|
||||||
static $log;
|
private static $log;
|
||||||
|
|
||||||
public static function init() {
|
public static function init() {
|
||||||
// NOTE: This currently has no effect, but some day we may reuse PHP
|
// NOTE: This currently has no effect, but some day we may reuse PHP
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
final class PhabricatorSSHLog extends Phobject {
|
final class PhabricatorSSHLog extends Phobject {
|
||||||
|
|
||||||
static $log;
|
private static $log;
|
||||||
|
|
||||||
public static function getLog() {
|
public static function getLog() {
|
||||||
if (!self::$log) {
|
if (!self::$log) {
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
abstract class PhabricatorSQLPatchList {
|
abstract class PhabricatorSQLPatchList {
|
||||||
|
|
||||||
abstract function getNamespace();
|
public abstract function getNamespace();
|
||||||
abstract function getPatches();
|
public abstract function getPatches();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Examine a directory for `.php` and `.sql` files and build patch
|
* Examine a directory for `.php` and `.sql` files and build patch
|
||||||
|
|
Loading…
Reference in a new issue