Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / pholio / relationships / PholioMockRelationship.php
blob0d34f2108b38c0a2be921168918e206d660e765c
1 <?php
3 abstract class PholioMockRelationship
4 extends PhabricatorObjectRelationship {
6 public function isEnabledForObject($object) {
7 $viewer = $this->getViewer();
9 $has_app = PhabricatorApplication::isClassInstalledForViewer(
10 'PhabricatorPholioApplication',
11 $viewer);
12 if (!$has_app) {
13 return false;
16 return ($object instanceof PholioMock);