Page MenuHomePhabricator

D13863.id33489.diff
No OneTemporary

D13863.id33489.diff

diff --git a/src/aphront/configuration/AphrontApplicationConfiguration.php b/src/aphront/configuration/AphrontApplicationConfiguration.php
--- a/src/aphront/configuration/AphrontApplicationConfiguration.php
+++ b/src/aphront/configuration/AphrontApplicationConfiguration.php
@@ -246,13 +246,14 @@
if ($response instanceof AphrontWebpageResponse) {
echo phutil_tag(
'div',
- array('style' =>
- 'background: #eeddff;'.
- 'white-space: pre-wrap;'.
- 'z-index: 200000;'.
- 'position: relative;'.
- 'padding: 8px;'.
- 'font-family: monospace',
+ array(
+ 'style' =>
+ 'background: #eeddff;'.
+ 'white-space: pre-wrap;'.
+ 'z-index: 200000;'.
+ 'position: relative;'.
+ 'padding: 8px;'.
+ 'font-family: monospace',
),
$unexpected_output);
}
diff --git a/src/applications/conpherence/__tests__/ConpherenceTestCase.php b/src/applications/conpherence/__tests__/ConpherenceTestCase.php
--- a/src/applications/conpherence/__tests__/ConpherenceTestCase.php
+++ b/src/applications/conpherence/__tests__/ConpherenceTestCase.php
@@ -7,9 +7,10 @@
ConpherenceThread $conpherence,
array $participant_phids) {
- $xactions = array(id(new ConpherenceTransaction())
- ->setTransactionType(ConpherenceTransaction::TYPE_PARTICIPANTS)
- ->setNewValue(array('+' => $participant_phids)),
+ $xactions = array(
+ id(new ConpherenceTransaction())
+ ->setTransactionType(ConpherenceTransaction::TYPE_PARTICIPANTS)
+ ->setNewValue(array('+' => $participant_phids)),
);
$editor = id(new ConpherenceEditor())
->setActor($actor)
@@ -23,9 +24,10 @@
ConpherenceThread $conpherence,
array $participant_phids) {
- $xactions = array(id(new ConpherenceTransaction())
- ->setTransactionType(ConpherenceTransaction::TYPE_PARTICIPANTS)
- ->setNewValue(array('-' => $participant_phids)),
+ $xactions = array(
+ id(new ConpherenceTransaction())
+ ->setTransactionType(ConpherenceTransaction::TYPE_PARTICIPANTS)
+ ->setNewValue(array('-' => $participant_phids)),
);
$editor = id(new ConpherenceEditor())
->setActor($actor)
diff --git a/src/applications/differential/conduit/DifferentialCreateDiffConduitAPIMethod.php b/src/applications/differential/conduit/DifferentialCreateDiffConduitAPIMethod.php
--- a/src/applications/differential/conduit/DifferentialCreateDiffConduitAPIMethod.php
+++ b/src/applications/differential/conduit/DifferentialCreateDiffConduitAPIMethod.php
@@ -143,9 +143,10 @@
'unitStatus' => $unit_status,
);
- $xactions = array(id(new DifferentialTransaction())
- ->setTransactionType(DifferentialDiffTransaction::TYPE_DIFF_CREATE)
- ->setNewValue($diff_data_dict),
+ $xactions = array(
+ id(new DifferentialTransaction())
+ ->setTransactionType(DifferentialDiffTransaction::TYPE_DIFF_CREATE)
+ ->setNewValue($diff_data_dict),
);
id(new DifferentialDiffEditor())
diff --git a/src/applications/differential/conduit/DifferentialCreateRawDiffConduitAPIMethod.php b/src/applications/differential/conduit/DifferentialCreateRawDiffConduitAPIMethod.php
--- a/src/applications/differential/conduit/DifferentialCreateRawDiffConduitAPIMethod.php
+++ b/src/applications/differential/conduit/DifferentialCreateRawDiffConduitAPIMethod.php
@@ -51,9 +51,10 @@
'unitStatus' => DifferentialUnitStatus::UNIT_SKIP,
);
- $xactions = array(id(new DifferentialTransaction())
- ->setTransactionType(DifferentialDiffTransaction::TYPE_DIFF_CREATE)
- ->setNewValue($diff_data_dict),
+ $xactions = array(
+ id(new DifferentialTransaction())
+ ->setTransactionType(DifferentialDiffTransaction::TYPE_DIFF_CREATE)
+ ->setNewValue($diff_data_dict),
);
if ($request->getValue('viewPolicy')) {
diff --git a/src/applications/differential/parser/DifferentialHunkParser.php b/src/applications/differential/parser/DifferentialHunkParser.php
--- a/src/applications/differential/parser/DifferentialHunkParser.php
+++ b/src/applications/differential/parser/DifferentialHunkParser.php
@@ -603,9 +603,9 @@
$start = $start - $add_context;
$end = $end + $add_context;
$hunk_content = array();
- $hunk_pos = array( '-' => 0, '+' => 0 );
- $hunk_offset = array( '-' => null, '+' => null );
- $hunk_last = array( '-' => null, '+' => null );
+ $hunk_pos = array('-' => 0, '+' => 0);
+ $hunk_offset = array('-' => null, '+' => null);
+ $hunk_last = array('-' => null, '+' => null);
foreach (explode("\n", $hunk->getChanges()) as $line) {
$in_common = strncmp($line, ' ', 1) === 0;
$in_old = strncmp($line, '-', 1) === 0 || $in_common;
diff --git a/src/applications/home/controller/PhabricatorHomeMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php
--- a/src/applications/home/controller/PhabricatorHomeMainController.php
+++ b/src/applications/home/controller/PhabricatorHomeMainController.php
@@ -219,7 +219,7 @@
$revisions = $revision_query->execute();
- list($blocking, $active, ) = DifferentialRevisionQuery::splitResponsible(
+ list($blocking, $active,) = DifferentialRevisionQuery::splitResponsible(
$revisions,
array($user_phid));
diff --git a/src/applications/passphrase/controller/PassphraseCredentialRevealController.php b/src/applications/passphrase/controller/PassphraseCredentialRevealController.php
--- a/src/applications/passphrase/controller/PassphraseCredentialRevealController.php
+++ b/src/applications/passphrase/controller/PassphraseCredentialRevealController.php
@@ -67,9 +67,10 @@
->addCancelButton($view_uri, pht('Done'));
$type_secret = PassphraseCredentialTransaction::TYPE_LOOKEDATSECRET;
- $xactions = array(id(new PassphraseCredentialTransaction())
- ->setTransactionType($type_secret)
- ->setNewValue(true),
+ $xactions = array(
+ id(new PassphraseCredentialTransaction())
+ ->setTransactionType($type_secret)
+ ->setNewValue(true),
);
$editor = id(new PassphraseCredentialTransactionEditor())
diff --git a/src/applications/project/controller/PhabricatorProjectColumnHideController.php b/src/applications/project/controller/PhabricatorProjectColumnHideController.php
--- a/src/applications/project/controller/PhabricatorProjectColumnHideController.php
+++ b/src/applications/project/controller/PhabricatorProjectColumnHideController.php
@@ -60,9 +60,10 @@
}
$type_status = PhabricatorProjectColumnTransaction::TYPE_STATUS;
- $xactions = array(id(new PhabricatorProjectColumnTransaction())
- ->setTransactionType($type_status)
- ->setNewValue($new_status),
+ $xactions = array(
+ id(new PhabricatorProjectColumnTransaction())
+ ->setTransactionType($type_status)
+ ->setNewValue($new_status),
);
$editor = id(new PhabricatorProjectColumnTransactionEditor())
diff --git a/src/applications/search/engine/PhabricatorElasticSearchEngine.php b/src/applications/search/engine/PhabricatorElasticSearchEngine.php
--- a/src/applications/search/engine/PhabricatorElasticSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorElasticSearchEngine.php
@@ -325,7 +325,7 @@
foreach ($types as $type) {
// Use the custom trigram analyzer for the corpus of text
$data['mappings'][$type]['properties']['field']['properties']['corpus'] =
- array( 'type' => 'string', 'analyzer' => 'custom_trigrams' );
+ array('type' => 'string', 'analyzer' => 'custom_trigrams');
// Ensure we have dateCreated since the default query requires it
$data['mappings'][$type]['properties']['dateCreated']['type'] = 'string';
diff --git a/src/applications/uiexample/examples/PHUIButtonExample.php b/src/applications/uiexample/examples/PHUIButtonExample.php
--- a/src/applications/uiexample/examples/PHUIButtonExample.php
+++ b/src/applications/uiexample/examples/PHUIButtonExample.php
@@ -68,7 +68,8 @@
// PHUIButtonView
- $colors = array(null,
+ $colors = array(
+ null,
PHUIButtonView::GREEN,
PHUIButtonView::GREY,
PHUIButtonView::DISABLED,
diff --git a/src/infrastructure/sms/worker/PhabricatorSMSWorker.php b/src/infrastructure/sms/worker/PhabricatorSMSWorker.php
--- a/src/infrastructure/sms/worker/PhabricatorSMSWorker.php
+++ b/src/infrastructure/sms/worker/PhabricatorSMSWorker.php
@@ -1,6 +1,4 @@
<?php
abstract class PhabricatorSMSWorker
- extends PhabricatorWorker {
-
-}
+ extends PhabricatorWorker {}
diff --git a/src/infrastructure/storage/lisk/__tests__/LiskChunkTestCase.php b/src/infrastructure/storage/lisk/__tests__/LiskChunkTestCase.php
--- a/src/infrastructure/storage/lisk/__tests__/LiskChunkTestCase.php
+++ b/src/infrastructure/storage/lisk/__tests__/LiskChunkTestCase.php
@@ -4,8 +4,10 @@
public function testSQLChunking() {
$fragments = array(
- 'a', 'a',
- 'b', 'b',
+ 'a',
+ 'a',
+ 'b',
+ 'b',
'ccc',
'dd',
'e',
@@ -23,7 +25,14 @@
$fragments = array(
- 'a', 'a', 'a', 'XX', 'a', 'a', 'a', 'a',
+ 'a',
+ 'a',
+ 'a',
+ 'XX',
+ 'a',
+ 'a',
+ 'a',
+ 'a',
);
$this->assertEqual(
@@ -38,7 +47,9 @@
$fragments = array(
'xxxxxxxxxx',
'yyyyyyyyyy',
- 'a', 'b', 'c',
+ 'a',
+ 'b',
+ 'c',
'zzzzzzzzzz',
);
diff --git a/src/infrastructure/util/__tests__/PhabricatorHashTestCase.php b/src/infrastructure/util/__tests__/PhabricatorHashTestCase.php
--- a/src/infrastructure/util/__tests__/PhabricatorHashTestCase.php
+++ b/src/infrastructure/util/__tests__/PhabricatorHashTestCase.php
@@ -19,9 +19,23 @@
// Test that the encoding produces 6 bits of entropy per byte.
$entropy = array(
- 'dog', 'cat', 'rat', 'bat', 'dig', 'fig', 'cot',
- 'cut', 'fog', 'rig', 'rug', 'dug', 'mat', 'pat',
- 'eat', 'tar', 'pot',
+ 'dog',
+ 'cat',
+ 'rat',
+ 'bat',
+ 'dig',
+ 'fig',
+ 'cot',
+ 'cut',
+ 'fog',
+ 'rig',
+ 'rug',
+ 'dug',
+ 'mat',
+ 'pat',
+ 'eat',
+ 'tar',
+ 'pot',
);
$seen = array();
diff --git a/src/view/AphrontDialogView.php b/src/view/AphrontDialogView.php
--- a/src/view/AphrontDialogView.php
+++ b/src/view/AphrontDialogView.php
@@ -290,10 +290,11 @@
}
if (!$this->renderAsForm) {
- $buttons = array(phabricator_form(
- $this->user,
- $form_attributes,
- array_merge($hidden_inputs, $buttons)),
+ $buttons = array(
+ phabricator_form(
+ $this->user,
+ $form_attributes,
+ array_merge($hidden_inputs, $buttons)),
);
}
diff --git a/src/view/__tests__/PhabricatorUnitsTestCase.php b/src/view/__tests__/PhabricatorUnitsTestCase.php
--- a/src/view/__tests__/PhabricatorUnitsTestCase.php
+++ b/src/view/__tests__/PhabricatorUnitsTestCase.php
@@ -55,7 +55,7 @@
public function testDetailedDurationFormatting() {
$expected_zero = 'now';
- $tests = array (
+ $tests = array(
12095939 => '19 w, 6 d',
-12095939 => '19 w, 6 d ago',

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 6:24 PM (7 h, 17 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6911549
Default Alt Text
D13863.id33489.diff (11 KB)

Event Timeline