mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-20 16:20:09 +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,
|
||||
* 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.
|
||||
* Register a behavior for initialization.
|
||||
*
|
||||
* 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(
|
||||
$behavior,
|
||||
array $config = array(),
|
||||
$source_name) {
|
||||
$source_name = null) {
|
||||
|
||||
$this->requireResource('javelin-behavior-'.$behavior, $source_name);
|
||||
|
||||
|
|
|
@ -353,7 +353,7 @@ abstract class DrydockBlueprintImplementation {
|
|||
public static function writeLog(
|
||||
DrydockResource $resource = null,
|
||||
DrydockLease $lease = null,
|
||||
$message) {
|
||||
$message = null) {
|
||||
|
||||
$log = id(new DrydockLog())
|
||||
->setEpoch(time())
|
||||
|
|
|
@ -87,8 +87,8 @@ final class PhabricatorUserLog extends PhabricatorUserDAO
|
|||
|
||||
public static function initializeNewLog(
|
||||
PhabricatorUser $actor = null,
|
||||
$object_phid,
|
||||
$action) {
|
||||
$object_phid = null,
|
||||
$action = null) {
|
||||
|
||||
$log = new PhabricatorUserLog();
|
||||
|
||||
|
|
|
@ -78,9 +78,9 @@ final class PhragmentFragment extends PhragmentDAO
|
|||
public static function createFromFile(
|
||||
PhabricatorUser $viewer,
|
||||
PhabricatorFile $file = null,
|
||||
$path,
|
||||
$view_policy,
|
||||
$edit_policy) {
|
||||
$path = null,
|
||||
$view_policy = null,
|
||||
$edit_policy = null) {
|
||||
|
||||
$fragment = id(new PhragmentFragment());
|
||||
$fragment->setPath($path);
|
||||
|
|
|
@ -125,12 +125,7 @@ final class AphrontSideNavFilterView extends AphrontView {
|
|||
$key, $name, $uri, PHUIListItemView::TYPE_BUTTON);
|
||||
}
|
||||
|
||||
private function addThing(
|
||||
$key,
|
||||
$name,
|
||||
$uri = null,
|
||||
$type) {
|
||||
|
||||
private function addThing($key, $name, $uri, $type) {
|
||||
$item = id(new PHUIListItemView())
|
||||
->setName($name)
|
||||
->setType($type);
|
||||
|
|
Loading…
Add table
Reference in a new issue