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 interface PhabricatorPolicyInterface extends PhabricatorPHIDInterface { public f..

Decoded Output download

<?php

interface PhabricatorPolicyInterface extends PhabricatorPHIDInterface {

  public function getCapabilities();
  public function getPolicy($capability);
  public function hasAutomaticCapability($capability, PhabricatorUser $viewer);

}

// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////

/* -(  PhabricatorPolicyInterface  )----------------------------------------- */
/*

  public function getCapabilities() {
    return array(
      PhabricatorPolicyCapability::CAN_VIEW,
    );
  }

  public function getPolicy($capability) {
    switch ($capability) {
      case PhabricatorPolicyCapability::CAN_VIEW:
        return PhabricatorPolicies::POLICY_USER;
    }
  }

  public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
    return false;
  }

*/
 ?>

Did this file decode correctly?

Original Code

<?php

interface PhabricatorPolicyInterface extends PhabricatorPHIDInterface {

  public function getCapabilities();
  public function getPolicy($capability);
  public function hasAutomaticCapability($capability, PhabricatorUser $viewer);

}

// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////

/* -(  PhabricatorPolicyInterface  )----------------------------------------- */
/*

  public function getCapabilities() {
    return array(
      PhabricatorPolicyCapability::CAN_VIEW,
    );
  }

  public function getPolicy($capability) {
    switch ($capability) {
      case PhabricatorPolicyCapability::CAN_VIEW:
        return PhabricatorPolicies::POLICY_USER;
    }
  }

  public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
    return false;
  }

*/

Function Calls

None

Variables

None

Stats

MD5 0588692443e4c857b8452ad0108f2e23
Eval Count 0
Decode Time 87 ms