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 PhabricatorUserSinceField extends PhabricatorUserCustomField { pri..

Decoded Output download

<?php

final class PhabricatorUserSinceField
  extends PhabricatorUserCustomField {

  private $value;

  public function getFieldKey() {
    return 'user:since';
  }

  public function getFieldName() {
    return pht('User Since');
  }

  public function getFieldDescription() {
    return pht('Shows user join date.');
  }

  public function shouldAppearInPropertyView() {
    return true;
  }

  public function renderPropertyViewValue(array $handles) {
    $absolute = phabricator_datetime(
      $this->getObject()->getDateCreated(),
      $this->getViewer());

    $relative = phutil_format_relative_time_detailed(
      time() - $this->getObject()->getDateCreated(),
      $levels = 2);

    return hsprintf('%s (%s)', $absolute, $relative);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorUserSinceField
  extends PhabricatorUserCustomField {

  private $value;

  public function getFieldKey() {
    return 'user:since';
  }

  public function getFieldName() {
    return pht('User Since');
  }

  public function getFieldDescription() {
    return pht('Shows user join date.');
  }

  public function shouldAppearInPropertyView() {
    return true;
  }

  public function renderPropertyViewValue(array $handles) {
    $absolute = phabricator_datetime(
      $this->getObject()->getDateCreated(),
      $this->getViewer());

    $relative = phutil_format_relative_time_detailed(
      time() - $this->getObject()->getDateCreated(),
      $levels = 2);

    return hsprintf('%s (%s)', $absolute, $relative);
  }

}

Function Calls

None

Variables

None

Stats

MD5 9037809370c44b68a99a15b7988af305
Eval Count 0
Decode Time 76 ms