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 DifferentialRevisionDraftEngine extends PhabricatorDraftEngine { p..

Decoded Output download

<?php

final class DifferentialRevisionDraftEngine
  extends PhabricatorDraftEngine {

  protected function hasCustomDraftContent() {
    $viewer = $this->getViewer();
    $revision = $this->getObject();

    $inlines = id(new DifferentialDiffInlineCommentQuery())
      ->setViewer($viewer)
      ->withRevisionPHIDs(array($revision->getPHID()))
      ->withPublishableComments(true)
      ->setReturnPartialResultsOnOverheat(true)
      ->setLimit(1)
      ->execute();

    return (bool)$inlines;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DifferentialRevisionDraftEngine
  extends PhabricatorDraftEngine {

  protected function hasCustomDraftContent() {
    $viewer = $this->getViewer();
    $revision = $this->getObject();

    $inlines = id(new DifferentialDiffInlineCommentQuery())
      ->setViewer($viewer)
      ->withRevisionPHIDs(array($revision->getPHID()))
      ->withPublishableComments(true)
      ->setReturnPartialResultsOnOverheat(true)
      ->setLimit(1)
      ->execute();

    return (bool)$inlines;
  }

}

Function Calls

None

Variables

None

Stats

MD5 49ba0ba65aac9eebe024c69068182249
Eval Count 0
Decode Time 93 ms