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 PholioMockFulltextEngine extends PhabricatorFulltextEngine { prote..

Decoded Output download

<?php

final class PholioMockFulltextEngine
  extends PhabricatorFulltextEngine {

  protected function buildAbstractDocument(
    PhabricatorSearchAbstractDocument $document,
    $object) {

    $mock = $object;

    $document->setDocumentTitle($mock->getName());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $mock->getDescription());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $mock->getAuthorPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $mock->getDateCreated());

    $document->addRelationship(
      $mock->isClosed()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $mock->getPHID(),
      PholioMockPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PholioMockFulltextEngine
  extends PhabricatorFulltextEngine {

  protected function buildAbstractDocument(
    PhabricatorSearchAbstractDocument $document,
    $object) {

    $mock = $object;

    $document->setDocumentTitle($mock->getName());

    $document->addField(
      PhabricatorSearchDocumentFieldType::FIELD_BODY,
      $mock->getDescription());

    $document->addRelationship(
      PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR,
      $mock->getAuthorPHID(),
      PhabricatorPeopleUserPHIDType::TYPECONST,
      $mock->getDateCreated());

    $document->addRelationship(
      $mock->isClosed()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $mock->getPHID(),
      PholioMockPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}

Function Calls

None

Variables

None

Stats

MD5 9e82ed245b00687c1561d6c2543d1a8a
Eval Count 0
Decode Time 107 ms