mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 04:32:43 +01:00
18 lines
322 B
PHP
18 lines
322 B
PHP
|
<?php
|
||
|
|
||
|
abstract class DiffusionPreCommitContentHeraldField extends HeraldField {
|
||
|
|
||
|
public function supportsObject($object) {
|
||
|
if (!($object instanceof PhabricatorRepositoryPushLog)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
if ($this->getAdapter()->isPreCommitRefAdapter()) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|