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 PhabricatorProjectStatus extends Phobject { const STATUS_ACTIVE ..

Decoded Output download

<?php

final class PhabricatorProjectStatus extends Phobject {

  const STATUS_ACTIVE       = 0;
  const STATUS_ARCHIVED     = 100;

  public static function getNameForStatus($status) {
    $map = array(
      self::STATUS_ACTIVE     => pht('Active'),
      self::STATUS_ARCHIVED   => pht('Archived'),
    );

    return idx($map, coalesce($status, '?'), pht('Unknown'));
  }

  public static function getStatusMap() {
    return array(
      self::STATUS_ACTIVE   => pht('Active'),
      self::STATUS_ARCHIVED => pht('Archived'),
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorProjectStatus extends Phobject {

  const STATUS_ACTIVE       = 0;
  const STATUS_ARCHIVED     = 100;

  public static function getNameForStatus($status) {
    $map = array(
      self::STATUS_ACTIVE     => pht('Active'),
      self::STATUS_ARCHIVED   => pht('Archived'),
    );

    return idx($map, coalesce($status, '?'), pht('Unknown'));
  }

  public static function getStatusMap() {
    return array(
      self::STATUS_ACTIVE   => pht('Active'),
      self::STATUS_ARCHIVED => pht('Archived'),
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 5bf9175cc713799ae31ff1ca342362ce
Eval Count 0
Decode Time 88 ms