1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Rename PhabricatorDestructableInterface interface

Summary: Ref T5655. The `PhabricatorDestructibleInterface` interface is misspelled as `PhabricatorDestructableInterface`. Fix the spelling mistake.

Test Plan: `grep`. Seeing as this interface is fairly recent, I don't expect that this would cause any widespread breakages.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D9988
This commit is contained in:
Joshua Spence 2014-07-21 23:59:22 +10:00
parent 9d64beeaa3
commit 76ed7d1a02
19 changed files with 343 additions and 340 deletions

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@ final class DifferentialDiff
PhabricatorPolicyInterface,
HarbormasterBuildableInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
protected $revisionID;
protected $authorPHID;
@ -392,7 +392,7 @@ final class DifferentialDiff
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -10,7 +10,7 @@ final class DifferentialRevision extends DifferentialDAO
PhabricatorSubscribableInterface,
PhabricatorCustomFieldInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorDestructableInterface,
PhabricatorDestructibleInterface,
PhabricatorProjectInterface {
protected $title = '';
@ -449,7 +449,7 @@ final class DifferentialRevision extends DifferentialDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -4,7 +4,7 @@ final class HeraldRule extends HeraldDAO
implements
PhabricatorFlaggableInterface,
PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
const TABLE_RULE_APPLIED = 'herald_ruleapplied';
@ -252,7 +252,7 @@ final class HeraldRule extends HeraldDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {

View file

@ -5,7 +5,7 @@ final class LegalpadDocument extends LegalpadDAO
PhabricatorPolicyInterface,
PhabricatorSubscribableInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
protected $title;
protected $contributorCount;
@ -201,7 +201,7 @@ final class LegalpadDocument extends LegalpadDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -3,7 +3,7 @@
final class PhabricatorMetaMTAMailingList extends PhabricatorMetaMTADAO
implements
PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
protected $name;
protected $email;
@ -43,7 +43,7 @@ final class PhabricatorMetaMTAMailingList extends PhabricatorMetaMTADAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -8,7 +8,7 @@ final class ManiphestTask extends ManiphestDAO
PhabricatorFlaggableInterface,
PhrequentTrackableInterface,
PhabricatorCustomFieldInterface,
PhabricatorDestructableInterface,
PhabricatorDestructibleInterface,
PhabricatorApplicationTransactionInterface {
const MARKUP_FIELD_DESCRIPTION = 'markup:desc';
@ -285,7 +285,7 @@ final class ManiphestTask extends ManiphestDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -9,7 +9,7 @@ final class PhabricatorUser
PhutilPerson,
PhabricatorPolicyInterface,
PhabricatorCustomFieldInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
const SESSION_TABLE = 'phabricator_session';
const NAMETOKEN_TABLE = 'user_nametoken';
@ -821,7 +821,7 @@ EOBODY;
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -9,7 +9,7 @@ final class PholioMock extends PholioDAO
PhabricatorFlaggableInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorProjectInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
const MARKUP_FIELD_DESCRIPTION = 'markup:description';
@ -258,7 +258,7 @@ final class PholioMock extends PholioDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -6,7 +6,7 @@ final class PhrictionDocument extends PhrictionDAO
PhabricatorSubscribableInterface,
PhabricatorFlaggableInterface,
PhabricatorTokenReceiverInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
protected $slug;
protected $depth;
@ -183,7 +183,7 @@ final class PhrictionDocument extends PhrictionDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -6,7 +6,7 @@ final class PhabricatorProject extends PhabricatorProjectDAO
PhabricatorPolicyInterface,
PhabricatorSubscribableInterface,
PhabricatorCustomFieldInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
protected $name;
protected $status = PhabricatorProjectStatus::STATUS_ACTIVE;
@ -308,7 +308,7 @@ final class PhabricatorProject extends PhabricatorProjectDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {

View file

@ -2,8 +2,9 @@
final class PhabricatorProjectColumn
extends PhabricatorProjectDAO
implements PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
implements
PhabricatorPolicyInterface,
PhabricatorDestructibleInterface {
const STATUS_ACTIVE = 0;
const STATUS_HIDDEN = 1;
@ -99,7 +100,7 @@ final class PhabricatorProjectColumn
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {

View file

@ -8,7 +8,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
PhabricatorPolicyInterface,
PhabricatorFlaggableInterface,
PhabricatorMarkupInterface,
PhabricatorDestructableInterface,
PhabricatorDestructibleInterface,
PhabricatorProjectInterface {
/**
@ -1387,7 +1387,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {

View file

@ -2,8 +2,9 @@
final class PhabricatorRepositoryArcanistProject
extends PhabricatorRepositoryDAO
implements PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
implements
PhabricatorPolicyInterface,
PhabricatorDestructibleInterface {
protected $name;
protected $repositoryID;
@ -89,7 +90,7 @@ final class PhabricatorRepositoryArcanistProject
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {

View file

@ -4,7 +4,7 @@ final class PhabricatorDestructionEngine extends Phobject {
private $rootLogID;
public function destroyObject(PhabricatorDestructableInterface $object) {
public function destroyObject(PhabricatorDestructibleInterface $object) {
$log = id(new PhabricatorSystemDestructionLog())
->setEpoch(time())
->setObjectClass(get_class($object));

View file

@ -1,6 +1,6 @@
<?php
interface PhabricatorDestructableInterface {
interface PhabricatorDestructibleInterface {
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine);

View file

@ -45,12 +45,12 @@ final class PhabricatorSystemRemoveDestroyWorkflow
}
foreach ($named_objects as $object_name => $object) {
if (!($object instanceof PhabricatorDestructableInterface)) {
if (!($object instanceof PhabricatorDestructibleInterface)) {
throw new PhutilArgumentUsageException(
pht(
'Object "%s" can not be destroyed (it does not implement %s).',
$object_name,
'PhabricatorDestructableInterface'));
'PhabricatorDestructibleInterface'));
}
}

View file

@ -4,7 +4,7 @@ abstract class PhabricatorApplicationTransaction
extends PhabricatorLiskDAO
implements
PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
const TARGET_TEXT = 'text';
const TARGET_HTML = 'html';
@ -1026,7 +1026,7 @@ abstract class PhabricatorApplicationTransaction
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(

View file

@ -5,7 +5,7 @@ abstract class PhabricatorApplicationTransactionComment
implements
PhabricatorMarkupInterface,
PhabricatorPolicyInterface,
PhabricatorDestructableInterface {
PhabricatorDestructibleInterface {
const MARKUP_FIELD_COMMENT = 'markup:comment';
@ -135,7 +135,7 @@ abstract class PhabricatorApplicationTransactionComment
}
/* -( PhabricatorDestructableInterface )----------------------------------- */
/* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {