1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 15:21:03 +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, PhabricatorPolicyInterface,
HarbormasterBuildableInterface, HarbormasterBuildableInterface,
PhabricatorApplicationTransactionInterface, PhabricatorApplicationTransactionInterface,
PhabricatorDestructableInterface { PhabricatorDestructibleInterface {
protected $revisionID; protected $revisionID;
protected $authorPHID; protected $authorPHID;
@ -392,7 +392,7 @@ final class DifferentialDiff
} }
/* -( PhabricatorDestructableInterface )----------------------------------- */ /* -( PhabricatorDestructibleInterface )----------------------------------- */
public function destroyObjectPermanently( public function destroyObjectPermanently(

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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