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 PhortuneOrderDescriptionView extends AphrontView { private $order;..

Decoded Output download

<?php

final class PhortuneOrderDescriptionView
  extends AphrontView {

  private $order;

  public function setOrder(PhortuneCart $order) {
    $this->order = $order;
    return $this;
  }

  public function getOrder() {
    return $this->order;
  }

  public function render() {
    $viewer = $this->getViewer();
    $order = $this->getOrder();

    $description = $order->getDescription();
    if (!strlen($description)) {
      return null;
    }

    $output = new PHUIRemarkupView($viewer, $description);

    $description_box = id(new PHUIBoxView())
      ->addMargin(PHUI::MARGIN_LARGE)
      ->appendChild($output);

    return id(new PHUIObjectBoxView())
      ->setHeaderText(pht('Description'))
      ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
      ->appendChild($description_box);
  }


}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhortuneOrderDescriptionView
  extends AphrontView {

  private $order;

  public function setOrder(PhortuneCart $order) {
    $this->order = $order;
    return $this;
  }

  public function getOrder() {
    return $this->order;
  }

  public function render() {
    $viewer = $this->getViewer();
    $order = $this->getOrder();

    $description = $order->getDescription();
    if (!strlen($description)) {
      return null;
    }

    $output = new PHUIRemarkupView($viewer, $description);

    $description_box = id(new PHUIBoxView())
      ->addMargin(PHUI::MARGIN_LARGE)
      ->appendChild($output);

    return id(new PHUIObjectBoxView())
      ->setHeaderText(pht('Description'))
      ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
      ->appendChild($description_box);
  }


}

Function Calls

None

Variables

None

Stats

MD5 3a39b9ef68e076c637ff464d56ef7904
Eval Count 0
Decode Time 101 ms