mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-28 04:00:17 +01:00
Fix some method signatures
Summary: Fix some method signatures so that arguments with default values are at the end of the argument list (see D12418). Test Plan: Eyeballed the callsites. Reviewers: epriestley, #blessed_reviewers, hach-que Reviewed By: epriestley, #blessed_reviewers, hach-que Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12782
This commit is contained in:
parent
b0862a8176
commit
f3d382cec4
5 changed files with 13 additions and 16 deletions
|
@ -33,14 +33,16 @@ final class CelerityStaticResourceResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a behavior for initialization. NOTE: if $config is empty,
|
* Register a behavior for initialization.
|
||||||
* a behavior will execute only once even if it is initialized multiple times.
|
*
|
||||||
* If $config is nonempty, the behavior will be invoked once for each config.
|
* NOTE: If `$config` is empty, a behavior will execute only once even if it
|
||||||
|
* is initialized multiple times. If `$config` is nonempty, the behavior will
|
||||||
|
* be invoked once for each configuration.
|
||||||
*/
|
*/
|
||||||
public function initBehavior(
|
public function initBehavior(
|
||||||
$behavior,
|
$behavior,
|
||||||
array $config = array(),
|
array $config = array(),
|
||||||
$source_name) {
|
$source_name = null) {
|
||||||
|
|
||||||
$this->requireResource('javelin-behavior-'.$behavior, $source_name);
|
$this->requireResource('javelin-behavior-'.$behavior, $source_name);
|
||||||
|
|
||||||
|
|
|
@ -353,7 +353,7 @@ abstract class DrydockBlueprintImplementation {
|
||||||
public static function writeLog(
|
public static function writeLog(
|
||||||
DrydockResource $resource = null,
|
DrydockResource $resource = null,
|
||||||
DrydockLease $lease = null,
|
DrydockLease $lease = null,
|
||||||
$message) {
|
$message = null) {
|
||||||
|
|
||||||
$log = id(new DrydockLog())
|
$log = id(new DrydockLog())
|
||||||
->setEpoch(time())
|
->setEpoch(time())
|
||||||
|
|
|
@ -87,8 +87,8 @@ final class PhabricatorUserLog extends PhabricatorUserDAO
|
||||||
|
|
||||||
public static function initializeNewLog(
|
public static function initializeNewLog(
|
||||||
PhabricatorUser $actor = null,
|
PhabricatorUser $actor = null,
|
||||||
$object_phid,
|
$object_phid = null,
|
||||||
$action) {
|
$action = null) {
|
||||||
|
|
||||||
$log = new PhabricatorUserLog();
|
$log = new PhabricatorUserLog();
|
||||||
|
|
||||||
|
|
|
@ -78,9 +78,9 @@ final class PhragmentFragment extends PhragmentDAO
|
||||||
public static function createFromFile(
|
public static function createFromFile(
|
||||||
PhabricatorUser $viewer,
|
PhabricatorUser $viewer,
|
||||||
PhabricatorFile $file = null,
|
PhabricatorFile $file = null,
|
||||||
$path,
|
$path = null,
|
||||||
$view_policy,
|
$view_policy = null,
|
||||||
$edit_policy) {
|
$edit_policy = null) {
|
||||||
|
|
||||||
$fragment = id(new PhragmentFragment());
|
$fragment = id(new PhragmentFragment());
|
||||||
$fragment->setPath($path);
|
$fragment->setPath($path);
|
||||||
|
|
|
@ -125,12 +125,7 @@ final class AphrontSideNavFilterView extends AphrontView {
|
||||||
$key, $name, $uri, PHUIListItemView::TYPE_BUTTON);
|
$key, $name, $uri, PHUIListItemView::TYPE_BUTTON);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function addThing(
|
private function addThing($key, $name, $uri, $type) {
|
||||||
$key,
|
|
||||||
$name,
|
|
||||||
$uri = null,
|
|
||||||
$type) {
|
|
||||||
|
|
||||||
$item = id(new PHUIListItemView())
|
$item = id(new PHUIListItemView())
|
||||||
->setName($name)
|
->setName($name)
|
||||||
->setType($type);
|
->setType($type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue