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 PhabricatorPackagesPackageListView extends PhabricatorPackagesView { ..

Decoded Output download

<?php

final class PhabricatorPackagesPackageListView
  extends PhabricatorPackagesView {

  private $packages;

  public function setPackages(array $packages) {
    assert_instances_of($packages, 'PhabricatorPackagesPackage');
    $this->packages = $packages;
    return $this;
  }

  public function getPackages() {
    return $this->packages;
  }

  public function render() {
    return $this->newListView();
  }

  public function newListView() {
    $viewer = $this->getViewer();
    $packages = $this->getPackages();

    $list = id(new PHUIObjectItemListView())
      ->setViewer($viewer);

    foreach ($packages as $package) {
      $item = id(new PHUIObjectItemView())
        ->setObjectName($package->getFullKey())
        ->setHeader($package->getName())
        ->setHref($package->getURI());

      $list->addItem($item);
    }

    return $list;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorPackagesPackageListView
  extends PhabricatorPackagesView {

  private $packages;

  public function setPackages(array $packages) {
    assert_instances_of($packages, 'PhabricatorPackagesPackage');
    $this->packages = $packages;
    return $this;
  }

  public function getPackages() {
    return $this->packages;
  }

  public function render() {
    return $this->newListView();
  }

  public function newListView() {
    $viewer = $this->getViewer();
    $packages = $this->getPackages();

    $list = id(new PHUIObjectItemListView())
      ->setViewer($viewer);

    foreach ($packages as $package) {
      $item = id(new PHUIObjectItemView())
        ->setObjectName($package->getFullKey())
        ->setHeader($package->getName())
        ->setHref($package->getURI());

      $list->addItem($item);
    }

    return $list;
  }

}

Function Calls

None

Variables

None

Stats

MD5 0e74e1c6cead1e5f0e41626f779dbea0
Eval Count 0
Decode Time 90 ms