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 final class PhabricatorOwnersPackageStatusTransaction extends PhabricatorOwnersPa..

Decoded Output download

<?php

final class PhabricatorOwnersPackageStatusTransaction
  extends PhabricatorOwnersPackageTransactionType {

  const TRANSACTIONTYPE = 'owners.status';

  public function generateOldValue($object) {
    return $object->getStatus();
  }

  public function applyInternalEffects($object, $value) {
    $object->setStatus($value);
  }

  public function getTitle() {
    $new = $this->getNewValue();
    if ($new == PhabricatorOwnersPackage::STATUS_ACTIVE) {
      return pht(
        '%s activated this package.',
        $this->renderAuthor());
    } else if ($new == PhabricatorOwnersPackage::STATUS_ARCHIVED) {
      return pht(
        '%s archived this package.',
        $this->renderAuthor());
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorOwnersPackageStatusTransaction
  extends PhabricatorOwnersPackageTransactionType {

  const TRANSACTIONTYPE = 'owners.status';

  public function generateOldValue($object) {
    return $object->getStatus();
  }

  public function applyInternalEffects($object, $value) {
    $object->setStatus($value);
  }

  public function getTitle() {
    $new = $this->getNewValue();
    if ($new == PhabricatorOwnersPackage::STATUS_ACTIVE) {
      return pht(
        '%s activated this package.',
        $this->renderAuthor());
    } else if ($new == PhabricatorOwnersPackage::STATUS_ARCHIVED) {
      return pht(
        '%s archived this package.',
        $this->renderAuthor());
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 3c81940c7c24b36c3e43901a7190f63a
Eval Count 0
Decode Time 93 ms