Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14058008
D12782.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D12782.diff
View Options
diff --git a/src/applications/celerity/CelerityStaticResourceResponse.php b/src/applications/celerity/CelerityStaticResourceResponse.php
--- a/src/applications/celerity/CelerityStaticResourceResponse.php
+++ b/src/applications/celerity/CelerityStaticResourceResponse.php
@@ -33,14 +33,16 @@
}
/**
- * 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);
diff --git a/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockBlueprintImplementation.php
@@ -353,7 +353,7 @@
public static function writeLog(
DrydockResource $resource = null,
DrydockLease $lease = null,
- $message) {
+ $message = null) {
$log = id(new DrydockLog())
->setEpoch(time())
diff --git a/src/applications/people/storage/PhabricatorUserLog.php b/src/applications/people/storage/PhabricatorUserLog.php
--- a/src/applications/people/storage/PhabricatorUserLog.php
+++ b/src/applications/people/storage/PhabricatorUserLog.php
@@ -87,8 +87,8 @@
public static function initializeNewLog(
PhabricatorUser $actor = null,
- $object_phid,
- $action) {
+ $object_phid = null,
+ $action = null) {
$log = new PhabricatorUserLog();
diff --git a/src/applications/phragment/storage/PhragmentFragment.php b/src/applications/phragment/storage/PhragmentFragment.php
--- a/src/applications/phragment/storage/PhragmentFragment.php
+++ b/src/applications/phragment/storage/PhragmentFragment.php
@@ -78,9 +78,9 @@
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);
diff --git a/src/view/layout/AphrontSideNavFilterView.php b/src/view/layout/AphrontSideNavFilterView.php
--- a/src/view/layout/AphrontSideNavFilterView.php
+++ b/src/view/layout/AphrontSideNavFilterView.php
@@ -125,12 +125,7 @@
$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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 8:43 AM (19 h, 57 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716645
Default Alt Text
D12782.diff (3 KB)
Attached To
Mode
D12782: Fix some method signatures
Attached
Detach File
Event Timeline
Log In to Comment