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 PhabricatorProjectsAncestorsSearchEngineAttachment extends Phabricato..

Decoded Output download

<?php

final class PhabricatorProjectsAncestorsSearchEngineAttachment
  extends PhabricatorSearchEngineAttachment {

  public function getAttachmentName() {
    return pht('Project Ancestors');
  }

  public function getAttachmentDescription() {
    return pht('Get the full ancestor list for each project.');
  }

  public function getAttachmentForObject($object, $data, $spec) {
    $ancestors = $object->getAncestorProjects();

    // Order ancestors by depth, ascending.
    $ancestors = array_reverse($ancestors);

    $results = array();
    foreach ($ancestors as $ancestor) {
      $results[] = $ancestor->getRefForConduit();
    }

    return array(
      'ancestors' => $results,
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorProjectsAncestorsSearchEngineAttachment
  extends PhabricatorSearchEngineAttachment {

  public function getAttachmentName() {
    return pht('Project Ancestors');
  }

  public function getAttachmentDescription() {
    return pht('Get the full ancestor list for each project.');
  }

  public function getAttachmentForObject($object, $data, $spec) {
    $ancestors = $object->getAncestorProjects();

    // Order ancestors by depth, ascending.
    $ancestors = array_reverse($ancestors);

    $results = array();
    foreach ($ancestors as $ancestor) {
      $results[] = $ancestor->getRefForConduit();
    }

    return array(
      'ancestors' => $results,
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 4511b9fe24b1524d2a50a6e73b407346
Eval Count 0
Decode Time 93 ms