1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Apply some autofix linter rules

Summary: Self-explanatory.

Test Plan: Eyeball it.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10454
This commit is contained in:
Joshua Spence 2014-09-10 06:49:56 +10:00
parent 675cf3f6a3
commit 0151c38b10
78 changed files with 84 additions and 241 deletions

View file

@ -52,8 +52,7 @@ abstract class AphrontApplicationConfiguration {
return $this->path;
}
public function willBuildRequest() {
}
public function willBuildRequest() {}
/* -( URI Routing )-------------------------------------------------------- */

View file

@ -1,5 +1,3 @@
<?php
final class AphrontCSRFException extends AphrontException {
}
final class AphrontCSRFException extends AphrontException {}

View file

@ -1,5 +1,3 @@
<?php
abstract class AphrontException extends Exception {
}
abstract class AphrontException extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorAuditManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
final class PhabricatorAuthHighSecurityToken {
}
final class PhabricatorAuthHighSecurityToken {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorAuthManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -33,8 +33,6 @@ final class PhabricatorTestController extends PhabricatorController {
return $this->getConfig('enabled', parent::shouldRequireEnabledUser());
}
public function processRequest() {
}
public function processRequest() {}
}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorCacheManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,4 +1,3 @@
<?php
final class PhabricatorCalendarEventInvalidEpochException extends Exception {
}
final class PhabricatorCalendarEventInvalidEpochException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorChatLogConstants {
}
abstract class PhabricatorChatLogConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorChatLogController extends PhabricatorController {
}
abstract class PhabricatorChatLogController extends PhabricatorController {}

View file

@ -1,5 +1,3 @@
<?php
abstract class ConduitMethodNotFoundException extends ConduitException {
}
abstract class ConduitMethodNotFoundException extends ConduitException {}

View file

@ -1,5 +1,3 @@
<?php
final class PhabricatorConfigValidationException extends Exception {
}
final class PhabricatorConfigValidationException extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorConfigManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorDashboardController extends PhabricatorController {
}
abstract class PhabricatorDashboardController extends PhabricatorController {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorDashboardPanelCustomField
extends PhabricatorCustomField {
}
extends PhabricatorCustomField {}

View file

@ -1040,8 +1040,7 @@ final class DifferentialTransactionEditor
PhabricatorLiskDAO $object,
PhabricatorApplicationTransaction $xaction) {
switch ($xaction->getTransactionType()) {
}
switch ($xaction->getTransactionType()) {}
return parent::requireCapabilities($object, $xaction);
}

View file

@ -1,5 +1,3 @@
<?php
final class DifferentialDiffCreationRejectException extends Exception {
}
final class DifferentialDiffCreationRejectException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
final class DifferentialFieldParseException extends Exception {
}
final class DifferentialFieldParseException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
final class DifferentialFieldValidationException extends Exception {
}
final class DifferentialFieldValidationException extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorHunksManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -133,8 +133,7 @@ final class DiffusionBrowseSearchController extends DiffusionBrowseController {
try {
Futures($futures)->limit(8)->resolveAll();
} catch (PhutilSyntaxHighlighterException $ex) {
}
} catch (PhutilSyntaxHighlighterException $ex) {}
$rows = array();
foreach ($results as $result) {
@ -148,8 +147,7 @@ final class DiffusionBrowseSearchController extends DiffusionBrowseController {
try {
$string = $futures["{$path}:{$line}"]->resolve();
} catch (PhutilSyntaxHighlighterException $ex) {
}
} catch (PhutilSyntaxHighlighterException $ex) {}
$string = phutil_tag(
'pre',

View file

@ -1,5 +1,3 @@
<?php
abstract class DiffusionPushLogController extends DiffusionController {
}
abstract class DiffusionPushLogController extends DiffusionController {}

View file

@ -1,5 +1,3 @@
<?php
final class DiffusionCommitHookRejectException extends Exception {
}
final class DiffusionCommitHookRejectException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
abstract class DiffusionSSHMercurialWorkflow extends DiffusionSSHWorkflow {
}
abstract class DiffusionSSHMercurialWorkflow extends DiffusionSSHWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
final class DoorkeeperMissingLinkException extends Exception {
}
final class DoorkeeperMissingLinkException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
abstract class DrydockConstants {
}
abstract class DrydockConstants {}

View file

@ -1,6 +1,4 @@
<?php
abstract class DrydockBlueprintCustomField
extends PhabricatorCustomField {
}
extends PhabricatorCustomField {}

View file

@ -1,6 +1,4 @@
<?php
abstract class DrydockManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -21,9 +21,7 @@ final class DrydockBlueprintSearchEngine
public function buildSearchForm(
AphrontFormView $form,
PhabricatorSavedQuery $saved) {
}
PhabricatorSavedQuery $saved) {}
protected function getURI($path) {
return '/drydock/blueprint/'.$path;

View file

@ -20,9 +20,7 @@ final class DrydockLogSearchEngine extends PhabricatorApplicationSearchEngine {
public function buildSearchForm(
AphrontFormView $form,
PhabricatorSavedQuery $saved) {
}
PhabricatorSavedQuery $saved) {}
protected function getURI($path) {
return '/drydock/log/'.$path;

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorFactController extends PhabricatorController {
}
abstract class PhabricatorFactController extends PhabricatorController {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorFactManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorFeedConstants {
}
abstract class PhabricatorFeedConstants {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorFeedManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -22,15 +22,11 @@ final class PhabricatorFileEditor
protected function getCustomTransactionOldValue(
PhabricatorLiskDAO $object,
PhabricatorApplicationTransaction $xaction) {
}
PhabricatorApplicationTransaction $xaction) {}
protected function getCustomTransactionNewValue(
PhabricatorLiskDAO $object,
PhabricatorApplicationTransaction $xaction) {
}
PhabricatorApplicationTransaction $xaction) {}
protected function applyCustomInternalTransaction(
PhabricatorLiskDAO $object,
@ -45,8 +41,7 @@ final class PhabricatorFileEditor
protected function applyCustomExternalTransaction(
PhabricatorLiskDAO $object,
PhabricatorApplicationTransaction $xaction) {
}
PhabricatorApplicationTransaction $xaction) {}
protected function shouldSendMail(
PhabricatorLiskDAO $object,

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorFlagConstants {
}
abstract class PhabricatorFlagConstants {}

View file

@ -1,5 +1,3 @@
<?php
interface PhabricatorFlaggableInterface extends PhabricatorPHIDInterface {
}
interface PhabricatorFlaggableInterface extends PhabricatorPHIDInterface {}

View file

@ -1,6 +1,4 @@
<?php
abstract class HarbormasterBuildStepCustomField
extends PhabricatorCustomField {
}
extends PhabricatorCustomField {}

View file

@ -1,5 +1,3 @@
<?php
final class HarbormasterBuildAbortedException extends Exception {
}
final class HarbormasterBuildAbortedException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
final class HarbormasterBuildFailureException extends Exception {
}
final class HarbormasterBuildFailureException extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class HarbormasterManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorLipsumManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
abstract class MetaMTAConstants {
}
abstract class MetaMTAConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorMetaMTAController extends PhabricatorController {
}
abstract class PhabricatorMetaMTAController extends PhabricatorController {}

View file

@ -1,6 +1,4 @@
<?php
final class PhabricatorMetaMTAPermanentFailureException
extends Exception {
}
extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorMailManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
abstract class NuanceConstants {
}
abstract class NuanceConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class NuanceController extends PhabricatorController {
}
abstract class NuanceController extends PhabricatorController {}

View file

@ -34,10 +34,8 @@ final class NuancePhabricatorFormSourceDefinition
return $transactions;
}
public function renderView() {
}
public function renderView() {}
public function renderListView() {
}
public function renderListView() {}
}

View file

@ -1,7 +1,4 @@
<?php
abstract class PhabricatorUserCustomField
extends PhabricatorCustomField {
}
extends PhabricatorCustomField {}

View file

@ -25,8 +25,7 @@ final class PhabricatorPeopleTestDataGenerator
->createNewUser($user, $email_object);
return $user;
} catch (AphrontDuplicateKeyQueryException $ex) {
}
} catch (AphrontDuplicateKeyQueryException $ex) {}
}
}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorObjectHandleConstants {
}
abstract class PhabricatorObjectHandleConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhortuneConstants {
}
abstract class PhortuneConstants {}

View file

@ -1,5 +1,3 @@
<?php
interface PhrequentTrackableInterface {
}
interface PhrequentTrackableInterface {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorPolicyConstants {
}
abstract class PhabricatorPolicyConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorPolicyController extends PhabricatorController {
}
abstract class PhabricatorPolicyController extends PhabricatorController {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorPolicyManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,4 +1,3 @@
<?php
abstract class PonderConstants {
}
abstract class PonderConstants {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorProjectConstants {
}
abstract class PhabricatorProjectConstants {}

View file

@ -4,6 +4,4 @@
* Thrown when you try to save a project with a name too similar to another
* project.
*/
final class PhabricatorProjectNameCollisionException extends Exception {
}
final class PhabricatorProjectNameCollisionException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
interface PhabricatorProjectInterface {
}
interface PhabricatorProjectInterface {}

View file

@ -193,13 +193,9 @@ final class PhabricatorProjectSearchEngine
);
}
private function getColorValues() {
private function getColorValues() {}
}
private function getIconValues() {
}
private function getIconValues() {}
protected function getRequiredHandlePHIDsForResultList(
array $projects,

View file

@ -1,5 +1,3 @@
<?php
abstract class ReleephRequestController extends ReleephController {
}
abstract class ReleephRequestController extends ReleephController {}

View file

@ -1,7 +1,4 @@
<?php
abstract class PhabricatorCommitCustomField
extends PhabricatorCustomField {
}
extends PhabricatorCustomField {}

View file

@ -257,8 +257,7 @@ final class PhabricatorRepositoryEditor
PhabricatorApplicationTransaction $v) {
$type = $u->getTransactionType();
switch ($type) {
}
switch ($type) {}
return parent::mergeTransactions($u, $v);
}
@ -271,9 +270,7 @@ final class PhabricatorRepositoryEditor
$new = $xaction->getNewValue();
$type = $xaction->getTransactionType();
switch ($type) {
}
switch ($type) {}
return parent::transactionHasEffect($object, $xaction);
}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorSearchManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorSystemRemoveWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,6 +1,4 @@
<?php
abstract class CelerityManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,6 +1,4 @@
<?php
final class PhabricatorCustomFieldNotAttachedException
extends Exception {
}
extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
final class PhabricatorWorkerPermanentFailureException extends Exception {
}
final class PhabricatorWorkerPermanentFailureException extends Exception {}

View file

@ -1,5 +1,3 @@
<?php
abstract class PhabricatorEdgeConstants {
}
abstract class PhabricatorEdgeConstants {}

View file

@ -12,6 +12,4 @@
* startup. This allows it to be used with custom one-offs that can be dropped
* into `phabricator/src/extensions/`.
*/
abstract class PhabricatorAutoEventListener extends PhabricatorEventListener {
}
abstract class PhabricatorAutoEventListener extends PhabricatorEventListener {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorInternationalizationManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
final class PhabricatorEmptyQueryException extends Exception {
}
final class PhabricatorEmptyQueryException extends Exception {}

View file

@ -1,6 +1,4 @@
<?php
abstract class PhabricatorSMSManagementWorkflow
extends PhabricatorManagementWorkflow {
}
extends PhabricatorManagementWorkflow {}

View file

@ -1,5 +1,3 @@
<?php
final class PhabricatorPasswordHasherUnavailableException extends Exception {
}
final class PhabricatorPasswordHasherUnavailableException extends Exception {}