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 /** * Helper for building a rendered section. * * @task compose Composition * ..

Decoded Output download

<?php

/**
 * Helper for building a rendered section.
 *
 * @task compose  Composition
 * @task render   Rendering
 * @group metamta
 */
final class PhabricatorMetaMTAMailSection extends Phobject {
  private $plaintextFragments = array();
  private $htmlFragments = array();

  public function getHTML() {
    return $this->htmlFragments;
  }

  public function getPlaintext() {
    return implode("
", $this->plaintextFragments);
  }

  public function addHTMLFragment($fragment) {
    $this->htmlFragments[] = $fragment;
    return $this;
  }

  public function addPlaintextFragment($fragment) {
    $this->plaintextFragments[] = $fragment;
    return $this;
  }

  public function addFragment($fragment) {
    $this->plaintextFragments[] = $fragment;
    $this->htmlFragments[] =
      phutil_escape_html_newlines(phutil_tag('div', array(), $fragment));

    return $this;
  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * Helper for building a rendered section.
 *
 * @task compose  Composition
 * @task render   Rendering
 * @group metamta
 */
final class PhabricatorMetaMTAMailSection extends Phobject {
  private $plaintextFragments = array();
  private $htmlFragments = array();

  public function getHTML() {
    return $this->htmlFragments;
  }

  public function getPlaintext() {
    return implode("\n", $this->plaintextFragments);
  }

  public function addHTMLFragment($fragment) {
    $this->htmlFragments[] = $fragment;
    return $this;
  }

  public function addPlaintextFragment($fragment) {
    $this->plaintextFragments[] = $fragment;
    return $this;
  }

  public function addFragment($fragment) {
    $this->plaintextFragments[] = $fragment;
    $this->htmlFragments[] =
      phutil_escape_html_newlines(phutil_tag('div', array(), $fragment));

    return $this;
  }
}

Function Calls

None

Variables

None

Stats

MD5 c91b879cb5c63713e8d07bddbc4cd724
Eval Count 0
Decode Time 88 ms