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 PhabricatorRepositoryPushPolicyTransaction extends PhabricatorReposit..

Decoded Output download

<?php

final class PhabricatorRepositoryPushPolicyTransaction
  extends PhabricatorRepositoryTransactionType {

  const TRANSACTIONTYPE = 'repo:push-policy';

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

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

  public function getTitle() {
    return pht(
      '%s changed the push policy of this repository from %s to %s.',
      $this->renderAuthor(),
      $this->renderOldPolicy(),
      $this->renderNewPolicy());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorRepositoryPushPolicyTransaction
  extends PhabricatorRepositoryTransactionType {

  const TRANSACTIONTYPE = 'repo:push-policy';

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

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

  public function getTitle() {
    return pht(
      '%s changed the push policy of this repository from %s to %s.',
      $this->renderAuthor(),
      $this->renderOldPolicy(),
      $this->renderNewPolicy());
  }

}

Function Calls

None

Variables

None

Stats

MD5 ae1fa17d5e1806b68a23351347e47b48
Eval Count 0
Decode Time 109 ms