Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php abstract class DifferentialRevisionRelationship extends PhabricatorObjectRelation..

Decoded Output download

<?php

abstract class DifferentialRevisionRelationship
  extends PhabricatorObjectRelationship {

  public function isEnabledForObject($object) {
    $viewer = $this->getViewer();

    $has_app = PhabricatorApplication::isClassInstalledForViewer(
      'PhabricatorDifferentialApplication',
      $viewer);
    if (!$has_app) {
      return false;
    }

    return ($object instanceof DifferentialRevision);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class DifferentialRevisionRelationship
  extends PhabricatorObjectRelationship {

  public function isEnabledForObject($object) {
    $viewer = $this->getViewer();

    $has_app = PhabricatorApplication::isClassInstalledForViewer(
      'PhabricatorDifferentialApplication',
      $viewer);
    if (!$has_app) {
      return false;
    }

    return ($object instanceof DifferentialRevision);
  }

}

Function Calls

None

Variables

None

Stats

MD5 43bf1ded7c9dd047d40b9db1db62eff5
Eval Count 0
Decode Time 84 ms