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 PassphraseCredentialFulltextEngine extends PhabricatorFulltextEngine ..

Decoded Output download

<?php

final class PassphraseCredentialFulltextEngine
  extends PhabricatorFulltextEngine {

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

    $credential = $object;

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

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

    $document->addRelationship(
      $credential->getIsDestroyed()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $credential->getPHID(),
      PassphraseCredentialPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PassphraseCredentialFulltextEngine
  extends PhabricatorFulltextEngine {

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

    $credential = $object;

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

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

    $document->addRelationship(
      $credential->getIsDestroyed()
        ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED
        : PhabricatorSearchRelationship::RELATIONSHIP_OPEN,
      $credential->getPHID(),
      PassphraseCredentialPHIDType::TYPECONST,
      PhabricatorTime::getNow());
  }

}

Function Calls

None

Variables

None

Stats

MD5 5987ca708592da8a39c385f77c6027dc
Eval Count 0
Decode Time 109 ms